Document could not be saved, please check connection settings

Document Server version: 7.4.1-36
Docker Installation
OS: Windows 10 Pro
Browser version: Edge Version 116.0.1938.62 (Official build) (64-bit)

Getting this error:

Here is some more info about my setup:

Using the PHP example setup from this github repo:

In the config.json, here are some of the relevant settings I have set:

"storagePath": "docStorage\\",
"docServSiteUrl": "http://<my_ip>:8090/",
"docServJwtSecret": "TESTSECRET",
"docServJwtHeader": "Authorization",
"docServJwtUseForRequest": true,

I setup onlyoffice with docker, here is the command I used to start it:
docker run -i -t -d -p 8090:80 --restart=always -e JWT_SECRET=TESTSECRET onlyoffice/documentserver

The only thing I changed in the config files was "rejectUnauthorized": false in default.json.

I am using Xampp with PHP and Apache to host the example from github over port 80. I know the github instructions say to use IIS, but I need onlyoffice to integrate with our existing apps that run in Xampp.

I have also tried using the onlyoffice document server for windows server exe, with the same results.

The nginx.error.log is empty. The only place I could find some kind of an error from the logs was in converter/out.log:

[2023-08-29T17:34:16.657] [ERROR] [localhost] [1171698409] [uid-1] nodeJS - error downloadFile:url=http://<PC_NAME>/webeditor-ajax.php?type=download&fileName=testdoc.docx&userAddress=fe80__3707_a2d1_258d_57df;attempt=3;code:undefined;connect:undefined Error: Error response: statusCode:404; headers:{"date":"Tue, 29 Aug 2023 17:34:16 GMT","server":"Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/8.0.13","content-length":"294","keep-alive":"timeout=5, max=100","connection":"Keep-Alive","content-type":"text/html; charset=iso-8859-1"};
    at Request.fResponse (/snapshot/server/build/server/Common/sources/utils.js)
    at Request.emit (events.js:400:28)
    at Request.onRequestResponse (/snapshot/server/build/server/Common/node_modules/request/request.js:1059:10)
    at ClientRequest.emit (events.js:400:28)
    at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
    at Socket.socketOnData (_http_client.js:515:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)

I can also see the file pop up in the docStorage directory when I upload one from the interface. Not sure what’s wrong, but I would greatly appreciate any advice on how to get this up and running! Thank you.

edit: forgot to mention. The http://<my_ip>:8090/example/ works perfectly, can upload docs, create new docs, and edit with no problems.

edit: new error started showing up in nginx.error.log

2023/08/29 19:22:41 [error] 7278#7278: *318 connect() failed (111: Unknown error) while connecting to upstream, client: 172.17.0.1, server: , request: "GET /7.4.1-36/doc/1171698409/c/?EIO=4&transport=websocket HTTP/1.1", upstream: "http://127.0.0.1:8000/doc/1171698409/c/?EIO=4&transport=websocket", host: "<my_ip>:8090"

I figured it out.

Hello @ilikeike
We are glad that you have managed the situation. However, I should bring your attention that Document server doesn’t support Windows 10 or any other desktop versions of Windows.
Docker Installation
OS: Windows 10 Pro

Please follow ‘System requirements’ article for desired OS: Installation Guides - Docs Community Edition - ONLYOFFICE

We recommend to re-install Document server on the separate clean server to avoid possible port and dependencies conflicts.

Hi,
Could you let me know how you were able to solve it. I am getting the same error. I installed onlyoffice on windows 11, the example is working perfectly fine but when I use the phpexample it gives this error whenever I try to create a document

Hello @sonik511

Windows 11 is not supported for Document Server installation so specify how did you install Document Server. PHP example can be installed in few ways, so please specify how it was installed too.

I figured it out. I am using community edition and had to just implement the document storage server and gives its url as the url in config as the storage server is not providdled in the community edition

1 Like

I’m glad to know that you’ve figured it out.

can you please give an example how you implement the document storage server?

Hello @zhemon5

Please describe your situation in details. Mainly provide information about following items:

  • version of Document Server currently used;
  • if any of test examples is used;
  • information about OS of the server where Document Server or test example is installed.