Onlyoffice 7.3.0 websocket path invalid, help

installed docker onlyoffice 7.3.0 software.

in our current nginx system,config onlyoffice :
location /crm/onlyoffice/ {
proxy_pass http://onlyoffice:80/;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_http_version 1.1;
}

=================================
but page network requests have ***/cache/files path invalid ,no add nginx config “/crm/onlyoffice”.

ws://192.168.0.165/crm/onlyoffice/doc/D24A86BEE9AE/c/?EIO=4&transport=websocket
response message contain :42[“message”,{“type”:“documentOpen”,“data”:{“type”:“open”,“status”:“ok”,“data”:{“Editor.bin”:“http://192.168.0.165:80/cache/files/data/D24A86BEE9AE/Editor.bin/Editor.bin?md5=grnYb71vqq6nLCYnA1A4-g&expires=1679740030&filename=Editor.bin",“origin.docx”:“http://192.168.0.165:80/cache/files/data/D24A86BEE9AE/origin.docx/origin.docx?md5=CoEaHKNRgIpNxlU3rXsbaQ&expires=1679740030&filename=origin.docx”},"openedAt”:1677169053306}}]

how to repair this problem ?
thanks

Hello @mojianpo
We changed the websocket library from sockjs to socket.io in v.7.3
https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#back-end
We described workaround solution here:

Please check it out.

If I misunderstood your request, please provide us with details.

Hi Alexandre,

We are having the same problem, our reverse proxy is oracle HTTP server (essentially apache). We are using a virtual path from https - our document server is running as a docker container:

Define VPATH /onlyOffice
Define DS_ADDRESS ip.address.here

<Location ${VPATH}>
Require all granted
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${VPATH}
ProxyAddHeaders Off

RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^${VPATH}/?(.*) “ws://${DS_ADDRESS}/$1” [P,L]
ProxyPass ${VPATH} “http://${DS_ADDRESS}”
ProxyPassReverse ${VPATH} “http://${DS_ADDRESS}”

Any ideas what could be the problem here (we have had the issue for quite some time so have not upgraded our environment due to this issue so are running 7.2.1 in production).

Thanks,

Kristen

Hello @kritta
The described by topicstarter situation was related to Docs v.7.3. In the version 7.3.2 we released a fix for it:https://github.com/ONLYOFFICE/DocumentServer/blob/master/CHANGELOG.md#732

  • Revert to classic socket.io upgrade to fix connection issue with proxy

I believe you can update your installation to the latest version (v.8.0.1) without mentioned issue. However, we strongly recommend preparing whole server backup before update process just in case.
The another way, please try to deploy the latest version of Docs on a separate server with your proxy server to check it out.
Here’re our actual proxy samples, I believe they will be useful: Using ONLYOFFICE Docs behind the proxy - ONLYOFFICE