CollaboraOnline / richdocumentscode

Built-in CODE Server app
https://apps.nextcloud.com/apps/richdocumentscode
Apache License 2.0
117 stars 27 forks source link

Failed to add Session - Invalid URI - NC 28.0.2 #261

Open SwitzerChees opened 7 months ago

SwitzerChees commented 7 months ago

I have a problem with my setup since I updated to the newest Nextcloud version and updated the plugin. The exact same setup was working with Nextcloud 27.1.5.

The setup is running behind a reverse proxy in a Kubernetes environment. But was not an issue before.

When I check the Nextcloud log there are no errors. But when I check the Collabora log I get the following messages:

cat /tmp/coolwsd.*/coolwsd.log

wsd-00325-00359 2024-02-23 09:31:32.120628 +0000 [ docbroker_001 ] ERR Invalid URI [] to http::Session::create| net/HttpRequest.cpp:660 wsd-00325-00359 2024-02-23 09:31:32.120733 +0000 [ docbroker_001 ] ERR loading document exception: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2679 wsd-00325-00359 2024-02-23 09:31:32.120756 +0000 [ docbroker_001 ] ERR Failed to add session to [https%3A%2F%2Ftest-dev.lenotra.com%3A443%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F491_ochz0tv7sp7a] with URI [https://test-dev.lenotra.com//index.php/apps/richdocuments/wopi/files/491_ochz0tv7sp7a?access_token=7zOLhdidQyH5lzJe4Yj2dcHtSEmKZfuO&access_token_ttl=0%2Fws%3FWOPISrc%3Dhttps%3A%2F%2Ftest-dev.lenotra.com%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F491_ochz0tv7sp7a&compat=]: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2641 wsd-00325-00359 2024-02-23 09:31:32.120777 +0000 [ docbroker_001 ] ERR Error while starting session on https%3A%2F%2Ftest-dev.lenotra.com%3A443%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F491_ochz0tv7sp7a for socket #28. Terminating connection. Error: Invalid URI [] to http::Session::create.| wsd/COOLWSD.cpp:5305 kit-00398-00352 2024-02-23 09:41:29.232289 +0000 [ kit_spare_003 ] WRN Security warning: running without chroot jails is insecure.| kit/Kit.cpp:3065 kit-00401-00352 2024-02-23 09:41:30.767078 +0000 [ kit_spare_004 ] WRN Security warning: running without chroot jails is insecure.| kit/Kit.cpp:3065 wsd-00325-00400 2024-02-23 09:41:30.775075 +0000 [ docbroker_003 ] ERR Invalid URI [] to http::Session::create| net/HttpRequest.cpp:660 wsd-00325-00400 2024-02-23 09:41:30.775161 +0000 [ docbroker_003 ] ERR loading document exception: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2679 wsd-00325-00400 2024-02-23 09:41:30.775175 +0000 [ docbroker_003 ] ERR Failed to add session to [https%3A%2F%2Ftest-dev.lenotra.com%3A443%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F530_ochz0tv7sp7a] with URI [https://test-dev.lenotra.com//index.php/apps/richdocuments/wopi/files/530_ochz0tv7sp7a?access_token=c0RMoDTug95iBwptwhmEpgLGjYz9tOTy&access_token_ttl=0%2Fws%3FWOPISrc%3Dhttps%3A%2F%2Ftest-dev.lenotra.com%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F530_ochz0tv7sp7a&compat=]: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2641 wsd-00325-00400 2024-02-23 09:41:30.775197 +0000 [ docbroker_003 ] ERR Error while starting session on https%3A%2F%2Ftest-dev.lenotra.com%3A443%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F530_ochz0tv7sp7a for socket #23. Terminating connection. Error: Invalid URI [] to http::Session::create.| wsd/COOLWSD.cpp:5305 wsd-00325-00400 2024-02-23 09:41:30.785113 +0000 [ docbroker_003 ] ERR #31: Read failed, have 0 buffered bytes (ECONNRESET: Connection reset by peer)| net/Socket.hpp:1137 kit-00418-00352 2024-02-23 09:45:40.808557 +0000 [ kit_spare_005 ] WRN Security warning: running without chroot jails is insecure.| kit/Kit.cpp:3065 kit-00421-00352 2024-02-23 09:45:40.865135 +0000 [ kit_spare_006 ] WRN Security warning: running without chroot jails is insecure.| kit/Kit.cpp:3065 kit-00426-00352 2024-02-23 09:45:47.031454 +0000 [ kit_spare_007 ] WRN Security warning: running without chroot jails is insecure.| kit/Kit.cpp:3065 wsd-00325-00425 2024-02-23 09:45:47.045735 +0000 [ docbroker_006 ] ERR Invalid URI [] to http::Session::create| net/HttpRequest.cpp:660 wsd-00325-00425 2024-02-23 09:45:47.045830 +0000 [ docbroker_006 ] ERR loading document exception: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2679 wsd-00325-00425 2024-02-23 09:45:47.045845 +0000 [ docbroker_006 ] ERR Failed to add session to [https%3A%2F%2Ftest-dev.lenotra.com%3A443%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F553_ochz0tv7sp7a] with URI [https://test-dev.lenotra.com//index.php/apps/richdocuments/wopi/files/553_ochz0tv7sp7a?access_token=kwNLCI4LaStXjGEYt7fmnLUo9MXakJXZ&access_token_ttl=0%2Fws%3FWOPISrc%3Dhttps%3A%2F%2Ftest-dev.lenotra.com%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F553_ochz0tv7sp7a&compat=]: Invalid URI [] to http::Session::create.| wsd/DocumentBroker.cpp:2641 wsd-00325-00425 2024-02-23 09:45:47.045878 +0000 [ docbroker_006 ] ERR Error while starting session on https%3A%2F%2Ftest-dev.lenotra.com%3A443%2F%2Findex.php%2Fapps%2Frichdocuments%2Fwopi%2Ffiles%2F553_ochz0tv7sp7a for socket #23. Terminating connection. Error: Invalid URI [] to http::Session::create.| wsd/COOLWSD.cpp:5305

I can't find out what exactly changed or what currently is wrong but there is definitely something not as it should be anymore. Let me know if I can provide somehow more information.

joshtrichards commented 5 months ago

https://test-dev.lenotra.com//index.php/apps/richdocuments

That URL looks weird. I believe it's generated from the wopi callback URL in richdocuments (when set), otherwise it it generated based on how you're accessing Nextcloud. Do your URLs look funny when browsing around in Nextcloud? What is your overwritewebroot set to? (https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#overwritewebroot)

Also the output of occ config:list richdocuments might be informative.