Giter Site home page Giter Site logo

docker's Introduction

About this Repo

This is the Git repo of the official Docker image for Odoo. See the Hub page for the full readme on how to use the Docker image and for information regarding contributing and issues.

The full readme is generated over in docker-library/docs, specifically in docker-library/docs/odoo.

docker's People

Contributors

0yik avatar aab-odoo avatar anassahmed avatar caillioux avatar d-fence avatar danisan avatar dennybiasiolli avatar kovacs-andras avatar ludovic-gasc avatar md5 avatar odony avatar rakete avatar rbuisson avatar sle-odoo avatar tiangolo avatar veivaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker's Issues

[8.0] Can't set Postgres user

Hello, I tried the Odoo 8 docker image, but I can't set the Odoo database user.
I run the docker container with

-e DB_PORT_5432_TCP_ADDR="postgres_9_4.weave.local" \
-e DB_PORT_5432_TCP_PORT="5432" \
-e DB_ENV_POSTGRES_USER="odoo8" \
-e DB_ENV_POSTGRES_PASSWORD="xxx" \

But the error is

OperationalError: FATAL:  password authentication failed for user "odoo"

That is weird because I put extra an echo command in the Docker image so that I can see the exported env. variables:

(echo "Export host: $PGHOST; port: $PGPORT; user: $PGUSER")
Export host: postgres_9_4.weave.local; port: 5432; user: odoo8

If I create the user "odoo" in Postgres, Odoo works. But of course I rather have the option to set the Odoo database user name.

I use the latest Odoo 8.0 build. odoo_8.0.20160727_all.deb

sudo: command not found

I can't run the scaffolding command in /mnt/extra-addons/ because it belongs to root and there is not sudo command.

odoo@759e55619372:/mnt/extra-addons$ sudo odoo.py scaffold openacademy .
bash: sudo: command not found

Dev process with docker

What is the best process to test and deploy, what tools do you use?

ie. I want to install a new module

  • how to sync from docker prod?
  • then I install module, test it
  • how to deploy to prod?

BlockUI error on 8.0 image

When creating a new database from an image:8.0, we got an error 'blockUI requires jQuery v 1.2.3 or later ! You are using v 1.11.1. The creation of the database works after the message.

Odoo9 ?

Odoo 9 just released today, when could we have a docker image for this?
Official image must be updated too on docker hub.

PDF Invoice Footer Missing

First off thanks for your excellent work on odoo and this docker.

When generating a PDF invoice in the accounting module the header and content print fine but there isn't any footer.

Tested with released docker instances run using:
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres
docker run -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo

With a fresh db with the demo data in and the accounting module installed.

Permission denied on ubuntu 14.04 host

This image works fine on Mac OS El Capitan with Docker:

Client:
 Version:      1.12.1-rc1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   7889dc7
 Built:        Fri Aug 12 18:35:53 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.1-rc1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   7889dc7
 Built:        Fri Aug 12 18:35:53 2016
 OS/Arch:      linux/amd64
 Experimental: true

I can mount volumes from my host to my container and read/write to the volume without issue.

However with an ubuntu 14.04 with docker:

Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:22:43 2016
 OS/Arch:      linux/amd64

I can mount volume too, but can't write on them.. In fact the issue is especially about the volume mounted to override the openerp-server.conf, this volume is not writable and not readable, so the odoo container is not using my own config file.

I thought this was related to the chown command in the Dockerfile but as my others volumes are mounted in /mnt/my_other_volume, this path isn't chowned to odoo so this it not the problem.

This is not an issue with my host system as I tried to mount and write file to volume mounted to the postgres container and it works.

Any ideas ?

[9.0] Database backup error

I set a master password, then tried to backup. At this stage, I have not installed any modules.

{noformat}
Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpsoXqxu/dump.sql', u'department13') error 1
{noformat}

Odoo was started by these commands:

{noformat}
docker volume create --name d13-odoo
docker run -d -v d13-odoo:/var/lib/postgresql/data/pgdata -e PGDATA=/var/lib/postgresql/data/pgdata -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres:9.5.3
docker run -d -p 8069:8069 --name odoo --link db:db -t odoo:9
{noformat}

Dockerfile security issues

I've been using my own dockerfile for the past year, and was delighted to see that Odoo has released an official version!

I'd love to migrate over, but there are a few outstanding issues related to security that prevent me from doing so.

First, could we add checksums for the two insecure http downloads? wkhtmltox.deb and odoo.deb are not verified, and they are downloaded in-the-clear.

Second, could we download all required packages directly from debian and then run odoo completely unprivileged?

For example, in my dockerfile, I install all of:

babel
libxslt-python
pyparsing
python-dateutil
python-decorator
python-docutils
python-feedparser
python-imaging
python-jinja2
python-ldap
python-lxml
python-mako
python-mock
python-openid
python-passlib
python-psutil
python-psycopg2
python-reportlab
python-requests
python-simplejson
python-unittest2
python-vobject
python-werkzeug
python-yaml
pytz

Then, I create an unprivileged user, do a git checkout of the commit I am happy with, install it in a virtualenv that has access to the system packages, and launch it. Odoo never sees root.

Thanks for embracing docker!

Proposal :: Enhance Explicity

Proposal

  • Author: David Arnold
  • Date: 03.02.2015
  • Target Domain: Strategic Thoughts

Motivation

The emerging use case of containers might be in development and deployment alike. See http://12factor.net/dev-prod-parity for a starting point in theory backup in dev-prod-parity. In all emerging scenarios, the Dockerfile is the common interface to an application, so what's made transparent there might be consumed first and foremost by devops and developers. Developers and Devops can generally improve their efficiency, based on a well defined, agnostic and declarative interface, as a Dockerfile can provide it.

Problem

In the context of odoo, this means it might not be an especially good idea to let odoo install packager do critical magic silently such as:

  • create build environment - because you might strip it down afterwards to reduce attack vector @sle-odoo clarified, that the deb package only resolves minimum dependencies
  • resolve dependencies - because a developer would like to have transparency about the runtime stack
  • create user and set it's rights - this makes unaware about basic security configuration
  • hide away the folder structure - this is inconvenient for maintaining

Proposal

Make use of Dockerfiles directives and adjacent shell scripts (nothing fancy or too python centric) to prepare in nine distinct steps the final app container:

  1. PREPARE: user, permissions, repository, ssh-keys
  2. BASE TOOLING: (curl, ssh, etc) - not needed by the app
  3. BUILD TOOLING: temporarily needed stuff to pre-/compile the app
  4. RUNTIME: apt-get and pip which is needed during app runtime
  5. STACK: additional stack tooling, like wsgi, but on a single instance also - exceptionally - : nginx, psql
  6. APP SOURCES: getting tagged sources (SHA) from git directly, cleanup of .git is somewhat tricky do to with /bin/sh, but worth the nois, as this approach is the least project specific possible. Creates a comprehensive app sourctree, no unnecessary FHS conventions, as app is the only PID running and the only one of interest.
  7. CONFIG PROPAGATION: use templating, as being the distributed default pattern and is more expressive in it's workflow. can usually feed on K/V-Store ore ENV variables. see consul-template for best-of-breed. The app should however strive to natively support config from K/V-Store in the future. (Config as a Service)
  8. CLEANUP: remove all build tooling and strip off unnecessary distro-defaults to reduce attac vector and image size.
  9. EXPOSURE: Volumes, Entrypoint, CMD, Expose, but also define defaults for interfaceing ENV variables for transparency, if there are many, an env-file could be provided instead (and passed docker run --env-file)

Outlook

I'm convinced the whole ecosystem will shift to docker (or containers). This will comprise everyone, from the developer to the devops, to the end user, to the functional people (yes, as it is really easier to run a docker, than to perform a server install on whatever OS or distro of choice). So perspectively, any monolythic tooling for build / installation / packaging / deployment (unless it would be compiling source) would slowly fade away into legacy. Even the preforking tooling might become obsolete as dockers can scale through the process model at similar costs (and more generically), as well.

The app and only the app

This perspective is appeling, because it reduces complexity out of the codebase, as a lot of aditional tooling could be stripped off in the mid-term, focusing every braincell of the whole odoo community on whats could be migrating openerp/openerp into just flat openerp/

Impossible to scaffold new addon

Hi I am using docker-compose. Installation process and server running is going quite well, but when I am trying to add new addon with a command docker-compose run odoo odoo.py scaffold newmodule /mnt/addons, odoo throws Permission Denied. I know that's because odoo user has no enough permissions to /var/lib/odoo. What is the good workaround ? I suspect we should either add permissions while building image from Dockerfile with chown or add odoo user in sudoers file. Could you extend your readme on how to launch different odoo.py commands behind docker. May be

/var/lib/odoo not mountable on OSX with docker-machine

Docker volume /var/lib/odoo is mountable on OSX but then docker fails to boot the odoo image.

ERP_1 | Traceback (most recent call last):
ERP_1 | File "/usr/bin/openerp-server", line 5, in
ERP_1 | openerp.cli.main()
ERP_1 | File "/usr/lib/python2.7/dist-packages/openerp/cli/command.py", line 64, in main
ERP_1 | o.run(args)
ERP_1 | File "/usr/lib/python2.7/dist-packages/openerp/cli/server.py", line 166, in run
ERP_1 | main(args)
ERP_1 | File "/usr/lib/python2.7/dist-packages/openerp/cli/server.py", line 120, in main
ERP_1 | openerp.tools.config.parse_config(args)
ERP_1 | File "/usr/lib/python2.7/dist-packages/openerp/tools/config.py", line 308, in parse_config
ERP_1 | openerp.modules.module.initialize_sys_path()
ERP_1 | File "/usr/lib/python2.7/dist-packages/openerp/modules/module.py", line 77, in initialize_sys_path
ERP_1 | dd = tools.config.addons_data_dir
ERP_1 | File "/usr/lib/python2.7/dist-packages/openerp/tools/config.py", line 557, in addons_data_dir
ERP_1 | os.makedirs(d, 0700)
ERP_1 | File "/usr/lib/python2.7/os.py", line 150, in makedirs
ERP_1 | makedirs(head, mode)
ERP_1 | File "/usr/lib/python2.7/os.py", line 157, in makedirs
ERP_1 | mkdir(name, mode)
ERP_1 | OSError: [Errno 13] Permission denied: '/var/lib/odoo/addons'

missing pg_dump tool

when using the database frontend to backup odoo, the application say that pg_dump is missing. Where is configured the pg_dump path in odoo ?

odoo.py scaffold produce invalid files

Running odoo.py scaffold academy /var/lib/odoo/addons/8.0 produce invalid files.

Content of templates directory in docker doesn't match content from sources

root@ed6a163c2d57:/usr/lib/python2.7/dist-packages/openerp/cli/templates/default# ls
demo.xml  security  templates.xml

Every .py files are missing from here. I think it's an issue in the openerp python package.

Updates to the newer version

When the new docker image of Odoo v9 is released, can I just replace the old image with the new?
If new version has some Db changes, will just simply using the lasted docker image be enough?

Normalize database connection parameters

Since Odoo 8.0 is a bit... complicated about the connection variables, I suggest we could "normalize" the connection parameter to set the --db_* argument AND PG* env variables to make sure all the situations are covered.

Current Priorities

  • --db_host, then PGHOST, ... (then localhost or /run/postgresql)
  • --db_port, then PGPORT, ... (5432)
  • --db_user, then LOGNAME, then die
  • --db_password, then PGPASSWORD

During a backup on Odoo 8.0, it's a bit different...

  • --db_host, then PGHOST, ... (then localhost or /run/postgresql)
  • --db_port, then PGPORT, ... (5432)
  • --db_user, then LOGNAME, then die
  • PGPASSWORD, then --db_password, then none

[9] Unable to login after DB creation

I started Odoo using these commands:

{noformat}
docker volume create --name d13-odoo
docker run -d -v d13-odoo:/var/lib/postgresql/data/pgdata -e PGDATA=/var/lib/postgresql/data/pgdata -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres:9.5.3
docker run -d -p 8069:8069 --name odoo --link db:db -t odoo:9
{noformat}

