Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

3

[V9] Menu disappears and logout after activating developer mode

By
Lucas Huber
on 1/6/16, 10:08 AM 1,307 views

After I try to activate the  developer mode I see the page reloading but after that it seems that I'm not longer logged in. But this happens only when I run the odoo server (an Ubuntu 14.4) in the subdomain mode with this  parameter (dbfilter=^%d).

if I click on the Logo, what is the only thing that remains, I will get back to the login menue.

Seems to me as it is a bug?

What do you see when try the database selector: subdomain.domain.tld/web/database/manager ?

Ermin Trevisan
on 4/26/16, 8:08 AM

Also my regexp looks like ^%d$ , I don't know if the $ sign makes a difference.

Ermin Trevisan
on 4/26/16, 8:47 AM

@Erwin I see all the database in the databse selector that have an identical beginning of the db-name. Eg. If my domain is demo.domain.tld and I have also a db called demo_xx I cann see this one too. I can't imagine that the $ sign at the end of your dbfilter regexp makes a different? But I should try: on the difference dee: https://www.odoo.com/de_DE/forum/hilfe-1/question/domain-based-db-filter-6583

Lucas Huber
on 4/27/16, 5:36 AM

The $ seems not the issue in this case. The reason why I'm asking is that I experience also strange behaviour with logouts when I'm using Odoo without dbfilter, means while having access to a list of several databases. A new login by selecting the appropriate database from the list solves the problem. I definitely do not have any problems as long as dbfilter identifies exactly 1 database which should be the case in production mode anyway if you want to avoid different kind of problems.

Ermin Trevisan
on 4/27/16, 5:48 AM

I don't remember if it makes a difference if you properly log out before selecting another database and then activating the developer mode. But I have to confess that this issue doesn't bother me too much, I have many more serious problems to solve :-)

Ermin Trevisan
on 4/27/16, 5:54 AM
1
Lucas Huber
On 3/30/16, 8:14 AM

Here is my log file with the two relevant entries:

(At my first trial I didn't found the relevant entries!)

2016-03-30 12:01:37,176 1151 INFO ? werkzeug: 127.0.0.1 - - [30/Mar/2016 12:01:37] "GET /web_editor/static/src/js/snippets.options.js HTTP/1.0" 200 -
2016-03-30 12:01:37,207 1151 WARNING ? openerp.http: Logged into database 'test', but dbfilter rejects it; logging session out.

2016-03-30 12:01:59,159 1151 INFO ? werkzeug: 127.0.0.1 - - [30/Mar/2016 12:01:59] "GET /web_editor/static/src/xml/snippets.xml?debug=1459339218287 HTTP/1.0" 200 -
2016-03-30 12:01:59,383 1151 INFO ? werkzeug: 127.0.0.1 - - [30/Mar/2016 12:01:59] "GET /web_editor/static/src/xml/translator.xml?debug=1459339218461 HTTP/1.0" 200 -
2016-03-30 12:01:59,423 1151 INFO test werkzeug: 127.0.0.1 - - [30/Mar/2016 12:01:59] "POST /web/webclient/bootstrap_translations HTTP/1.0" 200 -
2016-03-30 12:01:59,445 1151 INFO test werkzeug: 127.0.0.1 - - [30/Mar/2016 12:01:59] "POST /web/proxy/load HTTP/1.0" 200-
2016-03-30 12:01:59,508 1151 INFO test werkzeug: 127.0.0.1 - - [30/Mar/2016 12:01:59] "POST /web/webclient/translations HTTP/1.0" 200 -
2016-03-30 12:02:05,617 1151 INFO test werkzeug: 127.0.0.1 - - [30/Mar/2016 12:02:05] "GET /web?debug HTTP/1.0" 303 -
2016-03-30 12:02:05,796 1151 INFO test werkzeug: 127.0.0.1 - - [30/Mar/2016 12:02:05] "GET /web/login HTTP/1.0" 200 -
2016-03-30 12:02:21,176 1151 WARNING test openerp.addons.base.ir.ir_cron: Method `bus.presence.check_users_disconnection`does not exist.



I'm afraid this question won't get any more attention as it is buried under the new ones. The "support" ends here. Damn!

Prowler
on 4/4/16, 6:53 AM
1
Prowler
On 3/17/16, 9:52 AM

+1

I can confirm.

I'm experiencing this behavior after setting dbfilter=^%d$ in my config file.

Here are my logs, if anybody will be able to look into this problem: http://pastebin.com/eXHTxzf7

Can somebody upvote me... I only need 1 more karma.. :)

