-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown error without any info/log to troubleshoot #151
Comments
By manually analysing the js stacktrace I ended up nearby this failed XMLHttpRequest "wss://office.mydomain.com/cache/files/4009520959/Editor.bin/Editor.bin?md5=vyDJoVrnjfh3o02BppqNsA&expires=1573258415&disposition=attachment&ooname=output.bin" EDIT: websocat -vvv wss://office.mydomain.com/5.4.1-39//doc/3555953290/c/259/vtqjoun2/websocket also |
I've tried removing TLS termination on reverse proxy but the problem is still there even with 100% HTTP I've increased to 'loglevel' => 0 and this is the output of data/nextcloud.log when I trigger the problem
|
Hey guys, same issue here. Traefik 2 - nextcloud-17-apache - documentserver |
Hello @arkanoid87, it looks likes there is some problem with the functioning of the Document Server. Please check the Document Server by entering the address https://documentserver_address/healthcheck/ and send us the response you get in browser. Enable extending logging for the Document Server: open /etc/onlyoffice/documentserver/log4js/production.json and replace the 'WARN' value with 'DEBUG' of the "level" parameter. Then restart all services of the Document Server with a command |
I have the same issue since I upgraded Traefik to v2. |
Same here with traefik2(.0.4) i changed logging to debug and did two things: First i went to the settings-page and saved my settings again and second i tried to open a document.. where the referenced error appears. the nginx-log from location "/var/log/onlyoffice/documentserver/nginx.error.log" shows these errors:
--> client ip (client: 172.18.0.2) is internal ip of my traefik.. i think it should be either the nextcloud-ip or my real-client-ip? when i set up onlyoffice and nextcloud dockers with an haproxy docker (official) i have no problems with my setups.. |
i found a temporary solution by reconfiguring nginx inside the docker: in file: /etc/nginx/includes/http-common.conf
and then i did: Now i can open onlyoffice-documents from nextcloud... but I'm still not sure if this bug is on traefik or onlyoffice side.. edited on 2019/11/29: |
I can confirm that this workaround works. |
Same problem when update to traefik 2 |
See the @arkanoid87 |
For those on Traefik 2, I was able to fix the problem with these labels/headers: traefik.http.routers.onlyoffice-secure.entrypoints: "web-secure"
traefik.http.routers.collabora-secure.tls: "true"
traefik.http.routers.collabora-secure.tls.certresolver: letsencrypt
traefik.http.services.onlyoffice.loadbalancer.server.port: "80"
traefik.http.routers.onlyoffice-secure.middlewares: "onlyoffice-sslheaders"
traefik.http.middlewares.onlyoffice-sslheaders.headers.customrequestheaders.X-Forwarded-Proto: "https" Similarly if you're having CORS problems, use the CORS header as well traefik.http.routers.onlyoffice-secure.middlewares: "onlyoffice-sslheaders, onlyoffice-cors"
traefik.http.middlewares.onlyoffice-sslheaders.headers.customrequestheaders.X-Forwarded-Proto: "https"
traefik.http.middlewares.onlyoffice-cors.headers.accessControlAllowOrigin: "*" |
That's working for me, too. Thank you so much! My docker-compose config:
|
does work for me too. thanks to @calvinbui and also to @wcdgit for the full docker-compose for checkup-purposes! |
@calvinbui 's labels fixed it for me, too. Thanks a lot! Can we somehow add a note or full example to https://helpcenter.onlyoffice.com/server/document/document-server-proxy.aspx to save people's time? The Traefik sample is still for version 1 |
I can also confirm that adding the X-Forwarded-Proto header solved my issues. |
I can confirm that only the |
This config is not working for me... I'm still getting |
So, I've digged a bit, and the (merged) PR to traefik that @SuperSandro2000 linked above does not fix it. I refactored the code in traefik again to make it a bit clearer what's actually happening, but it doesn't make a difference really. This needs to be fixed in ONLYOFFICE, but this is not the appropriate repository for that issue. Will open one though. |
I use FileRun (free, max 10 users, not opensource) instead of NextCloud, but I had the same issue with OnlyOffice. For future reference, none of the workaround examples above are actually complete or are correct. After a few hours of trial and error, this is how I got it working. After I had https://office.mydomain working, I tested the example doc file. When that worked, I started removing several Traefik labels until I got the bare minimum set of extra rules necessary to run OnlyOffice successfully with Traefikv2.0.
Also:
|
@wcdgit and @calvinbui thanks so much for sharing your configs! Sadly these are still not working for me. This is my current config:
This is the config of the nextcloud app: Here's the config for the nginx between traefik and nextcloud (and onlyoffice): https://gist.github.com/chmanie/3411b3533bbcfd3dd55a33a18accd31f Am I missing anything? EDIT: Commenting out the link as mentioned here worked for me, but I don't like this as a permanent solution. |
Just fyi since I posted my Traefik solution I switched to Caddyv2 as it is extremely simplified compared to Traefik. This works fine: https://github.com/zilexa/Homeserver/blob/master/docker/docker-compose.yml#L279 I also have a fully tested example with Nextcloud instead of FileRun: Both cases A+ security rating instantly. |
Any update on this? Neither the custom request header nor removing the line in the nginx config works for me using the onlyoffice helm setup and a traefik2 ingress. :/ |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Unknown error without any info
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
client > TLS terminator reverse proxy (traefik) > nextcloud (+ app) + documentserver
using traefik:latest, nextcloud:latest and onlyoffice/documentserver:latest in a docker-compose stack.
Stacks seems correctly configured: I successfully set all the urls (even http internal ones) in nextcloud app config and both nextcloud and documentserver public https endpoints are reachable.
Problem: open ANY document (tested newly created one and the xlsx you provide as example), tab opens, onlyoffice seems to load, then a misterious "unknown error" popup.
What is the expected behavior?
Documents opens correctly in new tab
Did this work in previous versions of DocumentServer?
Tested 5.3.0.243, same problem there
DocumentServer version:
5.4.1.39
Operating System:
Ubuntu server 18.04
Browser version:
Firefox 69.0.1
I've been searching for hints on how to debug the problem for hours unsuccessfully.
Been loooking into:
Also tried:
More info:
It's issue ONLYOFFICE/DocumentServer#666 for a reason
The text was updated successfully, but these errors were encountered: