Suddenly the OnlyOffice server won’t work properly anymore.
When opening a document it shows the loading screen but then does nothing and runs into errors. Tried in different browsers.
Actualy tried it and its work OK for me. Or how did you upgrade?
buffon ~ # docker pull onlyoffice/documentserver
Using default tag: latest
latest: Pulling from onlyoffice/documentserver
Digest: sha256:c6e70e63e60b9a2c9589916578935981e9a5403126fd139548d7457854b1d81e
Status: Image is up to date for onlyoffice/documentserver:latest
buffon ~ #
I tried to find the bug here. At first I though that the add blocker plugins do harm. Disabled those. Nothing changed.
Then In the logs it shows even more errors now. Cleaning browser cache does not do any good either. :-/
Following the errors from firefox gives the following links:
Is this anything that one has to do for this to work?
What is the latest version from onlyoffice that works for you?
Hi,
sorry alot work in job and I’m not on PC over weekend. So I tried do update to latest version on second server and still every think working. For sure I upgrade one of the servers from Debian 8.9 to 9.1. So actualy I have very think up-to-date and working. So I guess there is problem with your configuration. Ho did you setup access to your OnlyOffice over WebServer(Apache/NGinx)?
HTTP 2 section is ignore, it works without it
<IfModule mod_ssl.c>
<VirtualHost *:443>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName office.example.cz
ServerAdmin webmaster@example.cz
DocumentRoot /var/www/office/www
SSLEngine ON
SSLCertificateFile /etc/letsencrypt/live/office.example.cz/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/office.example.cz/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
RewriteEngine On
SetEnvIf Host "^(.*)$" THE_HOST=$1
RequestHeader setifempty X-Forwarded-Proto https
RequestHeader setifempty X-Forwarded-Host %{THE_HOST}e
#RequestHeader edit X-Forwarded-Host (.*) $1/onlyofficeds
ProxyAddHeaders Off
# HTTP 2
Protocols h2 h2c http/1.1
H2Push on
H2PushPriority * after
H2PushPriority text/css before
H2PushPriority image/jpeg after 32
H2PushPriority image/png after 32
H2PushPriority application/javascript interleaved
# #HTTP2
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyPass / http://127.0.0.1:9980/
ProxyPassReverse / http://127.0.0.1:9980/
ProxyPassMatch ^/(.*\websocket)$ wss://localhost:9981/$1
ProxyPassReverse /websocket wss://localhost:9981/websocket
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog /var/www/office/logs/office_error.log
CustomLog /var/www/office/logs/office_access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
</IfModule>
I use nginx. I actuslly wrote the onlyoffice guide in the manual and can see the onlyoffice document server welcome page just fine.
As said before it suddenly starts throwing those errors. I don’t know for sure if it was working in 6.2.2, last time I used it was with 6.1.2.
I have Seafile CE 6.2.2 and lates OnlyOffice docker container. Using apache it works. But I don’t know NGinx a lot.
Can you post more info as NGinx config, browser error etc?
Can you post browser log in readable format with status codes without this I can only guess? My idea is problem with HSTS but if I can se full log I don’t know.
You setup your doc server in subfolder? Or why you have proxy_set_header lines only in /mysubfolder/
I will try to disable HSTS and try again. Although the only office devs suggest using HSTS in their example config.
I use the subfolder with a random long (~20) string to somewhat hide the server from the public. Did not have any issue with that so far. Once Seafile supports the security settings this becomes absolute.
Can anybody post their working nginx config?
Maybe something is configured to strict in Seafiles nginx config.
I’m only guessing about HSTS. Cause if something come without TSL then browser will no load that. HSTS is little problem to disable when I’m looking for your expiration time (Guess it’s 1 year for HTTP2). But maybe you can disable it in your browser.
Did your tried put all proxy_set_header lines out of the location section as it in example. I setup it some time ago on nginx and this worked for me, but as I sayd it’s long time.
I moved out all proxy header settings yesterday already. No improvement. Some new error then showed up: “wss:… Websocket error“.
What I don’t get is why, out of nowhere, this suddenly does not work anymore. I did not change any config. I mean this should be simple to debug, check what changed and fix.
This error I’m having to, but OnlyOffice work’s great. BTW I had some WSS error on first start up, after some play with proxy_headers I get it work. Maybe you have to move it out and then check what you sending.
1.13.6 I think. I have to verify that later. I am using debian stretch and the nginx repo to receive the latest version.
Maybe I should switch to the latest stable version?
Update:
Nginx 1.13.6 it was, switched to stable which is 1.12.2. - No change.
When I try to open the file manually it works without problems. Something related to Seahub errors? Maybe some issue with the iframe?
Should I reinstall Seafile or something?