Problem Description:
When attempting to create or open any document within Odoo through the ONLYOFFICE connector, a popup appears with the following message:
Validation Error: Error while downloading the document file to be converted
This error consistently occurs, preventing us from using the integration. The message strongly suggests that the ONLYOFFICE server is failing to download the source file from the Odoo server for processing.
Environment Details:
-
We are using the official ONLYOFFICE integration app from the Odoo App Store.
-
Our ONLYOFFICE Docs server is installed on our own infrastructure and is publicly accessible via HTTPS.
-
Both Odoo and ONLYOFFICE Docs are containerized using Docker and are running on the same host machine, but are configured to communicate via their public domain names.
Troubleshooting Steps Performed:
We have performed an extensive series of checks to diagnose the issue, but have not been successful in resolving it. Our troubleshooting included:
-
Verifying Server Accessibility: The ONLYOFFICE Docs server is fully operational and accessible from the public internet. Its main page loads correctly.
-
Connector URL Configuration: Within Odoo’s ONLYOFFICE settings, we have ensured that both the “Document Server URL” and the “Document Editing Service address for internal requests” are correctly set to the public URL of our ONLYOFFICE Docs server.
-
Network Connectivity Confirmation: We have confirmed that there is full network connectivity between the Odoo and ONLYOFFICE containers.
-
From within the Odoo container, we can successfully make a curl request to the ONLYOFFICE server’s public URL.
-
Crucially, from within the ONLYOFFICE container, we can also successfully make a curl request to the Odoo server’s public URL. This confirms that there are no firewalls, Docker network issues, or DNS resolution problems preventing communication.
-
Odoo System Parameters: We have checked and confirmed that the web.base.url system parameter in Odoo is correctly set to the public base URL of our Odoo instance, ensuring that Odoo provides the correct callback URL to external services.
-
JWT Secret Validation: We have meticulously verified that the JWT secret key is identical in both the Odoo connector settings and the ONLYOFFICE Docs server configuration.
Despite confirming that both servers are running correctly and can communicate with each other over the network, the file download error persists. This leads us to believe the issue may lie within the specific mechanism the Odoo connector uses to generate the file URL or the process by which ONLYOFFICE attempts to authenticate and retrieve it.
Could you please provide further insight or advanced debugging steps to help us identify the root cause of this file download failure? Any assistance you can offer would be greatly appreciated.