It seems NC ONLYOFFICE Client app is « working » fine as I don’t have any error message when I configure it, I don’t need to set any external specific domain or https as I wan’t OO working within my local network. I access NC from the Internet though, specific certbot wildcards with nginx reverse proxies do what I need for ssl/https subdomains. I did not configure anything yet to make oo open to the outside.
Also test server is « working » fine as I tested it in different browsers.
But still, when I’m in ittle red message appears saying ONLYOFFICE cannot be reached. Please contact admin ✖ on Nextcloud.
I made some research but couldn’t find anything and tried to re-create and reinstall different ways to make oo work within nc.
I didn’t want to configure oo to be open to the Internet (except within NC when I’m logged to NC), do you think this would be the problem ? Or anyhting else I did wrong ?
EDIT : I could not find anything relevant in my logs, but if needed I can grep or try looking for whatever you tell me to look at
Hello,
Please try to access the document editor => open the browser Dev Tools (F12 in Chrome/Firefox) => refresh the page and make a screenshot of error messages in Console and Network tab if there are any.
Thanks a lot, I took screenshot of first request as it may contained some interesting infos I guess, others (app.svg & notifications.svg come from other NC apps).
Please make a screenshot where I can see the full path to api.js (or copy it here).
If api.js can’t be loaded, the document editor won’t work. Is there any extension that blocks js files in your Firefox? Please try reproducing the issue in any other browser and let me know the result.
I just tested right now with Version 101.0.4951.64 (Official Build, ungoogled-chromium) (before it was Firefox), extensions : Privacy Badger, HTTPS Everywhere, uBlock Origin, Decentraleyes, Cookie AutoDelete
You have to set an external address of the Document Server in the connector settings. When local DS address is set instead of an external one, users will be able to open documents only when they are in your local network because user’s browser must have access to the api.js script, and it is impossible to access 192.x.x.x address from outside of your network.
I have no specific error logs in Nextcloud or OO :s
Here are some nginx errors from my container (which I use to make oo work on my external domain). This external domain is trusted by nextcloud as I put it in config.php. Now I don’t know what to do ¯\(ツ)/
/var/log/nginx/oo.error_log ─2022/05/22 22:09:31 [info] 2174278#2174278: *319808 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 77.198.1│
/var/log/nginx/oo.access_log┌XXX.XXX.XXX.XX - - [22/May/2022:22:09:31 +0200] "GET /7.0.1-37/doc/4081651026/c/info?t=1653250170715 HTTP/1.1" 200 108 "https://oo.XXX.COM/7.0.1-37/web-apps/apps/documenteditor/main/index_loader.html?│
/var/log/nginx/oo.access_log└XXX.XXX.XXX.XX - - [22/May/2022:22:09:31 +0200] "GET /7.0.1-37/sdkjs/common/Images/icons/anchor.png HTTP/1.1" 499 0 "https://oo.XXX.COM/7.0.1-37/web-apps/apps/documenteditor/main/index_loader.html?_dc│
/var/log/nginx/oo.error_log ─2022/05/22 22:09:36 [info] 2174278#2174278: *319831 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while reading upstream, client: XXX.XXX.XXX.XX, serv│
/var/log/nginx/oo.access_log┌XXX.XXX.XXX.XX - - [22/May/2022:22:09:36 +0200] "GET /cache/files/4081651026/Editor.bin/Editor.bin?md5=JbW4sKjooZW-rQfzXCSNhQ&expires=1655844765&filename=Editor.bin HTTP/1.1" 200 1426 "https://oo.roselove.p│
/var/log/nginx/oo.access_log└XXX.XXX.XXX.XX - - [22/May/2022:22:09:36 +0200] "GET /7.0.1-37/fonts/032 HTTP/1.1" 200 97913 "https://oo.XXX.COM/7.0.1-37/web-apps/apps/documenteditor/main/index_loader.html?_dc=7.0.1-37&lang=en&custo│
/var/log/nginx/oo.error_log ─2022/05/22 22:09:37 [info] 2174278#2174278: *319834 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 77.198.1│
/var/log/nginx/oo.access_log┌XXX.XXX.XXX.XX - - [22/May/2022:22:09:37 +0200] "GET /7.0.1-37/plugins.json HTTP/1.1" 304 0 "https://oo.XXX.COM/7.0.1-37/web-apps/apps/documenteditor/main/index_loader.html?_dc=7.0.1-37&lang=en&custom│
/var/log/nginx/oo.access_log│XXX.XXX.XXX.XX - - [22/May/2022:22:09:37 +0200] "GET /7.0.1-37/themes.json HTTP/1.1" 304 0 "https://oo.XXX.COM/7.0.1-37/web-apps/apps/documenteditor/main/index_loader.html?_dc=7.0.1-37&lang=en&custome│
/var/log/nginx/oo.access_log└XXX.XXX.XXX.XX - - [22/May/2022:22:09:37 +0200] "GET /7.0.1-37/sdkjs-plugins/macros/resources/dark/icon.png HTTP/1.1" 499 0 "https://oo.XXX.COM/7.0.1-37/web-apps/apps/documenteditor/main/index_loader.│
/var/log/nginx/oo.error_log ┌2022/05/22 22:09:42 [info] 2174278#2174278: *319837 client closed connection while waiting for request, client: XXX.XXX.XXX.XX, server: 0.0.0.0:443
Also here are my nextcloud app settings which does work too, I have no errors here ^^
According to logs the Document Server tries to download files using local IP address instead of the domain name and these attempts fails. The most possible reason is that x-forwarded-host header is missing in the proxy config.
When setting up a proxy server in front of the Document Server, please use our examples:
Hi @Carl & thanks again, I’m pretty sure I would offer you a tea or a beer some day
(* ˘⌣˘)◞
I think we’re very (very) close to it but my nginx skills are very low, I still have the same message « The document could not be saved. Please check connection settings or contact your administrator. »… Sorry… Here is my nginx host conf’ for oo docker container :
Some error I found from these logs are about my IPV4 Gateway (172.19.0.1) that is used between my nextcloud docker & my oo docker. I don’t understand that, somehow I’m trying to think my nginx configuration is ok and maybe my problem is somewhere else.
Thanks again, I think I’ll stop asking after your answer (if you wan’t to) as I took you so much of your time ;\
PS : Sorry @Alexandre I didn’t answer to you ! ‘allow_local_remote_servers’ => true, was already set, also I have set some trusted_domains ^^
I have the same issue using docker
I used this docker command docker run -i -t -d -p 8478:80 --restart=always onlyoffice/documentserver
which the port is using 8478, outside of the docker I have nginx proxy_pass http:127.0.0.1:8478;
issues:
Working on internal network by ip 192.168.1.103:8478
Working on public ip network by ip 232...322:8478
Not working with nginx SSL office.example.com
the document could not be saved. Please check connection setting ot contact your administrator
Hello @weasam
Let’s start from scratch. Please reproduce the issue and provide us with whole Document server logs folder. Also please check out your DNS settings, make sure that your domain name resolves to necessary ip address.
I went through this same process noted by other users above. i am now stuck on “the document could not be saved. please check connection settings or contact your administrator” error others mentioned. My logs show:
nextcloud-documentserver-1 | ==> /var/log/onlyoffice/documentserver/docservice/out.log <==
nextcloud-documentserver-1 | [2024-06-19T01:33:37.130] [ERROR] [localhost] [3475978907] [ocsie3qmbw7z_ericp6] nodeJS - postData error: url = http://office.pendra.dev/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJlcmljcCIsIm93bmVySWQiOiJlcmljcCIsImZpbGVJZCI6MTM3LCJmaWxlUGF0aCI6Ii8yMDI0LTIwMjUgQ2FsbCBTY2hlZHVsZS54bHN4Iiwic2hhcmVUb2tlbiI6bnVsbCwiYWN0aW9uIjoidHJhY2sifQ.sB59ocAmH2JlUR1Qk83sOIJbgW1cLKR9Wh2dzFUCBJc;data = {"key":"3475978907","status":4,"actions":[{"type":0,"userid":"ocsie3qmbw7z_ericp"}],"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiIzNDc1OTc4OTA3Iiwic3RhdHVzIjo0LCJhY3Rpb25zIjpbeyJ0eXBlIjowLCJ1c2VyaWQiOiJvY3NpZTNxbWJ3N3pfZXJpY3AifV0sImlhdCI6MTcxODc2MDgxNywiZXhwIjoxNzE4NzYxMTE3fQ.shmxAkZbhL65ifxSzCXRII32woJStkkn-8dgm1atoxE"} Error: Error response: statusCode:301; headers:{"date":"Wed, 19 Jun 2024 01:33:37 GMT","content-type":"text/html","content-length":"167","connection":"close","cache-control":"max-age=3600","expires":"Wed, 19 Jun 2024 02:33:37 GMT","location":"https://office.pendra.dev/apps/onlyoffice/track?doc=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOiJlcmljcCIsIm93bmVySWQiOiJlcmljcCIsImZpbGVJZCI6MTM3LCJmaWxlUGF0aCI6Ii8yMDI0LTIwMjUgQ2FsbCBTY2hlZHVsZS54bHN4Iiwic2hhcmVUb2tlbiI6bnVsbCwiYWN0aW9uIjoidHJhY2sifQ.sB59ocAmH2JlUR1Qk83sOIJbgW1cLKR9Wh2dzFUCBJc","report-to":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=G4PTfq25AbQNX0du6cbYFD438VS2snrn4N0d1R2HqOOLDIbRFfh%2F%2FY6AAnMomPzbxE3JRJmIE76K3MHjHkGi3yheqMxs7cX55A31Z1nxUGc8AIh1hbGNRiZF20htQ3B%2BgQLauQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}","nel":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}","vary":"Accept-Encoding","server":"cloudflare","cf-ray":"895fc5a2ee7d2d8e-ORD","alt-svc":"h3=\":443\"; ma=86400"}; body:
nextcloud-documentserver-1 | <html>
nextcloud-documentserver-1 | <head><title>301 Moved Permanently</title></head>
nextcloud-documentserver-1 | <body>
nextcloud-documentserver-1 | <center><h1>301 Moved Permanently</h1></center>
nextcloud-documentserver-1 | <hr><center>cloudflare</center>
nextcloud-documentserver-1 | </body>
nextcloud-documentserver-1 | </html>
nextcloud-documentserver-1 |
nextcloud-documentserver-1 | at Request._callback (/snapshot/server/Common/sources/utils.js)
nextcloud-documentserver-1 | at Request.callback (/snapshot/server/Common/node_modules/request/request.js:185:22)
nextcloud-documentserver-1 | at Request.emit (node:events:527:28)
nextcloud-documentserver-1 | at Request.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1161:10)
nextcloud-documentserver-1 | at Request.emit (node:events:527:28)
nextcloud-documentserver-1 | at IncomingMessage.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1083:12)
nextcloud-documentserver-1 | at Object.onceWrapper (node:events:641:28)
nextcloud-documentserver-1 | at IncomingMessage.emit (node:events:539:35)
nextcloud-documentserver-1 | at endReadableNT (node:internal/streams/readable:1345:12)
nextcloud-documentserver-1 | at processTicksAndRejections (node:internal/process/task_queues:83:21)
Hello @applesoff
Please clarify your Nextcloud, Document server, the connector app versions.
I have checked the url in the provided logs, it seems that you are trying to integrated Document server to Nextcloud, which is the part of Workspace installation. Is it correct?