CollaboraOnline / richdocumentscode

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

Richdocumentscode causes Error 500 #285

Open wuesti opened 1 month ago

wuesti commented 1 month ago

Ubuntu 24.04.1 LTS nextcloud 29.0.7snap1

Nextloud Office worked for a long time. But a week ago it causes an error 500:

Es konnte keine Verbindung zum Collabora Online-Server hergestellt werden.

Failed to connect to the remote server: Server error: GET https://nextcloud.server.home/extra-apps/richdocumentscode/proxy.php?req=/hosting/> discovery resulted in a 500 Internal Server Error response

I removed and installed again richdocumentscode and richdocuments. Nothing helps.

Here are all informations I found.

nextcloud.occ config:list richdocumentscode           
{
    "apps": {
        "richdocumentscode": {
            "enabled": "yes",
            "installed_version": "24.4.702",
            "types": ""
        }
    }
}

nextcloud.occ config:list richdocuments    
{
    "apps": {
        "richdocuments": {
            "disable_certificate_verification": "yes",
            "enabled": "yes",
            "installed_version": "8.4.7",
            "types": "prevent_group_restriction",
            "wopi_url": "\/extra-apps\/richdocumentscode\/proxy.php?req="
        }
    }
}

nextcloud.occ config:list system       
{
    "system": {
        "apps_paths": [
            {
                "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
                "url": "\/extra-apps",
                "writable": true
            }
        ],
        "supportedDatabases": [
            "mysql"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "log_type": "file",
        "logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
        "logfilemode": 416,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.x.x",
            "nextcloud.server.home"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.7.1",
        "overwrite.cli.url": "",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "has_rebuilt_cache": true,
        "maintenance": false,
        "loglevel": 2,
        "theme": "",
        "filelocking.enabled": false,
        "trashbin_retention_obligation": "auto,31",
        "maintenance_window_start": 1,
        "auth.bruteforce.protection.enabled": false,
        "app_install_overwrite": [
            "files_markdown"
        ],
        "enable_previews": true,
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "enabledPreviewProviders": [
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\StarOffice",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\TXT"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "activity_expire_days": {
            "90": ""
        },
        "data-fingerprint": "8630ddec8683472c6a6862d5d79352d9",
        "default_phone_region": "DE"
    }
}

ls -l /var/snap/nextcloud/current/nextcloud/extra-apps/richdocuments
total 1656
-rw-r--r--  1 root root   60531 Oct  7 11:23 CHANGELOG.md
-rw-r--r--  1 root root    3112 Oct  7 11:23 README.md
drwxr-xr-x  2 root root    4096 Oct  7 11:23 appinfo
drwxr-xr-x  3 root root    4096 Oct  7 11:23 assets
drwxr-xr-x  3 root root    4096 Oct  7 11:23 composer
drwxr-xr-x  2 root root    4096 Oct  7 11:23 css
drwxr-xr-x  2 root root    4096 Oct  7 11:23 docs
drwxr-xr-x  2 root root    4096 Oct  7 11:23 emptyTemplates
drwxr-xr-x  2 root root    4096 Oct  7 11:23 img
drwxr-xr-x  2 root root    4096 Oct  7 11:23 js
drwxr-xr-x  2 root root    4096 Oct  7 11:23 l10n
drwxr-xr-x 19 root root    4096 Oct  7 11:23 lib
-rw-r--r--  1 root root 1580843 Oct  7 11:23 package-lock.json
-rw-r--r--  1 root root    2802 Oct  7 11:23 package.json
drwxr-xr-x  2 root root    4096 Oct  7 11:23 templates

ls -l /var/snap/nextcloud/current/nextcloud/extra-apps/richdocumentscode 
total 92
-rw-r--r-- 1 root root 30243 Oct  7 11:23 CHANGELOG.md
-rw-r--r-- 1 root root 11357 Oct  7 11:23 LICENSE
-rw-r--r-- 1 root root    79 Oct  7 11:23 NOTICES
drwxr-xr-x 2 root root  4096 Oct  7 11:23 appinfo
drwxr-xr-x 2 root root  4096 Oct  7 11:23 collabora
drwxr-xr-x 2 root root  4096 Oct  7 11:23 images
drwxr-xr-x 2 root root  4096 Oct  7 11:23 img
drwxr-xr-x 2 root root  4096 Oct  7 11:23 l10n
drwxr-xr-x 3 root root  4096 Oct  7 11:23 lib
-rw-r--r-- 1 root root 13987 Oct  7 11:23 proxy.php
drwxr-xr-x 2 root root  4096 Oct  7 11:23 templates

curl --insecure https://localhost/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery
zsh: no matches found: https://localhost/extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery

curl --insecure https://localhost/extra-apps/richdocumentscode/proxy.php                       
<html><body>
<h1>Socket proxy error</h1>
<p>Error: The param should be &#039;status&#039; or &#039;req=...&#039;, but is: &#039;&#039;</p>
</body></html>

nextcloud.log:

{"reqId":"wEpUSM7lgCkmtsb4Xo6a","level":3,"time":"2024-10-07T09:32:48+00:00","remoteAddr":"","user":"--","app":"richdocuments","method":"","url":"--","message":"Failed to fetch discovery: cURL error 3: malformed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery","userAgent":"--","version":"29.0.7.1","exception":{"Exception":"GuzzleHttp\Exception\RequestException","Message":"cURL error 3: malformed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery","Code":0,"Trace":[{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":158,"function":"createRejection","class":"GuzzleHttp\Handler\CurlFactory","type":"::","args":[" sensitive parameters replaced "]},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","line":110,"function":"finishError","class":"GuzzleHttp\Handler\CurlFactory","type":"::"},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlHandler.php","line":47,"function":"finish","class":"GuzzleHttp\Handler\CurlFactory","type":"::"},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":142,"function":"invoke","class":"GuzzleHttp\Handler\CurlHandler","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/lib/private/Http/Client/DnsPinMiddleware.php","line":123,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php","line":35,"function":"OC\Http\Client\{closure}","class":"OC\Http\Client\DnsPinMiddleware","type":"->","args":[" sensitive parameters replaced "]},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":31,"function":"invoke","class":"GuzzleHttp\PrepareBodyMiddleware","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/RedirectMiddleware.php","line":71,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":66,"function":"invoke","class":"GuzzleHttp\RedirectMiddleware","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/HandlerStack.php","line":75,"function":"GuzzleHttp\{closure}","class":"GuzzleHttp\Middleware","type":"::","args":[" sensitive parameters replaced "]},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":333,"function":"invoke","class":"GuzzleHttp\HandlerStack","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":169,"function":"transfer","class":"GuzzleHttp\Client","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"requestAsync","class":"GuzzleHttp\Client","type":"->","args":[" sensitive parameters replaced "]},{"file":"/snap/nextcloud/44391/htdocs/lib/private/Http/Client/Client.php","line":230,"function":"request","class":"GuzzleHttp\Client","type":"->"},{"file":"/var/snap/nextcloud/44391/nextcloud/extra-apps/richdocuments/lib/Service/DiscoveryService.php","line":75,"function":"get","class":"OC\Http\Client\Client","type":"->"},{"file":"/var/snap/nextcloud/44391/nextcloud/extra-apps/richdocuments/lib/Service/CachedRequestService.php","line":74,"function":"sendRequest","class":"OCA\Richdocuments\Service\DiscoveryService","type":"->"},{"file":"/var/snap/nextcloud/44391/nextcloud/extra-apps/richdocuments/lib/Backgroundjobs/ObtainCapabilities.php","line":58,"function":"fetch","class":"OCA\Richdocuments\Service\CachedRequestService","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\Richdocuments\Backgroundjobs\ObtainCapabilities","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\BackgroundJob\Job","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\BackgroundJob\TimedJob","type":"->"},{"file":"/snap/nextcloud/44391/htdocs/cron.php","line":177,"function":"execute","class":"OCP\BackgroundJob\TimedJob","type":"->"}],"File":"/snap/nextcloud/44391/htdocs/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php","Line":211,"message":"Failed to fetch discovery: cURL error 3: malformed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery","exception":{},"CustomMessage":"Failed to fetch discovery: cURL error 3: malformed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for /extra-apps/richdocumentscode/proxy.php?req=/hosting/discovery"}}