Then I visited the web application to create the database and assign an admin password. Next I stopped and restarted the odoo container:

{noformat}
docker stop odoo | xargs docker rm
docker run -d -p 8069:8069 --name odoo --link db:db -t odoo:9
{noformat}

When visiting the web application, I am asked for an email and password. I used the default email of "[email protected]" but was not able to login.

Proposal :: Avoide Docker Pitfalls

Help avoid docker pitfalls by posting interesting resources to comon docker ceavats in order to improve the base image quality.

I'll do a start:
PID1 and Zombie Processes
Syslogging
cron vs systemd - actually scheduling should be shifted out of the main app-container and performed by ephemeral worker-containers against the persitence layer see aso problems of systemd within docker
SIGTEM handling at the example of a postgresql container for gracefull shutdown.. I doubt odoo does atomic operations...

fails compilation of less in some templates

In later debian (>jessie) and ubuntu (>14.04) you may need to add a symlink as npm packages call node but debian calls the binary nodejs
$ apt-get install -y npm
$ sudo ln -s /usr/bin/nodejs /usr/bin/node

docker image is doing this by starting the container ?.

fails compilation of less in some templates

[8.0] Can not print correctly pdf reports

hello,

Trying to create pdf reports seams to be impossible. As if something is missing. None of the invoices, get printed with the default odoo 8 layout you see in full installations. Is there any chance that a package needed, is left out of the installation?

What I see in the reports, is just text. Not even properly aligned in some cases.

Anyone managed to print accurately pdf reports?

Regards,
Theo

[9.0] Exception during JSON request handling

While I do see this error message, the web application seems to react normally to web requests.

I am using the following two lines to start ODOO:

{noformat}
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres
docker run -p 8069:8069 --name odoo --link db:db -t odoo
{noformat}

After a few seconds, I see the message about JSON handling:

{noformat}
$ docker run -p 8069:8069 --name odoo --link db:db -t odoo
2016-06-04 22:15:11,759 1 INFO ? openerp: OpenERP version 9.0c-20160428
2016-06-04 22:15:11,759 1 INFO ? openerp: addons paths: ['/var/lib/odoo/addons/9.0', u'/mnt/extra-addons', u'/usr/lib/python2.7/dist-packages/openerp/addons']
2016-06-04 22:15:11,760 1 INFO ? openerp: database: [email protected]:5432
2016-06-04 22:15:12,004 1 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2016-06-04 22:15:14,523 1 INFO ? openerp.addons.bus.models.bus: Bus.loop listen imbus on db postgres
2016-06-04 22:15:15,074 1 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2016-06-04 22:15:15,367 1 INFO ? openerp.http: HTTP Configuring static files
2016-06-04 22:15:15,373 1 INFO ? openerp.http: Generating nondb routing
2016-06-04 22:15:15,387 1 ERROR ? openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1624, in _dispatch_nodb
func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()
File "/usr/lib/python2.7/dist-packages/werkzeug/routing.py", line 1430, in match
raise NotFound()
NotFound: 404: Not Found
{noformat}

[9.0] workers>0 unsupported

Apparently, the docker container doesn't support workers>0. Error is something like: openerp-gevent file missing.

Is this on purpose?

Best,
Robert

Odoo is not accessible with OSX

I followed the instruction on https://hub.docker.com/_/odoo/ to install odoo. Everything seem to works but I'm not able to access odoo from my browser.

I'm running docker on OSX using https://www.docker.com/toolbox .

The two running container are showing up in Kitematic (but I launched them from the the terminal because the containers was using links).

I tried other container like the training/webapp and it was working fine and I was able to access to the demo page with my browser.

Odoo Server Errros by generating a new offer

Hi,