Prowler
on 3/17/16, 10:42 AM

I did not see this earlier, sorry. If it is not yet solved, by looking at your log, i can see that the requests on port 8069 seem all to look like https://example.com. In this case you do not have a subdomain and Odoo is looking for the database "example", this is the same as if your request is https://www.example.com.

Ermin Trevisan
on 4/26/16, 8:05 AM

@Ermin Indeed according the log of @Prowler the source of the problem might be different in his case. In my case everythink works fine until I activate the deveopler mode. NGINX is configured well and same configration works with Odoo 8 flawless.

Lucas Huber
on 4/27/16, 5:20 AM
0
fussions
On 10/10/16, 6:21 AM

Hello Lucas,

I've faced the same issue. I've resolved it by properly configuring my reverse proxy nginx server. It wasn't passing right headers to static resources requests (/web/static). I had to set proxy_set_header directive with host variable. Also it should be set on longpolling requests if you are using the im feature.

0
Ivan Yelizariev
On 6/14/16, 1:39 AM

Workaround for one who needs debug mode only for Technical Features:

https://github.com/OCA/server-tools/tree/9.0/base_technical_features

0
Michel Haluzicky
On 6/13/16, 7:07 PM

Hello,

As I am experiencing the same problem, please find below the log:

2016-06-13 22:59:37,842 3002 INFO ? werkzeug: 127.0.0.1 - - [13/Jun/2016 22:59:37] "GET /base/static/src/css/modules.css HTTP/1.0" 200 -
2016-06-13 22:59:37,843 3002 WARNING ? openerp.http: Logged into database 'database_name', but dbfilter rejects it; logging session out.
2016-06-13 22:59:37,849 3002 WARNING ? openerp.http: Logged into database 'database_name', but dbfilter rejects it; logging session out.
2016-06-13 22:59:37,856 3002 INFO ? werkzeug: 127.0.0.1 - - [13/Jun/2016 22:59:37] "GET /web/static/src/less/web.assets_backend/variables.less.css HTTP/1.0" 404 -
2016-06-13 22:59:37,861 3002 INFO ? werkzeug: 127.0.0.1 - - [13/Jun/2016 22:59:37] "GET /web/static/src/less/web.assets_backend/enterprise_compatibility.less.css HTTP/1.0" 404 -
2016-06-13 22:59:37,873 3002 INFO ? werkzeug: 127.0.0.1 - - [13/Jun/2016 22:59:37] "GET /web/static/src/less/web.assets_backend/utils.less.css HTTP/1.0" 404 -
2016-06-13 22:59:37,879 3002 INFO ? werkzeug: 127.0.0.1 - - [13/Jun/2016 22:59:37] "GET /web/static/src/less/web.assets_backend/modal.less.css HTTP/1.0" 404 -
2016-06-13 22:59:37,885 3002 INFO ? werkzeug: 127.0.0.1 - - [13/Jun/2016 22:59:37] "GET /web/static/src/less/web.assets_backend/notification.less.css HTTP/1.0" 404 -


Many thanks for your help with this.


Michel

0
Marino Buccolini
On 5/31/16, 5:53 AM

Hello,

@Odoo and @Odoo OCA, as we discover the Odoo9 Dev mode is not only useful for the tech users but sometimes it is required for the functional and business user to allow them to configure and setup correctly the system.

Can this issue have the attention that deserves?

Thanks.

Below you can find how we recreate the issue.

We can confirm that we hit the same issue on the community and on the enterprise version with the following configuration.

nginx

        ssl on

        (...)

odoo-server.conf

        dbfilter = %h

        (...)

frontend traceback

results: the current odoo session expired with the following message

TypeError: $.when(...).resolve is not a function

https://bizitas.com/web/static/src/js/framework/session.js:135

Traceback:

Session<.user_has_group@https://bizitas.com/web/static/src/js/framework/session.js:135:20

DebugManager<.start@https://bizitas.com/web/static/src/js/widgets/debug_manager.js:70:13

OdooClass.extend/</prototype[name]</<@https://bizitas.com/web/static/src/js/framework/class.js:89:35

.start@https://bizitas.com/web/static/src/js/widgets/debug_manager.js:301:13

OdooClass.extend/Class.include/</prototype[name]</<@https://bizitas.com/web/static/src/js/framework/class.js:122:35

Widget<.__widgetRenderAndInsert/<@https://bizitas.com/web/static/src/js/framework/widget.js:193:20

.Deferred/promise.then/</</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3276:86

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.add@https://bizitas.com/web/static/lib/jquery/jquery.js:3165:49

.Deferred/promise.then/</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3275:57

.each@https://bizitas.com/web/static/lib/jquery/jquery.js:383:49

.Deferred/promise.then/<@https://bizitas.com/web/static/lib/jquery/jquery.js:3272:49

.Deferred@https://bizitas.com/web/static/lib/jquery/jquery.js:3332:25

.Deferred/promise.then@https://bizitas.com/web/static/lib/jquery/jquery.js:3271:48

Widget<.__widgetRenderAndInsert@https://bizitas.com/web/static/src/js/framework/widget.js:190:16

Widget<.appendTo@https://bizitas.com/web/static/src/js/framework/widget.js:129:16

.show_common/<@https://bizitas.com/web/static/src/js/widgets/debug_manager.js:661:31

.Deferred/promise.then/</</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3276:86

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.add@https://bizitas.com/web/static/lib/jquery/jquery.js:3165:49

.Deferred/promise.then/</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3275:57

.each@https://bizitas.com/web/static/lib/jquery/jquery.js:383:49

.Deferred/promise.then/<@https://bizitas.com/web/static/lib/jquery/jquery.js:3272:49

.Deferred@https://bizitas.com/web/static/lib/jquery/jquery.js:3332:25

.Deferred/promise.then@https://bizitas.com/web/static/lib/jquery/jquery.js:3271:48

.show_common@https://bizitas.com/web/static/src/js/widgets/debug_manager.js:658:20

OdooClass.extend/Class.include/</prototype[name]</<@https://bizitas.com/web/static/src/js/framework/class.js:122:35

WebClient<.start/<@https://bizitas.com/web/static/src/js/web_client.js:80:20

.Deferred/promise.then/</</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3276:86

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.Deferred/</deferred[tuple[0]]@https://bizitas.com/web/static/lib/jquery/jquery.js:3321:33

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.when/updateFunc/<@https://bizitas.com/web/static/lib/jquery/jquery.js:3360:49

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.Deferred/</deferred[tuple[0]]@https://bizitas.com/web/static/lib/jquery/jquery.js:3321:33

Mutex.prototype.exec/</<@https://bizitas.com/web/static/src/js/framework/utils.js:206:13

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.Deferred/promise.then/</</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3283:73

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.Deferred/</deferred[tuple[0]]@https://bizitas.com/web/static/lib/jquery/jquery.js:3321:33

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.Deferred/promise.then/</</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3283:73

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

.Deferred/promise.then/</</<@https://bizitas.com/web/static/lib/jquery/jquery.js:3283:73

jQuery.Callbacks/fire@https://bizitas.com/web/static/lib/jquery/jquery.js:3119:38

jQuery.Callbacks/self.fireWith@https://bizitas.com/web/static/lib/jquery/jquery.js:3231:49

done@https://bizitas.com/web/static/lib/jquery/jquery.js:9275:33

.send/callback@https://bizitas.com/web/static/lib/jquery/jquery.js:9685:57

backend traceback

odoo-server.log

2016-05-31 09:39:00,178 22205 WARNING ? openerp.http: Logged into database 'bizitas-com', but dbfilter rejects it; logging session out.

2016-05-31 09:39:00,180 22205 WARNING ? openerp.http: Logged into database 'bizitas-com', but dbfilter rejects it; logging session out.

2016-05-31 09:39:00,185 22205 WARNING ? openerp.http: Logged into database 'bizitas-com', but dbfilter rejects it; logging session out.

2016-05-31 09:39:00,192 22205 WARNING ? openerp.http: Logged into database 'bizitas-com', but dbfilter rejects it; logging session out.

2016-05-31 09:39:00,194 22205 WARNING ? openerp.http: Logged into database 'bizitas-com', but dbfilter rejects it; logging session out.


This is a different issue and has nothing to do with the posted question. Please check your database name and your proxy headers in the nginx conf.

Ermin Trevisan
on 5/31/16, 6:40 AM
-1
TK Fontaine
On 2/24/16, 1:17 PM

Hello Lucas,


Can you post an extract of your log when you get that error ?



Regards,

FTK


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

5 follower(s)

Stats

Asked: 1/6/16, 10:08 AM
Seen: 1307 times
Last updated: 10/10/16, 6:27 AM