Hi there,
when I’m trying to edit a document within my Seafile Docker installation with OnlyOffice (also Docker), I get the following error in the logs:
==> /var/log/onlyoffice/documentserver/docservice/out.log <==
[2019-05-08T18:57:59.892] [ERROR] nodeJS - postData error: docId = e2e36b12fb4e26002edd;url = hxxp://cloud.xyz:8000/onlyoffice/editor-callback/;data = {"key":"e2e36b12fb4e26002edd","status":1,"users":["uid-1557341879290"],"actions":[{"type":1,"userid":"uid-1557341879290"}]}
Error: connect ECONNREFUSED 188.xx.xx.xx:8000
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
I also get a pop up message in OnlyOffice which states that the document cannot be saved. If i click “Ok” I can work in the loaded document afterwards, however if I change something, this change isn’t stored at SeaFile.
What confuses me is, that the SeaFile Docker Container tries to contact itself on port 8000 instead of the OnlyOffice container. The OnlyOffice Container is setup with a subdomain like described in the official SeaFile OnlyOffice integration tutorial.
At my seahub_settings.py file I appended the following lines and restarted the SeaFile and OnlyOffice Containers afterwards:
ENABLE_ONLYOFFICE = True
VERIFY_ONLYOFFICE_CERTIFICATE = False
ONLYOFFICE_APIJS_URL = ‘hxxps://office.xyz:4443/web-apps/apps/api/documents/api.js’
ONLYOFFICE_FILE_EXTENSION = (‘doc’, ‘docx’, ‘ppt’, ‘pptx’, ‘xls’, ‘xlsx’, ‘odt’, ‘fodt’, ‘odp’, ‘fodp’, ‘ods’, ‘fods’)
ONLYOFFICE_EDIT_FILE_EXTENSION = (‘docx’, ‘pptx’, ‘xlsx’)
The OnlyOffice container and the SeaFile container are sharing one public IPv4 address, resulting in cloud.xyz and office.xyz both pointing on this public address … if this does matters.
If you need more information, please let me know.
Thanks in advance
PS: A telnet on localhost or cloud.xyz at port 8000 is also resulting in connection refused. What am I missing here?