i set docker image an created a database with the demo data's. When i generate a new offer and add product, i will get this error messages. What am i doing wrong.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 605, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 642, in dispatch
result = self._call_function(*_self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 309, in checked_call
result = self.endpoint(_a, *_kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 893, in call
return self.method(_args, *_kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 471, in response_wrap
response = f(_args, *_kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 892, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 884, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 238, in wrapper
return old_api(self, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 369, in old_api
result = method(recs, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5985, in onchange
record = self.new(values)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 236, in wrapper
return new_api(self, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5555, in new
record._cache.update(record._convert_to_cache(values, update=True))
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5450, in _convert_to_cache
for name, value in values.iteritems()
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5451, in
if name in fields
File "/usr/lib/python2.7/dist-packages/openerp/fields.py", line 1743, in convert_to_cache
ids = OrderedSet(command[2])
File "/usr/lib/python2.7/dist-packages/openerp/tools/misc.py", line 1106, in init
super(OrderedSet, self).init([(x, None) for x in seq])
File "/usr/lib/python2.7/collections.py", line 52, in init
self.*update(_args, _kwds)
File "/usr/lib/python2.7/_abcoll.py", line 567, in update
self[key] = value
File "/usr/lib/python2.7/collections.py", line 58, in __setitem

if key not in self:
TypeError: unhashable type: 'list'

Best regards

odoo localhost connection refuse

I followed the tag notes step by step and successfully run on localhost 8069 port, however, it stopped suddenly after I entered the odoo UI and giving me error : dial unix ... connection refused...

[9.0] Failed to install modules (evdev, usb.core and serial modules missing)

Hi,

I'm trying to install the ESC/POS Hadware Driver but I'm receiving the following error: "Unable to install module "hw_escpos" because an external dependency is not met: No module named usb.core".

The same happened when I tried to install the module "Weighting Scale Hardware Driver" (serial missing) and "Barcode Scanner Hardware Driver" (evdev missing). Can someone help me with that please?.

I don't have problems 'calling' the module usb.core using the command "import usb.core" from python. I tried the installation in ubuntu 15.04 and fedora 23 with docker, both OS are showing the same error. I'm using ESXi and I have added a usb host controller (Some people say that they solved this issue doing that).

Thanks in advance.

Backup - Restore

As far as I can see from a first quick view, and as far as the underlying logic has not been changed recently, a backup-restore via the odoo's web-based database manager wouldn't work, as those two functionalities rely on a local pg_dump and pg_restore command, which obviously are only available if postgres is not installed...

Normal SQL operations (like CREATE, DUPLICATE etc) would work normally.

Failed to query Docker registry

Hi,
I'm using docker from a NAS/Synology. It's working fine except for your ODOO products ... the server NAS/Docker return a "failed to query registry".
What's wrong ... probably not the synology, the Docker repository seems to be ok ...
Could you help ?
Alternatively, I can add an image from an URL or a File. Could you provide these links for ODOO 9 ?
Thank you,
M

[9.0] Empty page after login

Hello, I tried the official Odoo 9 docker image with Postgresql database. After creating the database and login, I only see the Odoo logo on the left, a black menu bar, and an empty page. No menu, no apps, nothing. No errors in the logs, and the database is created (tested with pgadmin).

If I open the source of the Odoo page, I can see menu elements.

What is going on?

Here are the logs after login.

2016-07-27 06:08:56,566 1 INFO odoo9_test4 openerp.service.common: successful login from '[email protected]' using database 'odoo9_test4'
2016-07-27 06:08:56,567 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/translations HTTP/1.1" 200 -
2016-07-27 06:08:56,571 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/session/get_session_info HTTP/1.1" 200 -
2016-07-27 06:08:56,621 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/proxy/load HTTP/1.1" 200 -
2016-07-27 06:08:56,654 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/session/modules HTTP/1.1" 200 -
2016-07-27 06:08:56,694 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/dataset/search_read HTTP/1.1" 200 -
2016-07-27 06:08:56,699 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/jslist HTTP/1.1" 200 -
2016-07-27 06:08:56,700 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/csslist HTTP/1.1" 200 -
2016-07-27 06:08:56,703 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/webclient/translations HTTP/1.1" 200 -
2016-07-27 06:08:56,730 1 INFO odoo9_test4 werkzeug: 172.17.0.1 - - [27/Jul/2016 06:08:56] "POST /web/proxy/load HTTP/1.1" 200 -

Here is part of the loaded Odoo page as source.

<!DOCTYPE html>
            <html style="height: 100%">
                <head>
                    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
                    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
                    <title>Odoo</title>
                    <link rel="shortcut icon" href="/web/static/src/img/favicon.ico" type="image/x-icon"/>
                    <link rel="stylesheet" href="/web/static/src/css/full.css"/>


            <link href="/web/content/341-1add395/web.assets_common.0.css" rel="stylesheet"/>
            <script type="text/javascript" src="/web/content/342-1add395/web.assets_common.js"></script>
                    <script type="text/javascript">
                        odoo.define('web.csrf', function (require) {
                            var token = "8897eee791ee30bbde7119f107fb9a4ce9827689o";
                            require('web.core').csrf_token = token;
                            require('qweb').default_dict.csrf_token = token;
                        });
                        odoo.db_info = {"server_version_info": [9, 0, 0, "final", 0, "c"], "server_version": "9.0c-20160609"};
                    </script>

            <link href="/web/content/343-91ab199/web.assets_backend.0.css" rel="stylesheet"/>
            <link href="/web/content/344-91ab199/web.assets_backend.1.css" rel="stylesheet"/>
            <script type="text/javascript" src="/web/content/345-91ab199/web.assets_backend.js"></script>
                    <!--[if lte IE 9]> <link rel="stylesheet" href="/web/static/src/css/ie.css"/> <![endif]-->
                    <script type="text/javascript">
                        $(function() {


                                odoo.define('web.web_client', function (require) {
                                    var WebClient = require('web.WebClient');
                                    var web_client = new WebClient();
                                    web_client.setElement($(document.body));
                                    web_client.start();
                                    return web_client;
                                });

                        });
                    </script>

                </head>
                <body>



                <nav id="oe_main_menu_navbar" class="navbar navbar-inverse" role="navigation" groups="base.group_user,base.group_portal">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div>
                    <div class="navbar-collapse collapse" id="oe_main_menu_placeholder">

            <ul class="nav navbar-nav navbar-left oe_application_menu_placeholder" style="display: none;">
                <li>


            <a href="/web#menu_id=5&amp;action=" class="oe_menu_toggler" data-menu="5">
                <span class="oe_menu_text">
                    Apps
                </span>
            </a>

New addons not being added

Hi,

I setup odoo via docker image. I was trying to add slack module https://apps.openerp.com/apps/modules/8.0/cenit_slack/ for odoo 8. I have placed the addons in right directory but updating the module list is not updating it in the list.
Here is my console output

When i run the odoo in docker container it shows in log that it is looking up for addons in some directories

2015-11-06 04:31:16,143 1 INFO ? openerp: OpenERP version 8.0-20150401
2015-11-06 04:31:16,144 1 INFO ? openerp: addons paths: ['/var/lib/odoo/addons/8.0', u'/usr/lib/python2.7/dist-packages/openerp/addons', u'/mnt/extra-addons']
2015-11-06 04:31:16,144 1 INFO ? openerp: database hostname: localhost
2015-11-06 04:31:16,144 1 INFO ? openerp: database port: 5432
2015-11-06 04:31:16,144 1 INFO ? openerp: database user: odoo
2015-11-06 04:31:16,627 1 INFO ? openerp.service.server: Watching addons folder /var/lib/odoo/addons/8.0
2015-11-06 04:31:16,628 1 INFO ? openerp.service.server: Watching addons folder /usr/lib/python2.7/dist-packages/openerp/addons
2015-11-06 04:31:17,323 1 INFO ? openerp.service.server: Watching addons folder /mnt/extra-addons
2015-11-06 04:31:17,325 1 INFO ? openerp.service.server: AutoReload watcher running

I have placed the slack modules in /var/lib/odoo/addons/8.0
here is the console output

root@docker1:~# cd /var/lib/odoo/addons/8.0
root@docker1:/var/lib/odoo/addons/8.0# ls -al
total 16
drwxr-xr-x 4 root root 4096 Nov 5 01:39 .
drwxr-xr-x 3 root root 4096 Nov 5 01:35 ..
drwxr-xr-x 8 root root 4096 Nov 5 01:39 cenit_base
drwxr-xr-x 6 root root 4096 Nov 5 01:39 cenit_slack

And also i have placed the modules in /usr/lib/python2.7/dist-packages/openerp/addons
here is the console output

root@docker1:~# cd /usr/lib/python2.7/dist-packages/openerp/addons
root@docker1:/usr/lib/python2.7/dist-packages/openerp/addons# ls -al
total 16
drwxr-xr-x 4 root root 4096 Nov 5 23:40 .
drwxr-xr-x 3 root root 4096 Nov 5 23:40 ..
drwxr-xr-x 8 root root 4096 Nov 5 23:40 cenit_base
drwxr-xr-x 6 root root 4096 Nov 5 23:40 cenit_slack

and again i also placed the modules in /mnt/extra-addons
here is the console output

root@docker1:~# cd /mnt/extra-addons/
root@docker1:/mnt/extra-addons# ls -al
total 1684
drwxr-xr-x 4 root root 4096 Nov 5 00:53 .
drwxr-xr-x 3 root root 4096 Nov 5 00:45 ..
drwxr-xr-x 8 root root 4096 Nov 5 00:53 cenit_base
drwxr-xr-x 6 root root 4096 Nov 5 00:53 cenit_slack
-rw-r----- 1 root root 1708007 Nov 5 00:48 cenit_slack-8.0.1.0.2.zip

But still odoo is not updating the module list.

Can you guys please help me out.

Addons mounted but not showing

I want to add an addon.

I push the unzipped addon (website_product_rss) to /home on my host.
Then I chmod -755 -R it.
Then I start my container with -v /home:/mnt/extra-addons

I open a shell into the container and look at /mnt/extra-addons
Files are there with root and 755

Then I clic on update module list in odoo. The window close without error.
Going to local modules and search for rss
No module...

Tried to restart openerp-server from shell into container give

error: [Errno 98] Address already in use
^C2015-09-28 11:27:36,836 459 INFO ? openerp.service.server: Initiating shutdown
2015-09-28 11:27:36,836 459 INFO ? openerp.service.server: Hit CTRL-C again or send a second signal to force the shutdown.

Restarting the container works but no rss addon

Any help?

Standard invoice reports doesnt print correctly

Started a brand new docker installation from image as said
Installed accounting modules, uploaded a company logo.
Create a first cutomer invoice. Do a Print, no header or footer at all.

Sever trace :

 [03/Sep/2015 10:15:59] "POST /report/check_wkhtmltopdf HTTP/1.1" 200 
 [03/Sep/2015 10:16:08] "POST /longpolling/poll HTTP/1.1" 200 
 [03/Sep/2015 10:16:18] "POST /longpolling/poll HTTP/1.1" 200 
 [03/Sep/2015 10:16:58] "POST /longpolling/poll HTTP/1.1" 200 
 [03/Sep/2015 10:17:08] "POST /longpolling/poll HTTP/1.1" 200 
 [03/Sep/2015 10:17:48] "POST /longpolling/poll HTTP/1.1" 200 
 [03/Sep/2015 10:17:58] "POST /longpolling/poll HTTP/1.1" 200 
 [03/Sep/2015 10:18:00] "POST /report/download HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/account.invoice/search_read HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/res.partner/name_get HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/account.invoice/read_followers_data HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/account.invoice.line/read HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/account.invoice/message_get_subscription_data HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/mail.message/message_read HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/account.tax/name_get HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/account.invoice.tax/read HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/call_kw/mail.message/set_message_read HTTP/1.1" 200 
 [03/Sep/2015 10:18:01] "POST /web/dataset/search_read HTTP/1.1" 200 

Copy of pdf produced report
capture du 2015-09-03 12 15 58

[9.0] Can't install two modules because of missing files

For some reasons, it seems that at least four files are missing in the DEB package (odoo_9.0.20151008_all.deb) from which the Dockerfile gets Odoo's files. I've checked the latest nightly as of 16-11-2015 and the files are missing as well...

The consequence of this is that these two modules can't be installed (there might be others...) because of these missing files:

-Recruitment Process
-Slides

Strangely, only .doc and .pdf files are missing:

/addons/hr_recruitment/data/hr_recruitment_demo_jones_cv.pdf
/addons/hr_recruitment/data/hr_recruitment_demo_williams_cv.doc
/addons/website_slides/static/src/img/keynote.pdf
/addons/website_slides/static/src/img/odoo-cms-comparision.pdf

Thanks!

Database backup

When using login page database backup you get error...
Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpFL6pNy/dump.sql', u'mydbname') error 1

[9.0] Using odoo+postgresql in Docker Compose Uses Wrong IP Address

I am trying to use Docker Compose to run odoo. However, the my odoo-web container is not able to connect with my odoo-db container. Here is my docker-compose.yml file:

{noformat}
version: "2"

services:
odoo-db:
restart: on-failure:10
image: postgres:9.4
volumes:
- "d13-odoo:/var/lib/postgresql"
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
odoo-web:
image: odoo:9.0
links:
- odoo-db:db
ports:
- "8069:8069"

volumes:
d13-odoo:
{noformat}

When I run 'docker-compose uo -d', the containers start. And keep running. When I try to connect to the odoo web page using http://192.168.99.100:8069, I see the following error:

{noformat}
2016-06-04 21:09:43,016 1 INFO ? werkzeug: 192.168.99.1 - - [04/Jun/2016 21:09:43] "GET / HTTP/1.1" 500 -
2016-06-04 21:09:43,022 1 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/openerp/service/server.py", line 246, in app
return self.app(e, s)
File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 184, in application
return application_unproxied(environ, start_response)
File "/usr/lib/python2.7/dist-packages/openerp/service/wsgi_server.py", line 170, in application_unproxied
result = handler(environ, start_response)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1488, in call
return self.dispatch(environ, start_response)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1462, in call
return self.app(environ, start_wrapped)
File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 588, in call
return self.app(environ, start_response)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1617, in dispatch
self.setup_db(httprequest)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1548, in setup_db
httprequest.session.db = db_monodb(httprequest)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1695, in db_monodb
dbs = db_list(True, httprequest)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 1669, in db_list
dbs = openerp.service.db.list_dbs(force)
File "/usr/lib/python2.7/dist-packages/openerp/service/db.py", line 307, in list_dbs
with closing(db.cursor()) as cr:
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 630, in cursor
return Cursor(self.pool, self.dbname, self.dsn, serialized=serialized)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 164, in __init

self._cnx = pool.borrow(dsn)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 513, in _locked
return fun(self, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/sql_db.py", line 581, in borrow
**connection_info)
File "/usr/lib/python2.7/dist-packages/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
{noformat}

Please note that I am using Windows. This means that I have a default unix running inside VirtualBox. The IP address of the default container is 192.168.99.100. However, the IP addresses of the two odoo-related containers are 172.18.0.X.

If I use "docker exec -it odoo_odoo-web_1 /bin/bash" to connect to the running odoo-web container, I can use "psql -h db -p 5432 -U odoo -W odoo" to connect to the odoo-db instance and run SQL commands. To me, this means that odoo is pulling the IP address somehow incorrectly. Using 'ping db' inside the container does produce the correct '172.18.0.2' address.

Where is odoo getting "192.168.99.1" from? I don't know enough python to debug this problem. However, I'd be happy to work with someone to resolve this.

Thanks.

P.S. Everything works if I am not using docker-compose.

WARNING flanker not found

I know this is just a warning, but it would be nice if flanker was installed

WARNING ? openerp.addons.website_crm_score.models.sales_team: flanker not found, email validation disabled

Show how to add SSL certficates

It would be nice if the instructions would show how to configure a custom SSL certificate so Odoo can be securely connected.

Panamax template

Could you please provide a panamax template for odoo/postgres preconfigured (official and trusted)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.