ONLYOFFICE / onlyoffice_odoo

The app which enables the users to edit office documents from Odoo using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Odoo
GNU Lesser General Public License v3.0
23 stars 14 forks source link

Onlyoffice return Download failed #18

Open Said113 opened 11 months ago

Said113 commented 11 months ago

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

only

GeorgeONLYOFFICE commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

same problem, localhost. tried disabling JWT, no good

wickeddoc87 commented 5 months ago

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

OnlyOffice is runing in a docker container

wickeddoc87 commented 5 months ago

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 commented 3 months ago

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 commented 3 months ago

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.