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 !
Edit:
This issue may be solved here. Wait and see:
https://github.com/odoo/odoo/issues/4563
Edit:
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 ?
Edit:
Okay, so now I have a domain. But still no luck :/ Here are my files:
/etc/hosts
127.0.0.1 localhost
127.0.0.1 mydomain.fr magestionfacile
127.0.0.1 vmx.mydomain.fr vmx
127.0.0.1 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
/etc/sites-available/odoo
<VirtualHost *:80>
ServerName mydomain.fr
ServerAlias *.mydomain.fr
ErrorLog /var/log/odoo/odoo-server.log
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass / http://localhost:8089/
ProxyPassReverse / http://localhost:8089/
ProxyVia On
LogLevel warn
</VirtualHost>
/etc/odoo-server.conf
[options]
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!
Thanks ! I'll make a proper answer once I have everything working ^^
Awesome, I'd love to see a good example from this. Be sure to share it! :)