Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9] Unable to login after DB creation #60

Closed
medined opened this issue Jun 5, 2016 · 5 comments
Closed

[9] Unable to login after DB creation #60

medined opened this issue Jun 5, 2016 · 5 comments

Comments

@medined
Copy link

medined commented Jun 5, 2016

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 "admin@example.com" but was not able to login.

@chhabhaiya
Copy link

I am having similar kind of issue. Have you got "TypeError: openerp._openerp is undefined" in console?

@medined
Copy link
Author

medined commented Jun 8, 2016

I don't think so. The logs from the odoo container after it restarted were:

$ docker logs -f odoo
2016-06-08 23:13:17,871 1 INFO ? openerp: OpenERP version 9.0c-20160428
2016-06-08 23:13:17,871 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-08 23:13:17,871 1 INFO ? openerp: database: odoo@172.17.0.2:5432
2016-06-08 23:13:18,146 1 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069
2016-06-08 23:13:30,719 1 INFO ? openerp.addons.bus.models.bus: Bus.loop listen imbus on db postgres
2016-06-08 23:13:31,276 1 INFO ? openerp.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2016-06-08 23:13:31,569 1 INFO ? openerp.http: HTTP Configuring static files
2016-06-08 23:13:31,582 1 INFO davidm openerp.modules.loading: loading 1 modules...
2016-06-08 23:13:31,591 1 INFO davidm openerp.modules.loading: 1 modules loaded in 0.01s, 0 queries
2016-06-08 23:13:31,599 1 INFO davidm openerp.modules.loading: loading 14 modules...
2016-06-08 23:13:31,619 1 INFO davidm openerp.modules.loading: 14 modules loaded in 0.02s, 0 queries
2016-06-08 23:13:31,804 1 INFO davidm openerp.modules.loading: Modules loaded.
2016-06-08 23:13:31,805 1 INFO davidm openerp.addons.base.ir.ir_http: Generating routing map
2016-06-08 23:13:31,844 1 INFO davidm werkzeug: 192.168.99.1 - - [08/Jun/2016 23:13:31] "GET / HTTP/1.1" 200 -
2016-06-08 23:13:31,940 1 INFO davidm werkzeug: 192.168.99.1 - - [08/Jun/2016 23:13:31] "GET /web HTTP/1.1" 303 -
2016-06-08 23:13:31,989 1 INFO davidm werkzeug: 192.168.99.1 - - [08/Jun/2016 23:13:31] "GET /favicon.ico HTTP/1.1" 404 -
2016-06-08 23:13:32,027 1 INFO davidm werkzeug: 192.168.99.1 - - [08/Jun/2016 23:13:32] "GET /web/login HTTP/1.1" 200 -
2016-06-08 23:13:54,726 1 INFO davidm werkzeug: 192.168.99.1 - - [08/Jun/2016 23:13:54] "POST /web/login HTTP/1.1" 200 -

@chhabhaiya
Copy link

Have you checked the browser console?
Typeerror

@jaredkipe
Copy link

FWIW, I tried to reproduce this and could not.
Things to try.

  • Different browser, and if you're using private browsing turn it off (local storage).
  • Pull the latest odoo:9.0 or try out hibou/odoo:9.0 maybe.
  • It looks like you didn't provide odoo any storage for its session and files, perhaps start over in a clean folder and mount in some for it. (Though when I tried to reproduce it I didn't either, and I did destroy and remake the container and it was still fine....)

@sle-odoo
Copy link
Contributor

Thank you @jaredkipe for your investigation!
Closing as i cannot reproduce.

Feel free to comment with some steps to reproduce your scenario and i'll have a look.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants