I am trying to install OnlyOffice Community Edition for use with a self-hosted Nextcloud on the same server (Nginx). I have installed OnlyOffice using Docker following these instructions. The test instance is working properly, when accessed through the local ip address and correct port (in my case 192.168.1.1:8080). In order to access OnlyOffice from the internet, i configured Nginx as a proxy. For testing, i used the following (minimal) configuration file:
server {
server_name mydomain.net office.mydomain.com;
location / {
proxy_pass http://localhost:8080;
}
}
With this setup, i am able to access the welcome page of OnlyOffice through http://office.mydomain.com, but as soon as i try to open a document from the example, a warning (“The document could not be saved”) and an error (“Download failed”) appear.
The following output is written to the file docservice/out.log:
[2023-01-20T17:06:07.618] [ERROR] [localhost] [172.17.0.1new.xlsx1674234365807] [uid-1] nodeJS - postData error: url = http://localhost:8080/example/track?filename=new.xlsx&useraddress=172.17.0.1;data = {"key":"172.17.0.1new.xlsx1674234365807","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxNzIuMTcuMC4xbmV3Lnhsc3gxNjc0MjM0MzY1ODA3Iiwic3RhdHVzIjoxLCJ1c2VycyI6WyJ1aWQtMSJdLCJhY3Rpb25zIjpbeyJ0eXBlIjoxLCJ1c2VyaWQiOiJ1aWQtMSJ9XSwiaWF0IjoxNjc0MjM0MzY3LCJleHAiOjE2NzQyMzQ2Njd9.t7ukpZm8z045DAxZ1eGxJqq7omajCg-T0WHQNW5coBY"} Error: connect ECONNREFUSED 127.0.0.1:8080
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
[2023-01-20T17:06:15.172] [ERROR] [localhost] [172.17.0.1new.xlsx1674234365807] [uid-1] nodeJS - postData error: url = http://localhost:8080/example/track?filename=new.xlsx&useraddress=172.17.0.1;data = {"key":"172.17.0.1new.xlsx1674234365807","status":1,"users":["uid-1"],"actions":[{"type":1,"userid":"uid-1"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIxNzIuMTcuMC4xbmV3Lnhsc3gxNjc0MjM0MzY1ODA3Iiwic3RhdHVzIjoxLCJ1c2VycyI6WyJ1aWQtMSJdLCJhY3Rpb25zIjpbeyJ0eXBlIjoxLCJ1c2VyaWQiOiJ1aWQtMSJ9XSwiaWF0IjoxNjc0MjM0Mzc1LCJleHAiOjE2NzQyMzQ2NzV9.kIM09Y-A1CZucq8qqrXb1nqlHS-rtor0RJFel7aRDSw"} Error: connect ECONNREFUSED 127.0.0.1:8080
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16)
According the troubleshooting page, this error occurs if “The Document editing service cannot upload the file for editing.” and i should “Check if the link to the file specified in the document.url is correct. The link must be accessible from the document editing service.”
How can i figure out the link and check, whether it is accessible?