Odoo Help


Not Found The requested URL was not found on the server.

on 1/22/15, 5:49 AM 12,890 views

Hi !

I've just configured Odoo (8) on our remote server. I have two databases filled with users. I have sent password reset mails to them. I've made another account for me as well. When I click on the link to reset my password (setting one actually, since it's the first connection for this user), everything is working fine. On the same pc, I tried on both my Linux and on my Windows systems.

However, all the other users have issues doing the same. No matter which web browser they use, when they click on the link, the get a:


Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.


On the logs of the server, I can see:


2015-01-22 11:01:22,693 21427 INFO None werkzeug: <some ip> - - [22/Jan/2015 11:01:22] "GET /web/reset_password?token=<some random token here>&db=<my db name there> HTTP/1.1" 404 -


(I've just replaced sensible content with comments in <> signs)


So, I don't know what's causing this issue. I hope someone can help me there. Thanks !



This issue may be solved here. Wait and see:



Ok, so what I'm seeing here, is that I need to setup the 'db_filter = ^%d$' config parameter, which will access the database based on the subdomain. To make this work, I need a domain. This we will do soon.

What I'm thinking now, is, if we set Odoo to work with subdomains, does the links to reset password will be correctly generated ? Or do I need to rewrite them ?


Okay, so now I have a domain. But still no luck :/ Here are my files:

/etc/hosts       localhost       mydomain.fr                                 magestionfacile       vmx.mydomain.fr                         vmx       vimexcom_test.mydomain.fr        vimexcom_test

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


<VirtualHost *:80>
    ServerName mydomain.fr
    ServerAlias *.mydomain.fr
    ErrorLog /var/log/odoo/odoo-server.log
    <Proxy *>
        Order deny,allow
        Allow from all
    ProxyRequests Off
    ProxyPass / http://localhost:8089/
    ProxyPassReverse / http://localhost:8089/
    ProxyVia On
    LogLevel warn


addons_path = /opt/odoo/server/openerp/addons,/opt/odoo/my_addons
admin_passwd = pswd
db_passwd = pswd
log_level = info
logfile = /var/log/odoo/odoo-server.log
xmlrpc_port = 8089
db_filter = ^%d$
list_db = False


That should work, no ?

However, I still have this 404 not found whenever I create a user and send him an invitation email. And while I'm at it, the invitation link looks like:

http://vimexcom_test.mydomain.fr/web/reset_password?token=<random token>&db=vimexcom_test


You will need to setup a database filter indeed. With subdomains the reset links for passwords etc should also be correct. This is what Odoo did on their own system here I believe!

on 1/23/15, 3:22 AM

Thanks ! I'll make a proper answer once I have everything working ^^

on 1/23/15, 3:28 AM

Awesome, I'd love to see a good example from this. Be sure to share it! :)

on 1/23/15, 3:29 AM
On 2/4/15, 6:22 AM

So, it turned out that:

  • db_filter in the config file doesn't work, you need to put it in the boot script, like so: --db-filter=^%d$
  • you have to set proxy_mode = True in the config file

And that's it, it works fine now.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

4 follower(s)


Asked: 1/22/15, 5:49 AM
Seen: 12890 times
Last updated: 10/23/16, 6:30 PM