Docker compose installation: The document could not be saved / Download failed

Hello,

I started/installed onlyoffice on a webserver my.fqdn.de from current Docker-DocumentServer repo, from docs-install.sh script and by executing
docker run -i -t -d -p 11080:80 -p 11443:443 --restart=always -e WOPI_ENABLED=true -e JWT_SECRET=Blablupps -e ONLYOFFICE_EDITOR_LANGUAGE_SETTING=de-DE onlyoffice/documentserver

I do SSL by apache proxy.
The relevant vhost config part is from https://github.com/ONLYOFFICE/document-server-proxy/blob/master/apache/proxy-https-to-http.conf:

########## OnlyOffice part ##############################
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AE>
SSLProtocol All -SSLv2 -SSLv3
SSLCompression off
SSLHonorCipherOrder on

## [Optional] Generate a stronger DHE parameter:
##   cd /etc/ssl/certs
##   sudo openssl dhparam -out dhparam.pem 4096
##
# SSLOpenSSLConfCmd DHParameters "/etc/ssl/certs/dhparam.pem"

SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto https
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
ProxyAddHeaders Off

RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://127.0.0.1:11080/$1" [P,L]
ProxyPass / "http://127.0.0.1:11080/"
ProxyPassReverse / "http://127.0.0.1:11080/"

After that, i can access the Welcome page from onlyoffice by https and start the example.
I go to the example screen and create a file, and when I try to edit i always get the same result:

“The document could not be saved. Please check connection settings or contact your administrator. When you click the Ok button, you will be prompted to download the document.”

After click on “Ok” i get:
“Download failed. Press Ok to close the editor”

Firefox console is full of wss:// errors:

Firefox kann keine Verbindung zu dem Server unter wss://my.fqdn.de/9.0.4-2d0d5c0dc299f0a3fbbf361dfcebf696/doc/172.19.0.1new.docx1758718586485/c/?shardkey=172.19.0.1new.docx1758718586485&EIO=4&transport=websocket aufbauen.
Die Verbindung zu wss://onlyoffice.zqms-eco.de/9.0.4-2d0d5c0dc299f0a3fbbf361dfcebf696/doc/172.19.0.1new.docx1758718586485/c/?shardkey=172.19.0.1new.docx1758718586485&EIO=4&transport=websocket wurde unterbrochen, während die Seite geladen wurde.

It happens with every install method i tried, so i guess my proxy settings for https-to-http are wrong.
Someone experienced this or can give me a hint?

when i start the docker-compose stack, i get no wss errors in console but same problems “The document could not be saved” → “Download failed”

Error in documentserver/out.log is:

[2025-09-24T13:41:25.100] [ERROR] [localhost] [172.20.0.1new.docx1758721274739] [uid-1] nodeJS - postData error: url = https://my.fqdn.de/example/track?filename=new.docx&useraddress=172.20.0.1;data = {"key":"172.20.0.1new.docx1758721274739","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxNzIuMjAuMC4xbmV3LmRvY3gxNzU4NzIxMjc0NzM5Iiwic3RhdHVzIjoxLCJ1c2VycyI6WyJ1aWQtMSJdLCJhY3Rpb25zIjpbeyJ0eXBlIjoxLCJ1c2VyaWQiOiJ1aWQtMSJ9XSwiaWF0IjoxNzU4NzIxMjg1LCJleHAiOjE3NTg3MjE1ODV9.NDVbc0fWwplaK3kpPPHX_R1-tgHLfInK_iRbmvKWYCI"} 
AxiosError: Request failed with status code 421
    at settle (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at IncomingMessage.handleStreamEnd (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at IncomingMessage.emit (node:events:536:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
    at Axios.request (/snapshot/server/Common/node_modules/axios/dist/node/axios.cjs)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.postRequestPromise (/snapshot/server/Common/sources/utils.js)
    at async sendServerRequest (/snapshot/server/DocService/sources/DocsCoServer.js)
    at async sendStatusDocument (/snapshot/server/DocService/sources/DocsCoServer.js)

Hello @cari

ONLYOFFICE_EDITOR_LANGUAGE_SETTING=de-DE

It seems this flag isn’t correct. The complete list of variables is available here Installing ONLYOFFICE Docs for Docker on a local server
Please try to redeploy using correct variables.
Alternatively, please use one-click installation script to deploy the Document server: Installing ONLYOFFICE Docs using the provided script

As for the the provided log and proxy server. Indeed, it seems that the issue might be related to it. Is it possible to disable the proxy server to check out whether it affects the situation?

I tried installation with docker-compose, with the single docker command and with the install.sh script, i always get the same error.
so i guess its firewall/proxy related.

The installation worked before we moved to another server.

Ok, I try to open the port on the server to check, if its proxy related.

Yes, please. These guides might be useful:
Ports which must be opened for ONLYOFFICE Docs - list of ports
Using ONLYOFFICE Docs behind the proxy - proxy config samples
Please let us know if it helps.

hm, i opened the port and ran onlyofice with SSL without proxy, now everything works.
seems to be a proxy problem.

thank you for your effort, i will come back when we go to production with this :slight_smile:

1 Like