nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

Nextcloud AIO latest fresh install not working 500 error #4026

Closed piotr-sikora-v closed 2 days ago

piotr-sikora-v commented 1 week ago

I have two brend new installation Nextcloud AIO and in both not working richdocuments. I recevieded 500 error

Both installation is via proxy (via documentation). One is via Nginx, and second is via Traefik.

In both I have same error.

Error in Nextcloud

{"reqId":"gV6x4uQfCNVzhC49dH6D","level":3,"time":"2024-09-11T12:21:46+00:00","remoteAddr":"10.13.0.14","user":"piotr.sikora","app":"index","method":"POST","url":"/apps/richdocuments/token","message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"29.0.4.1","exception":{"Exception":"Exception","Message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"Error","Message":"Call to a member function xpath() on bool","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","line":39,"function":"getUrlSrc","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/msword"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/TokenManager.php","line":326,"function":"getUrlSrcValue","class":"OCA\\Richdocuments\\WOPI\\Parser","type":"->","args":["application/msword"]},{"file":"/var/www/html/custom_apps/richdocuments/lib/Controller/DocumentController.php","line":408,"function":"getUrlSrc","class":"OCA\\Richdocuments\\TokenManager","type":"->","args":[["OC\\Files\\Node\\File"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"token","class":"OCA\\Richdocuments\\Controller\\DocumentController","type":"->","args":[4693264,null,null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Richdocuments\\Controller\\DocumentController"],"token"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Richdocuments\\Controller\\DocumentController","token",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["richdocuments.document.token"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/richdocuments/token"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php","Line":56},"message":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56","exception":[],"CustomMessage":"Call to a member function xpath() on bool in file '/var/www/html/custom_apps/richdocuments/lib/WOPI/Parser.php' line 56"},"id":"66e18b60427c7"}

Screenshot 2024-09-11 at 14 16 27

piotr-sikora-v commented 5 days ago

ok, this is some problem in container: https://github.com/nextcloud/all-in-one/discussions/5188

juliushaertl commented 2 days ago

Please double check if the latest collabora image is used, that should be fixed according to https://github.com/CollaboraOnline/online/issues/9948

piotr-sikora-v commented 2 days ago

@juliushaertl I made upgrade to all latest containers 1 hour ago and it's still have error Nextcloud show me:

cURL error 28: Operation timed out after 5001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://xxxxx.pl/hosting/discovery

on nextcloud-aio-collabora I see errors:

frk-00011-00011 2024-09-16 10:17:32.725403 +0000 [ forkit ] ERR  #22: ForKit connection lost without exit arriving from wsd. Setting TerminationFlag| kit/ForKit.cpp:193
wsd-00007-00007 2024-09-16 10:00:51.471585 +0000 [ coolwsd ] ERR  enterMountingNS, root mount failed: Permission denied| common/JailUtil.cpp:78
wsd-00007-00007 2024-09-16 10:00:51.471641 +0000 [ coolwsd ] ERR  creating usernamespace for mount user failed.| wsd/COOLWSD.cpp:1971
kit-00016-00016 2024-09-16 10:00:56.259168 +0000 [ kit_spare_001 ] ERR  Poco Exception: File access error: Invalid argument: /opt/cool/child-roots| kit/Kit.cpp:3545
piotr-sikora-v commented 1 day ago

ok it's problem with proxmox + lxc + docker + collabora