linuxserver / docker-nextcloud

GNU General Public License v3.0
724 stars 128 forks source link

[BUG] No webinterface after upgrade #328

Closed aMU5Ed closed 1 year ago

aMU5Ed commented 1 year ago

Is there an existing issue for this?

Current Behavior

After upgrading the docker container from 26.0.2 to 27.0.0 I have following experience. File sync basically works but desktop and mobile client are sting an HTTP 500. Webinterface is not accessable because of:

Interner Serverfehler Der Server konnte die Anfrage nicht fertig stellen.

Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an deinen Server-Administrator.

Weitere Details können im Server-Protokoll gefunden werden.

Technische Details Entfernte Adresse: 192.168.1.31 Anfragekennung: 1xLCGuaY1JohNusWGOZI

I have the follwing error in the nextcloud.log

So webinterface is not accessable at all.

Expected Behavior

Webinterface and desktop sync should work.

Steps To Reproduce

  1. Upgrade from 26.0.2 to 27.0.0 and restart the docker image
  2. Try to log in

Environment

- OS: unraid 6.12.1
- How docker service was installed: using unraid
 - Nginx (swag) is installed as reverse proxy in front of nextcloud

server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    server_name nextcloud.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    location / {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_nextcloud nextcloud;
        proxy_max_temp_file_size 2048m;
        proxy_pass https://$upstream_nextcloud:443;
        add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
        add_header X-Frame-Options "SAMEORIGIN" always;
    }

}

CPU architecture

x86-64

Docker creation

Standard, nothing customized

Container logs

{"reqId":"1xLCGuaY1JohNusWGOZI","level":3,"time":"2023-06-28T16:59:09+00:00","remoteAddr":"192.168.1.31","user":"thomas","app":"index","method":"GET","url":"/apps/dashboard/","message":"OC\\App\\AppManager::checkAppForUser(): Argument #2 ($user) must be of type ?OCP\\IUser, string given, called in /app/www/public/lib/private/App/AppManager.php on line 307","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36","version":"27.0.0.8","exception":{"Exception":"TypeError","Message":"OC\\App\\AppManager::checkAppForUser(): Argument #2 ($user) must be of type ?OCP\\IUser, string given, called in /app/www/public/lib/private/App/AppManager.php on line 307","Code":0,"Trace":[{"file":"/app/www/public/lib/private/App/AppManager.php","line":307,"function":"checkAppForUser","class":"OC\\App\\AppManager","type":"->"},{"file":"/config/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php","line":103,"function":"isEnabledForUser","class":"OC\\App\\AppManager","type":"->"},{"function":"__construct","class":"OCA\\Files_FullTextSearch\\Service\\GroupFoldersService","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":84,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":494,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":466,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":84,"function":"array_map"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":494,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":466,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":84,"function":"array_map"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":494,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/app/www/public/lib/private/ServerContainer.php","line":155,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/config/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php","line":122,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/config/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php","line":311,"function":"loadProvider","class":"OCA\\FullTextSearch\\Service\\ProviderService","type":"->"},{"file":"/config/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php","line":282,"function":"loadProvidersFromList","class":"OCA\\FullTextSearch\\Service\\ProviderService","type":"->"},{"file":"/config/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php","line":102,"function":"loadProvidersFromApp","class":"OCA\\FullTextSearch\\Service\\ProviderService","type":"->"},{"file":"/config/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php","line":156,"function":"loadProviders","class":"OCA\\FullTextSearch\\Service\\ProviderService","type":"->"},{"file":"/config/www/nextcloud/apps/fulltextsearch/lib/Capabilities.php","line":80,"function":"getConfiguredProviders","class":"OCA\\FullTextSearch\\Service\\ProviderService","type":"->"},{"file":"/app/www/public/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\FullTextSearch\\Capabilities","type":"->"},{"file":"/app/www/public/lib/private/Template/JSConfigHelper.php","line":166,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/app/www/public/lib/private/TemplateLayout.php","line":240,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/app/www/public/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/app/www/public/lib/public/AppFramework/Http/TemplateResponse.php","line":213,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":182,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/app/www/public/lib/base.php","line":1064,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/app/www/public/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/app/www/public/lib/private/App/AppManager.php","Line":313,"CustomMessage":"--"}}
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

CCrypton commented 1 year ago

Same Problem

aptalca commented 1 year ago

We need the template filled in properly with container logs and docker run or compose yaml

github-actions[bot] commented 1 year ago

A human has marked this issue as invalid, this likely happened because the issue template was not used in the creation of the issue.

aMU5Ed commented 1 year ago

@aptalca Sorry for any inconvinience but this one of my first issues on Github. Here is the container log: [migrations] started [migrations] 01-nginx-site-confs-default: skipped [migrations] 02-default-location: skipped [migrations] done usermod: no changes ───────────────────────────────────────

  ██╗     ███████╗██╗ ██████╗ 
  ██║     ██╔════╝██║██╔═══██╗
  ██║     ███████╗██║██║   ██║
  ██║     ╚════██║██║██║   ██║
  ███████╗███████║██║╚██████╔╝
  ╚══════╝╚══════╝╚═╝ ╚═════╝ 

Brought to you by linuxserver.io ───────────────────────────────────────

To support LSIO projects visit: https://www.linuxserver.io/donate/

─────────────────────────────────────── GID/UID ───────────────────────────────────────

User UID: 99 User GID: 100 ───────────────────────────────────────

using keys found in /config/keys The following active confs have different version dates than the samples that are shipped. This may be due to user customization or an update to the samples. You should compare the following files to the samples in the same folder and update them. Use the link at the top of the file to view the changelog. ┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐ │ old date │ new date │ path │ ├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤ │ 2018-08-16 │ 2023-04-13 │ /config/nginx/nginx.conf │ │ │ 2023-06-23 │ /config/nginx/site-confs/default.conf │ └────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘ [custom-init] No custom files found, skipping... [ls.io-init] done.

Here is the docker run command: docker run -d --name='nextcloud' --net='br0' --ip='192.168.1.204' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e HOST_HOSTNAME="unraid" -e HOST_CONTAINERNAME="nextcloud" -e 'TCP_PORT_443'='443' -e 'PUID'='99' -e 'PGID'='100' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='https://_mysubdomain.mydomain_' -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nextcloud-icon.png' -v '/mnt/user/nextcloud_data/':'/data':'rw' -v '/mnt/user/nextcloud_scanner/':'/scanner':'rw' -v '/mnt/user/appdata/nextcloud':'/config':'rw' 'linuxserver/nextcloud'

aMU5Ed commented 1 year ago

This is a nextcloud issue: https://github.com/nextcloud/files_fulltextsearch/issues/221 Workaround is: occ app:disable files_fulltextsearch