nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.34k stars 4.06k forks source link

[Bug]: Could not find resource after update to 24 #32285

Closed Tealk closed 1 year ago

Tealk commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

Since the update to v24 I am stuck in the Internal Server Error

Steps to reproduce

  1. Download archive file from homepage
  2. unpack the archive
  3. update via console

Expected behavior

To be able to use Nextcloud normally

Installation method

Manual installation

Operating system

Debian

PHP engine version

php 8.0-fpm

Web server

nginx

Database engine version

mariadb

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

No

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "rollenspiel.cloud",
            "localhost"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/rollenspiel.cloud",
        "overwriteprotocol": "https",
        "htaccess.RewriteBase": "\/",
        "dbtype": "mysql",
        "version": "24.0.0.12",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "installed": true,
        "maintenance": false,
        "default_language": "de",
        "default_locale": "de",
        "default_phone_region": "DE",
        "allow_user_to_change_display_name": true,
        "knowledgebaseenabled": true,
        "theme": "",
        "defaultapp": "apporder",
        "skeletondirectory": "\/mnt\/HDD\/skeleton",
        "trashbin_retention_obligation": "120, auto",
        "versions_retention_obligation": "120, auto",
        "appcodechecker": true,
        "updatechecker": true,
        "updater.release.channel": "stable",
        "check_for_working_webdav": true,
        "loglevel": 2,
        "logdateformat": "d.m.Y H:i:s",
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 10485760,
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "PLAIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "preview_max_filesize_image": 50,
        "preview_max_scale_factor": 10,
        "data-fingerprint": "01b9630d063ba580c331de332a0ab360",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "dbindex": 10,
            "password": "***REMOVED SENSITIVE VALUE***",
            "timeout": 1.5
        },
        "twofactor_enforced": false,
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "mail_sendmailmode": "smtp",
        "app_install_overwrite": [
            "apporder",
            "circles",
            "groupfolders",
            "whiteboard",
            "issuetemplate",
            "tasks",
            "bookmarks",
            "appointments",
            "quota_warning",
            "jitsi",
            "passwords",
            "files_downloadactivity"
        ],
        "migrate_guest_user_data": true,
        "remove_guest_account_on_conversion": true,
        "keep_users_without_login": "no",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - accessibility: 1.10.0
  - activity: 2.16.0
  - admin_audit: 1.14.0
  - appointments: 1.12.3
  - apporder: 0.15.0
  - approval: 1.0.9
  - breezedark: 24.0.0
  - calendar: 3.3.0
  - circles: 24.0.0
  - cloud_federation_api: 1.7.0
  - comments: 1.14.0
  - contacts: 4.1.0
  - dashboard: 7.4.0
  - dav: 1.22.0
  - deck: 1.7.0
  - drop_account: 2.0.0
  - event_update_notification: 1.5.0
  - federatedfilesharing: 1.14.0
  - federation: 1.14.0
  - files: 1.19.0
  - files_downloadactivity: 1.13.0
  - files_markdown: 2.3.6
  - files_pdfviewer: 2.5.0
  - files_rightclick: 1.3.0
  - files_sharing: 1.16.2
  - files_trashbin: 1.14.0
  - files_versions: 1.17.0
  - files_videoplayer: 1.13.0
  - fileslibreofficeedit: 1.0.4
  - firstrunwizard: 2.13.0
  - forms: 2.5.0
  - gpoddersync: 3.3.0
  - groupfolders: 12.0.0
  - guests: 2.2.0
  - jitsi: 0.15.0
  - logreader: 2.9.0
  - lookup_server_connector: 1.12.0
  - mail: 1.12.0
  - maps: 0.1.10
  - metadata: 0.16.0
  - nextcloud_announcements: 1.13.0
  - notes: 4.3.1
  - notifications: 2.12.0
  - notify_push: 0.4.0
  - oauth2: 1.12.0
  - onlyoffice: 7.3.4
  - password_policy: 1.14.0
  - passwords: 2022.4.20
  - photos: 1.6.0
  - polls: 3.6.1
  - privacy: 1.8.0
  - provisioning_api: 1.14.0
  - quota_warning: 1.14.0
  - registration: 1.5.0
  - serverinfo: 1.14.0
  - settings: 1.6.0
  - sharebymail: 1.14.0
  - side_menu: 2.3.5
  - socialsharing_email: 2.5.0
  - spreed: 14.0.0
  - survey_client: 1.12.0
  - systemtags: 1.14.0
  - tasks: 0.14.4
  - text: 3.5.1
  - theming: 1.15.0
  - theming_customcss: 1.11.0
  - twofactor_backupcodes: 1.13.0
  - twofactor_email: 2.3.0
  - twofactor_nextcloud_notification: 3.4.0
  - twofactor_totp: 6.3.0
  - updatenotification: 1.14.0
  - user_retention: 1.7.0
  - user_status: 1.4.0
  - viewer: 1.8.0
  - workflowengine: 2.6.0
