I have installed onlyoffice doc server docker and integrated it with my maarch courrier instance. Both docker containers are histed on the same host. Maarch using port 80 and onlyoffice using port 5742. Onlyoffice is working and i can create documents edit and save them. The problem is when i try to edit documents in maarch i get the error " cannot save the document …" then "download failed ". But when i access the maarch instance using the ip address i can edit documents without any problems.
Hello @Ansisup
Do I understand correctly that the problem occurs only when attempting to run the editor via domain name? If so, please check browser console for any errors when connecting via domain name and then also check logs of Document Server for even for details.
Logs are located in /var/log/onlyoffice/documentserver
directory inside the container with Document Server. In particular check out out.log of the converter folder in this directory.
You can also use docker logs
for that purpose.
The editor by itself works with hostname and ip. But when i try to open the editor in maarch api it doesnt work if i access maarch through the hostname. But the editor works if i access maarch with ip address.
Does the problem come from the fact that both containers are in the same host.
As to the logs
ERROR] [localhost] [HkEtc] [23] nodeJS - error downloadFile:url=http://sgci-pj/pj_courrier/rest/onlyOffice/mergedFile?filename=23_HkEtc.docx;attempt=1;code:null;connect:null Error: Error response: statusCode:503; headers:{“content-length”:“45736”,“cache-control”:“no-cache”,“content-type”:“text/html; charset=UTF-8”,“date”:“Mon, 17 Mar 2025 15:25:55 GMT”,“proxy-agent”:“TMWS”,“proxy-connection”:“close”};
at Request.fResponse (/snapshot/server/Common/sources/utils.js)
at Request.emit (node:events:527:28)
at Request.onRequestResponse (/snapshot/server/Common/node_modules/request/request.js:1066:10)
at ClientRequest.emit (node:events:527:28)
at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:631:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
at Socket.socketOnData (node:_http_client:494:22)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
Converter log
ERROR] [localhost] [qD0bA] [231] nodeJS - postData error: url = http://sgci-pj/pj_courrier/rest/onlyOfficeCallback;data = {“key”:“qD0bA”,“status”:4,“actions”:[{“type”:0,“userid”:“23”}],“token”:“eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJxRDBiQSIsInN0YXR1cyI6NCwiYWN0aW9ucyI6W3sidHlwZSI6MCwidXNlcmlkIjoiMjMifV0sImlhdCI6MTc0MjIxNzU5OSwiZXhwIjoxNzQyMjE3ODk5fQ.l6s8dqAKYOYv4OC8BHM2IGOo4gLgdF7KGfCMA8rG7Nk”} Error: Error response: statusCode:503; headers:{“content-length”:“45773”,“cache-control”:“no-cache”,“content-type”:“text/html; charset=UTF-8”,“date”:“Mon, 17 Mar 2025 15:25:41 GMT”,“proxy-agent”:“TMWS”,“proxy-connection”:“close”};
Status code 503 is returned to Document Server by the storage, in this particular case by your storage. You should also check out any logs available in your app for better understanding of the situation.
It is possible that your hostname is configured via some local DNS server. In such case Document Server would not know about it and in attempt to send a request to the resource gets 503 at the intermediate point or such.
Yes, i have a local dns. Do i need to add some configurations to make it work.
The installation guide for Docker contains information about local DNS configuration, please check it out at the very beginning of the Installing ONLYOFFICE Docs section: