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

Onlyoffice return Download failed #18

Open
Said113 opened this issue Aug 2, 2023 · 8 comments
Open

Onlyoffice return Download failed #18

Said113 opened this issue Aug 2, 2023 · 8 comments

Comments

@Said113
Copy link

Said113 commented Aug 2, 2023

each time when i open any attachment its return Download failed.
onlyoffice installed in localhost without docker.

only

@GeorgeONLYOFFICE
Copy link

GeorgeONLYOFFICE commented Aug 3, 2023

Hello,

Please try using the IP address for accessing Document Server instead of localhost and
make sure you set the parameter services.CoAuthoring.request-filtering-agent.allowPrivateIPAddress
in etc/onlyoffice/documentserver/default.json to true (also, please note each modification of configuration files requires a restart of all Document Server services with systemctl restart ds-* command in case with package installation type of the solution to apply the changes). This parameter defines if it is allowed to connect private IP address or not. This includes private IP addresses and reserved IP addresses.

@Said113
Copy link
Author

Said113 commented Aug 4, 2023

hi,
It's the same problem, I changed the url to 127.0.0.1:99 in odoo and set allowPrivateIPAddress : true in config file, and also restart the service but I still can't open any attachment

@orzzorzz
Copy link

It's the same problem, I changed the url to 127.0.0.1:99 in odoo and set allowPrivateIPAddress : true in config file, and also restart the service but I still can't open any attachment me too

@tczee36
Copy link

tczee36 commented Aug 19, 2023

same problem, localhost.
tried disabling JWT, no good

@wickeddoc87
Copy link

wickeddoc87 commented Feb 9, 2024

Same here.. accessing OnlyOffice from Nextcloud no Problem-.
Access from Odoo not possible.

OnlyOffice is runing in a docker container

@wickeddoc87
Copy link

wickeddoc87 commented Feb 18, 2024

I Have found at least the reason/solution for my Problem:

After debugging every relevant method of the connector, I was able to find the following problem.

The controller (HTTP) routes which are defined in the connector do not work when there is more than one database present.
Thats why it throws an 404 error and also can not be debugged with Postman.

So, I deleted all Odoo databases except one and voilà… Odoo16 and Odoo17 connector is working without any problem!

What a shame when I think about how long I have been searching for this error. :-)
So, everyone who has a (download failed) problem… please make sure that only one database is present and try again…

Also discussed here: https://forum.onlyoffice.com/t/odoo-16-and-17-connector-not-working/7881/6

@Akram-MA
Copy link

I have the same issue:
I have odoo 16 and odoo 17 installed in different servers and onlyoffice in another server too.
1- Both Odoo 16 and 17 have the default database initialized but not used
2- In Odoo 16 I work in another DB beside the initialized one. OnlyOffice works nice. When I add extra DB it shows a warning the document cound be opend. but OnlyOffice still able to open the document and no problem after that.
3- Odoo 17 gives me the warning message and download failed so it is unable to open the document on OnlyOffice. however, if I create the document in the Document module (not uploading) via create with OnlyOffice then when it is opened, onlyoffice shows me a the warning message but it is still able to open the document.
4- Latest version of odoo and onlyoffice module installed. (17.0.2.1.0)

Screenshot_20240329_061039

@Akram-MA
Copy link

My setup is: each Odoo has its own nginx as reverse proxy. All 3 server use self-signed certificates. Odoo and OnlyOffice are using another server as DB. It doesn't matter allowPrivateIPAddress set to false or true.

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

6 participants