# Debugging help - Nextcloud- coolwsd servers

**URL:** <https://forum.collaboraonline.com/t/debugging-help-nextcloud-coolwsd-servers/3269>\
**Category:** Installation & Configuration\
**Created:** [December 31, 2024, 8:05pm UTC](https://forum.collaboraonline.com/t/debugging-help-nextcloud-coolwsd-servers/3269 "2024-12-31T20:05:13Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![FamousL](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/famousl/32/1477_2.png) [@FamousL](https://forum.collaboraonline.com/u/FamousL)\
**Post date:** [January 1, 2025, 5:59pm UTC](https://forum.collaboraonline.com/t/debugging-help-nextcloud-coolwsd-servers/3269/8 "2025-01-01T17:59:19Z")

</div>

Everything that journalctl spat out token, names ommitted:  
Jan 01 12:43:44 (Server’s internal name) coolwsd[6974]: wsd-06974-06987 2025-01-01 12:43:44.862985 -0500 [websrv\_poll] ERR #33: Unknown resource: /cool/https:%2F%2F(nextcloud domain)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F378553\_oco78dqqgihn?access\_token=(token)&access\_token\_ttl=0/ws GWebSocket, host: (collabora domain), path: 4  
Jan 01 12:43:44 (Server’s internal name) coolwsd[6974]: [0] ‘cool’  
Jan 01 12:43:44 (Server’s internal name) coolwsd[6974]: [1] ‘https:%2F%2F(nextcloud domain)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F378553\_oco78dqqgihn’  
Jan 01 12:43:44 (Server’s internal name) coolwsd[6974]: [2] ‘access\_token=(token)&access\_token\_ttl=0’  
Jan 01 12:43:44 (Server’s internal name) coolwsd[6974]: [3] ‘ws’  
Jan 01 12:43:44 (Server’s internal name) coolwsd[6974]: full URI: /cool/https:%2F%2F(nextcloud domain)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F378553\_oco78dqqgihn?access\_token=(token)&access\_token\_ttl=0/ws| wsd/ClientRequestDispatcher.cpp:925  
Jan 01 12:43:45 (Server’s internal name) coolwsd[6974]: wsd-06974-06987 2025-01-01 12:43:45.181804 -0500 [websrv\_poll] ERR #33: Unknown resource: /cool/https:%2F%2F(nextcloud domain)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F378553\_oco78dqqgihn?access\_token=(token)&access\_token\_ttl=0&permission=edit/ws GWebSocket, host: (collabora domain), path: 4  
Jan 01 12:43:45 (Server’s internal name) coolwsd[6974]: [0] ‘cool’  
Jan 01 12:43:45 (Server’s internal name) coolwsd[6974]: [1] ‘https:%2F%2F(nextcloud domain)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F378553\_oco78dqqgihn’  
Jan 01 12:43:45 (Server’s internal name) coolwsd[6974]: [2] ‘access\_token=(token)&access\_token\_ttl=0&permission=edit’  
Jan 01 12:43:45 (Server’s internal name) coolwsd[6974]: [3] ‘ws’  
Jan 01 12:43:45 (Server’s internal name) coolwsd[6974]: full URI: /cool/https:%2F%2F(nextcloud domain)%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F378553\_oco78dqqgihn?access\_token=(token)&access\_token\_ttl=0&permission=edit/ws| wsd/ClientRequestDispatcher.cpp:925

current virtual server config, excluding ssl directives and domain directives  
# Encoded slashes need to be allowed  
AllowEncodedSlashes NoDecode

```
    # Container uses a unique non-signed certificate
    SSLProxyEngine on
    SSLProxyVerify None
    SSLProxyCheckPeerCN Off
    SSLProxyCheckPeerName Off

    # keep the host
    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:9980/ retry=0
    ProxyPassReverse / http://127.0.0.1:9980/
    # static html, js, images, etc. served from coolwsd
    # (broswer is the client part of Collabora Online)
    ProxyPass /browser http://127.0.0.1:9980/browser retry=0
    ProxyPassReverse /browser http://127.0.0.1:9980/browser

    # WOPI discovery URL
    ProxyPass /hosting/discovery http://127.0.0.1:9980/hosting/discovery retry=0
    ProxyPassReverse /hosting/discovery http://127.0.0.1:9980/hosting/discovery

    # Capabilities
    ProxyPass /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities retry=0
    ProxyPassReverse /hosting/capabilities http://127.0.0.1:9980/hosting/capabilities

    # Main websocket
    ProxyPassMatch "/cool/(.*)/ws$" ws://127.0.0.1:9980/cool/$1/ws nocanon

    # Admin Console websocket
    ProxyPass /cool/adminws ws://127.0.0.1:9980/cool/adminws

    # Download as, Fullscreen presentation and Image upload operations
    ProxyPass /cool/ http://127.0.0.1:9980/ retry=0
    ProxyPassReverse /cool/ http://127.0.0.1:9980/
    ProxyPass /lool http://127.0.0.1:9980/cool
    ProxyPassReverse /lool http://127.0.0.1:9980/cool
    RewriteEngine on
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /(.*) ws://127.0.0.1:9980/$1 [P,L,UnsafeAllow3F]
    RewriteCond %{HTTP:Upgrade} !=websocket [NC]
    RewriteRule /(.*) http://127.0.0.1:9980/$1 [P,L,UnsafeAllow3F]

```

main config area:  
\<server\_name default=“” desc=“External hostname:port of the server running coolwsd. If empty, it’s derived from the request (please set it if this doesn’t work). May be specified when behind a reverse-proxy or when the hostname is not reachable directly.” type=“string”\>(collabora domain):443\</server\_name\>

backend storage:  
  
\<max\_file\_size desc=“Maximum document size in bytes to load. 0 for unlimited.” type=“uint”\>0\</max\_file\_size\>  
  
900  
  
\<alias\_groups desc=“default mode is ‘first’ it allows only the first host when groups are not defined. set mode to ‘groups’ and define group to allow multiple host and its aliases” mode=“groups”\>  
  
  
(nextcloud domain)  
(nextcloud domain)  
  
  
\</alias\_groups\>  
\<is\_legacy\_server default=“false” desc=“Set to true for legacy server that need deprecated headers.” type=“bool”\>false\</is\_legacy\_server\>

Please let me know if there are other sections you need, I didn’t find/replace the entire thing at once, so it may not be entirely consistant.

I did not notice any errors from nextcloud, but it was complaining that there is a new way to handle this,  
From nextcloud.log:  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0”,“message”:“OC\_App::registerLogIn() is deprecated, please register your alternative login option using the registerAlternativeLogin() on the RegistrationContext in your Application class implementing the OCP\Authentication\IAlternativeLogin interface”,“userAgent”:“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:}  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“–”,“app”:“user\_oidc”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0”,“message”:“Could not find unique token validation”,“userAgent”:“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:{“app”:“user\_oidc”}}  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0”,“message”:“OCA\Richdocuments\Controller\WopiController::checkFileInfo uses the @PublicPage annotation and should use the #[OCP\AppFramework\Http\Attribute\PublicPage] attribute instead”,“userAgent”:“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:}  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0”,“message”:“OCA\Richdocuments\Controller\WopiController::checkFileInfo uses the @NoCSRFRequired annotation and should use the #[OCP\AppFramework\Http\Attribute\NoCSRFRequired] attribute instead”,“userAgent”:“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:}  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“–”,“app”:“no app in context”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0”,“message”:“OCA\Richdocuments\Controller\WopiController::checkFileInfo uses the @NoCSRFRequired annotation and should use the #[OCP\AppFramework\Http\Attribute\NoCSRFRequired] attribute instead”,“userAgent”:“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:}  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:“–”,“app”:“richdocuments”,“method”:“GET”,“url”:“/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0”,“message”:“Loaded WOPI Token record: {"id":815,"owner\_uid":"Famous","editor\_uid":"Famous","guest\_displayname":null,"fileid":378553,"version":0,"canwrite":1,"server\_host":"[https://domain/\“,\“token\”:\“accesstoken\”,\“expiry\”:1735789382,\“template\_destination\”:null,\“hide\_download\”:0,\“direct\”:0,\“remote\_server\”:\”\“,\“remote\_server\_token\”:\”\“,\“template\_id\”:0,\“share\”:null,\“token\_type\”:0}.”,“userAgent”:](https://domain/%5C%22,%5C%22token%5C%22:%5C%22accesstoken%5C%22,%5C%22expiry%5C%22:1735789382,%5C%22template_destination%5C%22:null,%5C%22hide_download%5C%22:0,%5C%22direct%5C%22:0,%5C%22remote_server%5C%22:%5C%22%5C%22,%5C%22remote_server_token%5C%22:%5C%22%5C%22,%5C%22template_id%5C%22:0,%5C%22share%5C%22:null,%5C%22token_type%5C%22:0%7D.%22,%22userAgent%22:)“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:{“app”:“richdocuments”}}  
{“reqId”:“Z3V-0I\_YMV6DFRkHBFzUOAAAAYk”,“level”:0,“time”:“2025-01-01T17:43:45+00:00”,“remoteAddr”:“127.0.0.1”,“user”:”–“,“app”:“richdocuments”,“method”:“GET”,“url”:”/index.php/apps/richdocuments/wopi/files/378553\_oco78dqqgihn?access\_token=accesstoken&access\_token\_ttl=0",“message”:"Loaded WOPI Token record: {"id":815,"owner\_uid":"Famous","editor\_uid":"Famous","guest\_displayname":null,"fileid":378553,"version":0,"canwrite":1,"server\_host":"[https://domain/\“,\“token\”:\“accesstoken\”,\“expiry\”:1735789382,\“template\_destination\”:null,\“hide\_download\”:0,\“direct\”:0,\“remote\_server\”:\”\“,\“remote\_server\_token\”:\”\“,\“template\_id\”:0,\“share\”:null,\“token\_type\”:0}.”,“userAgent”:](https://domain/%5C%22,%5C%22token%5C%22:%5C%22accesstoken%5C%22,%5C%22expiry%5C%22:1735789382,%5C%22template_destination%5C%22:null,%5C%22hide_download%5C%22:0,%5C%22direct%5C%22:0,%5C%22remote_server%5C%22:%5C%22%5C%22,%5C%22remote_server_token%5C%22:%5C%22%5C%22,%5C%22template_id%5C%22:0,%5C%22share%5C%22:null,%5C%22token_type%5C%22:0%7D.%22,%22userAgent%22:)“COOLWSD HTTP Agent 24.04.11.1”,“version”:“30.0.4.1”,“data”:{“app”:“richdocuments”}}

---

_[View the full topic](https://forum.collaboraonline.com/t/debugging-help-nextcloud-coolwsd-servers/3269)._
