-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
[12.0] .../xmlrpc/db: 404 NOT FOUND #122
Comments
Hi @gaikaz, Thank you so much for the very detailed report, that's to awesome! I'll need some extra time to look into this as it it quite specific and big to test. I'll try to get back to you soon to see if I can figure this out. ;) Remind me in two weeks if you didn't get a response please. I sometimes tend to miss or forget some, sorry if that happens. ;) |
@Yenthe666 , kind of feel bad for doing this, but those 2 weeks passed :) Could you look into this when you have time? |
Sorry, I didn't get around to it, I've been sick a few days too. |
I can confirm the problem in V12.0 CE |
@Yenthe666 , what's your schedule these days? :) Could you estimate when this could be looked into? |
@gaikaz can you perhaps remind me half next week? I'm still as busy but I'll try to squeeze in a check next week. Very sorry. |
@Yenthe666, auto_backup issue reminder 🙊 |
@gaikaz no problem, I finally got around to testing it.
Result in the logs from db2:
I also get two backups on my disk. |
@Yenthe666 I'll try my case again later today on a fully fresh Odoo install. |
When i try to save a file with appropriate information i came with error below but this error does not exist in localhost. Can you tell me why this is happening? Error ! No such database exists! Error details: |
Your database/Odoo probably runs on another port @susankc 😉 |
Good news everybody! We have a delivery to... I mean, I figured it out! 😃 The problem was incorrect use of My setup used: Module As we can see, Odoo 12.0 now has TL;DR: |
Aha! 🎉 Hey that was quite an interesting and insightful comment to read. It are these kind of things that make sense but only after you've solved them 😆 |
No my database is in same port i cannot even save my file. I came upto same error again and again. @Yenthe666 |
Please add more info such as a screenshot of the configuration. |
My configuration |
I set dbfilter to ^%h$ @Yenthe666 |
Why two upstreams on different ports? The rest looks fine honestly. Perhaps the configuration in Odoo itself for the backup is wrong too? |
One port for long polling and one for xmlrpc actually it was |
@susankc, could you do a simple test logged in to your server terminal: It either gives you a html page for 404 error or some XML (the correct outcome) |
i came up with these error <title>404 Not Found</title>Not FoundThe requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Did i do something wrong ? |
No. It just means your setup is somehow wrong. I'm starting to believe you have the same problem like I did. You are not loading |
Yes you can see below [Install] |
Thank you guys i figured out my problem. I have save problem like @gaikaz i put --load in my service file and now it is working fine in my server. This setup was not need in 11 version i guess. |
Awesome, good luck guys! |
Hey @gaikaz this was exactly the issue in my case. base module was not being pre-loaded. Appreciate your efforts. |
As it seems to have hit three people I've also added it in the important information section of the readme. Added in 4f45b45 - I hope that helps others to identify the problem faster. |
Thanks for the save!! |
Full error in the popup:
How to reproduce:
Host: localhost (default)
Database: [Current DB] (default)
Port: 8069 (default)
The problem is caused by the multiple databases. At first I was very confused as to why my browser seems to be able to open the
/xmlrpc/db
uri and server gives a xml response (even if it is a faulty one), but trying to usecurl
ends up in an actual 404. Then I figured out that it remembers thesession_id
from normal use of Odoo and so sends that to the server as well. Removing the cookie results in server giving 404 to the browser as well.To check my diagnosis further, I tried running Odoo with
dbfilter
set to only find one of the databases and indeed this helps with opening/xmlrpc/db
from anywhere, as it can automatically figure out the database and assign a new session.It seems that a lot has changed how Odoo handles RPC requests in V12. From what I've gathered looking at V9-12 code, it looks like in V12 (maybe V11 too) Odoo starts handling RPC (HTTP) requests more like any other module would - with proper controllers and
@route
directives in them.So my guess is that this includes session checking somewhere deeper in the code. Maybe this is an actual issue to be reported to Odoo repositories, as the
/xmlrpc/db
->list
method kind of becomes redundant.Hopefully I provided enough information about the issue to save as much of your time as possible. :)
The text was updated successfully, but these errors were encountered: