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"