Disabled:
  - contactsinteraction: 1.3.0
  - encryption
  - files_external
  - files_linkeditor: 1.1.9
  - files_texteditor: 2.14.0
  - gpgmailer: 0.0.4
  - imageconverter: 1.3.2
  - qownnotesapi: 21.12.0
  - recommendations: 0.4.0
  - riotchat: 0.11.3
  - support: 1.5.0
  - twofactor_u2f: 6.3.0
  - uppush: 1.0.0
  - user_ldap
  - weather_status: 1.0.0

Nextcloud Signing status

nothing

Nextcloud Logs

{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource core/js/dist/main.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/files_fileinfo.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/files_client.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/systemtags.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/unified-search.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"index","method":"GET","url":"/index.php/apps/files/","message":"Class \"ScssPhp\\ScssPhp\\Logger\\QuietLogger\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1","exception":{"Exception":"Error","Message":"Class \"ScssPhp\\ScssPhp\\Logger\\QuietLogger\" not found","Code":0,"Trace":[{"file":"/var/customers/webs/Anzah/anzah.cloud/3rdparty/scssphp/scssphp/src/Compiler.php","line":478,"function":"__construct","class":"ScssPhp\\ScssPhp\\Parser","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/3rdparty/scssphp/scssphp/src/Compiler.php","line":392,"function":"parserFactory","class":"ScssPhp\\ScssPhp\\Compiler","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/Template/SCSSCacher.php","line":342,"function":"compile","class":"ScssPhp\\ScssPhp\\Compiler","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/Template/SCSSCacher.php","line":188,"function":"cache","class":"OC\\Template\\SCSSCacher","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/Template/CSSResourceLocator.php","line":110,"function":"process","class":"OC\\Template\\SCSSCacher","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/Template/CSSResourceLocator.php","line":62,"function":"cacheAndAppendScssIfExist","class":"OC\\Template\\CSSResourceLocator","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/Template/ResourceLocator.php","line":78,"function":"doFind","class":"OC\\Template\\CSSResourceLocator","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/TemplateLayout.php","line":353,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/TemplateLayout.php","line":261,"function":"findStylesheetFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/public/AppFramework/Http/TemplateResponse.php","line":204,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/AppFramework/Http/Dispatcher.php","line":171,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/customers/webs/Anzah/anzah.cloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/customers/webs/Anzah/anzah.cloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/customers/webs/Anzah/anzah.cloud/3rdparty/scssphp/scssphp/src/Parser.php","Line":145,"CustomMessage":"--"}}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource core/js/dist/main.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/files_fileinfo.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/files_client.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/systemtags.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}
{"reqId":"SBNuRPJP7iWToCOkCtZK","level":3,"time":"06.05.2022 08:24:50","remoteAddr":"212.211.192.4","user":"Tealk","app":"jsresourceloader","method":"GET","url":"/index.php/apps/files/","message":"Could not find resource js/dist/unified-search.js to load","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0","version":"23.0.4.1"}

Additional info

Here is the ID from the website Request ID: SBNuRPJP7iWToCOkCtZK

Full log: https://paste.rollenspiel.monster/?84cf1d869c91ca58#EPFfzjW1zNXxkE95ZgLc8Tdqdtwm6duze6xrQVoKstZC bacause "There was an error creating your issue: body is too long (maximum is 65536 characters). "

Tealk commented 2 years ago

Update log

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Updating database schema
Updated database
Disabled incompatible app: appointments
Disabled incompatible app: apporder
Disabled incompatible app: approval
Disabled incompatible app: breezedark
Disabled incompatible app: calendar
Disabled incompatible app: contacts
Disabled incompatible app: deck
Disabled incompatible app: drop_account
Disabled incompatible app: event_update_notification
Disabled incompatible app: files_downloadactivity
Disabled incompatible app: files_linkeditor
Disabled incompatible app: files_markdown
Disabled incompatible app: files_texteditor
Disabled incompatible app: fileslibreofficeedit
Disabled incompatible app: forms
Disabled incompatible app: gpgmailer
Disabled incompatible app: gpoddersync
Disabled incompatible app: groupfolders
Disabled incompatible app: guests
Disabled incompatible app: imageconverter
Disabled incompatible app: jitsi
Disabled incompatible app: mail
Disabled incompatible app: maps
Disabled incompatible app: metadata
Disabled incompatible app: notes
Disabled incompatible app: notify_push
Disabled incompatible app: onlyoffice
Disabled incompatible app: passwords
Disabled incompatible app: polls
Disabled incompatible app: qownnotesapi
Disabled incompatible app: quota_warning
Disabled incompatible app: registration
Disabled incompatible app: riotchat
Disabled incompatible app: side_menu
Disabled incompatible app: socialsharing_email
Disabled incompatible app: spreed
Disabled incompatible app: tasks
Disabled incompatible app: theming_customcss
Disabled incompatible app: twofactor_email
Disabled incompatible app: twofactor_nextcloud_notification
Disabled incompatible app: twofactor_totp
Disabled incompatible app: twofactor_u2f
Disabled incompatible app: uppush
Disabled incompatible app: user_retention
Updating <federation> ...
Updated <federation> to 1.14.0
Updating <lookup_server_connector> ...
Updated <lookup_server_connector> to 1.12.0
Updating <oauth2> ...
Updated <oauth2> to 1.12.0
Updating <password_policy> ...
Updated <password_policy> to 1.14.0
Updating <files> ...
Updated <files> to 1.19.0
Updating <activity> ...
Updated <activity> to 2.16.0
Updating <circles> ...
Updated <circles> to 24.0.0
Updating <cloud_federation_api> ...
Updated <cloud_federation_api> to 1.7.0
Updating <dav> ...
Fix broken values of calendar objects

 Starting ...
    0/0 [>---------------------------]   0%
Clean up old calendar subscriptions from deleted users that were not cleaned-up

 Starting ...
 0/3 [>---------------------------]   0%
 Starting ...
 3/3 [============================] 100%
Updated <dav> to 1.22.0
Updating <files_sharing> ...
Updated <files_sharing> to 1.16.2
Updating <files_trashbin> ...
Updated <files_trashbin> to 1.14.0
Updating <files_versions> ...
Updated <files_versions> to 1.17.0
Updating <sharebymail> ...
Updated <sharebymail> to 1.14.0
Updating <workflowengine> ...
Updated <workflowengine> to 2.6.0
Updating <admin_audit> ...
Updated <admin_audit> to 1.14.0
Updating <comments> ...
Updated <comments> to 1.14.0
Updating <firstrunwizard> ...
Updated <firstrunwizard> to 2.13.0
Updating <nextcloud_announcements> ...
Updated <nextcloud_announcements> to 1.13.0
Updating <notifications> ...
Updated <notifications> to 2.12.0
Updating <systemtags> ...
Updated <systemtags> to 1.14.0
Updating <theming> ...
Updated <theming> to 1.15.0
Updating <accessibility> ...
Migrate old user config

 Starting ...
    0/0 [----->----------------------]   0%
Updated <accessibility> to 1.10.0
Updating <dashboard> ...
Updated <dashboard> to 7.4.0
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 1.14.0
Updating <files_pdfviewer> ...
Updated <files_pdfviewer> to 2.5.0
Updating <files_rightclick> ...
Updated <files_rightclick> to 1.3.0
Updating <files_videoplayer> ...
Updated <files_videoplayer> to 1.13.0
Updating <logreader> ...
Updated <logreader> to 2.9.0
Updating <photos> ...
Updated <photos> to 1.6.0
Updating <privacy> ...
Updated <privacy> to 1.8.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 1.14.0
Updating <serverinfo> ...
Updated <serverinfo> to 1.14.0
Updating <settings> ...
Updated <settings> to 1.6.0
Updating <survey_client> ...
Updated <survey_client> to 1.12.0
Updating <text> ...
Updated <text> to 3.5.1
Updating <twofactor_backupcodes> ...
Updated <twofactor_backupcodes> to 1.13.0
Updating <updatenotification> ...
Updated <updatenotification> to 1.14.0
Updating <user_status> ...
Updated <user_status> to 1.4.0
Updating <viewer> ...
Updated <viewer> to 1.8.0
Restore default tags that are missing

 Starting ...
 0/6 [>---------------------------]   0%
 Starting ...
 6/6 [============================] 100%
Purify and migrate collected mail addresses

 Starting ...
 0/1 [>---------------------------]   0%
 Starting ...
 1/1 [============================] 100%
Insert background jobs for all accounts

 Starting ...
 0/6 [>---------------------------]   0%
 Starting ...
 6/6 [============================] 100%
Add background jobs for existing users

 Starting ...
    0/0 [------------------>---------]   0%
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level
Tealk commented 2 years ago

So after 5h wait and reload again and again, the system has probably repaired itself

If there are no further questions or troubleshooting possibilities you can close the issue

ghost commented 2 years ago

Same issue, PHP-FPM needed to be restarted. Afterward it worked.

JSoko commented 2 years ago

Same issue here after updating from 24.0.3 to 24.0.4 Restarting the server fixed it, so not an real issue...

Tealk commented 2 years ago

on my instance the maintenance mode was disabled only after restarting nginx/php-fpm seems like a cache problem

szaimen commented 1 year ago

Hi, please update to 25.0.7 or better 26.0.2 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 26-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+