Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Notifications API returns 500 error #2069

Closed
5 of 8 tasks
melroy89 opened this issue Sep 14, 2024 · 9 comments
Closed
5 of 8 tasks

[Bug]: Notifications API returns 500 error #2069

melroy89 opened this issue Sep 14, 2024 · 9 comments

Comments

@melroy89
Copy link

melroy89 commented Sep 14, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

The official OCS Notification API v2 is running 500 server error. More details at the bottom!

(I already try to logout and login again, but the problem persists).

https://cloud.melroy.org/ocs/v2.php/apps/notifications/api/v2/notifications

image


Other bug: I also can't select Nextcloud server 30 from the drop-down menu in this issue template of GitHub... During creating this issue... PR created for this: nextcloud/server#47973

Steps to reproduce

  1. Upgrade to Nextcloud v30 (Hub 9)
  2. Open the Developer tools (eg. in Firefox)
  3. Go to the Nextcloud homepage of the server
  4. Notice a 500 error on the notifcations request (I also get errors on the Android app under the notification tab)

Expected behavior

No 500 server error on Notifications API v2.

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.melroy.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "default_timezone": "Europe\/Amsterdam",
        "overwrite.cli.url": "https:\/\/cloud.melroy.org\/",
        "dbtype": "mysql",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "dbindex": 0,
            "timeout": 1.5
        },
        "default_language": "nl",
        "default_locale": "nl_NL",
        "default_phone_region": "NL",
        "version": "30.0.0.14",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "maintenance": false,
        "loglevel": 3,
        "trashbin_retention_obligation": "auto",
        "updater.release.channel": "stable",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "mail",
            "files_markdown",
            "news",
            "files_rightclick",
            "files_antivirus",
            "checksum",
            "richdocuments"
        ],
        "maintenance_window_start": 2,
        "defaultapp": "files"
    }
}

List of activated Apps

Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.0
  - contactsinteraction: 1.11.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_markdown: 2.4.1
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - forms: 4.3.0-alpha7
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - news: 25.0.0-alpha8
  - nextcloud_announcements: 2.0.0
  - notes: 4.10.1
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - tasks: 0.16.1
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - checksum: 1.2.4 (installed 1.2.4)
  - circles: 30.0.0-dev (installed 28.0.0-dev)
  - dashboard: 7.10.0 (installed 7.0.0)
  - encryption: 2.18.0 (installed 2.0.0)
  - files_antivirus: 5.5.7 (installed 5.5.7)
  - files_external: 1.22.0 (installed 1.20.0)
  - files_pdfviewer: 3.0.0 (installed 2.0.1)
  - mail: 4.0.0 (installed 4.0.0)
  - richdocuments: 8.5.0 (installed 8.5.0)
  - richdocumentscode: 24.4.702 (installed 24.4.702)
  - support: 2.0.0 (installed 1.11.0)
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0
  - weather_status: 1.10.0 (installed 1.8.0)

Nextcloud Signing status

Path or page not found?? This still URL still valid for Nextcloud v30?

If you would mean php ./occ integrity:check-core? Then this command run fine, without any output.

Nextcloud Logs

Note: When I get the 500 error, I don't see any error in the error log anymore... So "OCP\\HintException: Configuration was not read or initialized correctly, not overwriting /var/www/nextcloud/html/config/config.php at /var/www/nextcloud/html/lib/private/Config.php#266 error message only happened once!?

{"reqId":"LolyJrWAoDPenXefXoT8","level":3,"time":"2024-02-17T00:43:16+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"OCP\\HintException: Configuration was not read or initialized correctly, not overwriting /var/www/nextcloud/html/config/config.php at /var/www/nextcloud/html/lib/private/Config.php#266","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0","version":"","data":{"app":"PHP"}}
{"reqId":"K1PCzHpoIYMi96Z145rU","level":3,"time":"2024-02-17T00:43:30+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/files/melroy/","message":"Error: Class \"OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin\" not found at /var/www/nextcloud/html/remote.php#62","userAgent":"Mozilla/5.0 (Linux) mirall/3.12.0 (build 20570) (Nextcloud, linuxmint-6.5.0-17-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"","data":{"app":"PHP"}}

Additional info

Request URL: https://cloud.melroy.org/ocs/v2.php/apps/notifications/api/v2/notifications

Request Headers:

GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/3
Host: cloud.melroy.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
X-Requested-With: XMLHttpRequest, XMLHttpRequest
requesttoken:secret
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Connection: keep-alive
Alt-Used: cloud.melroy.org
Cookie: __Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; oc_sessionPassphrase=secret; nc_username=melroy; nc_token=secret; nc_session_id=secret
Pragma: no-cache
Cache-Control: no-cache
TE: trailers

Response:


<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>500</statuscode>
  <message>Internal Server Error
</message>
 </meta>
 <data/>
</ocs>

Response headers:

HTTP/3 500 
server: nginx
date: Sat, 14 Sep 2024 13:13:58 GMT
content-type: text/xml; charset=UTF-8
content-security-policy: default-src 'self'; script-src 'self' 'secret'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
x-quic: h3
x-robots-tag: noindex, nofollow
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
referrer-policy: no-referrer
x-download-options: noopen
x-permitted-cross-domain-policies: none
strict-transport-security: max-age=31536000; includeSubDomains; preload

Nginx log message: 192.168.1.102 - - [14/Sep/2024:23:02:36 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/3.0" 500 166 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" "cloud.melroy.org" 0.017

I already tried to enable loglevel 2 or 1, but no errors in the log.. I reload PHP8.3-fpm service as well to avoid having cache issues. Nothing works 😢 . And I do not know how to debug the 500 error, apart from saying Internal Server Error.

@melroy89
Copy link
Author

melroy89 commented Sep 15, 2024

Today, suddenly it seems to return 200 OK now instead of 500 error? I still do not know how or why this is now changed.

image

I did see (something unrelated maybe?) in the log later yesterday..

{"reqId":"XRVNFJKQwfio4OBWpLa0","level":4,"time":"2024-09-14T13:00:37+00:00","remoteAddr":"192.168.1.102","user":"--","app":"spreed","method":"GET","url":"/core/ajax/update.php?requesttoken=183jAQFpQpHs3a9zQNSsWxUjte7lBGEqWK%2FM7btuexI%3D%3AkZfTZ2Y%2FFPeg9sgkFr%2FfOnNQ7NqTXQdTE5mmhP4EN3Q%3D","message":"Error during app service registration: There can only be one Talk backend","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.7.1","exception":{"Exception":"RuntimeException","Message":"There can only be one Talk backend","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Bootstrap/RegistrationContext.php","line":342,"function":"registerTalkBackend","class":"OC\\AppFramework\\Bootstrap\\RegistrationContext","type":"->"},{"file":"/var/www/nextcloud/html/apps/spreed/lib/AppInfo/Application.php","line":342,"function":"registerTalkBackend","class":"OCP\\AppFramework\\Bootstrap\\IRegistrationContext@anonymous\u0000/var/www/nextcloud/html/lib/private/AppFramework/Bootstrap/RegistrationContext.php:161$de","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":99,"function":"register","class":"OCA\\Talk\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Bootstrap/Coordinator.php","line":52,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Installer.php","line":95,"function":"runLazyRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/legacy/OC_App.php","line":224,"function":"installApp","class":"OC\\Installer","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":394,"function":"enable","class":"OC_App","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":246,"function":"upgradeAppStoreApps","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":98,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/html/core/ajax/update.php","line":168,"function":"upgrade","class":"OC\\Updater","type":"->"}],"File":"/var/www/nextcloud/html/lib/private/AppFramework/Bootstrap/RegistrationContext.php","Line":544,"message":"Error during app service registration: There can only be one Talk backend","exception":[],"CustomMessage":"Error during app service registration: There can only be one Talk backend"},"id":"66e6e378e6932"}

See to be related to: nextcloud/server#34919

And clicking on the notification icon. I will get the following console error message now (this is bad!!):

Uncaught InternalError: too much recursion
    m https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    m https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    c https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948:16254
    m https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    findIndex self-hosted:325
    m https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    c https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
    A https://cloud.melroy.org/apps/notifications/js/_plugin-vue2_normalizer-BU0IC95A.chunk.mjs:948
.....
.........

@melroy89
Copy link
Author

melroy89 commented Sep 15, 2024

Ow. I found more logging as well.. This could explain the 500 error on the Notification v2 API end-point:

{"reqId":"XRVNFJKQwfio4OBWpLa0","level":0,"time":"2024-09-14T13:00:10+00:00","remoteAddr":"192.168.1.102","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=183jAQFpQpHs3a9zQNSsWxUjte7lBGEqWK%2FM7btuexI%3D%3AkZfTZ2Y%2FFPeg9sgkFr%2FfOnNQ7NqTXQdTE5mmhP4EN3Q%3D","message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/lib/private/DB/ConnectionAdapter.php","line":50,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":272,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/BackgroundJob/JobList.php","line":127,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/BackgroundJob/JobList.php","line":47,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/legacy/OC_App.php","line":803,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/legacy/OC_App.php","line":744,"function":"setupBackgroundJobs","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":323,"function":"updateApp","class":"OC_App","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":234,"function":"doAppUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":98,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/html/core/ajax/update.php","line":168,"function":"upgrade","class":"OC\\Updater","type":"->"}],"File":"/var/www/nextcloud/html/lib/private/DB/Connection.php","Line":402,"message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","tables":["oc_migrations","oc_jobs","oc_appconfig","oc_preferences","oc_calendars","oc_properties"],"reads":["oc_jobs"],"exception":{},"CustomMessage":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1"}}
{"reqId":"XRVNFJKQwfio4OBWpLa0","level":0,"time":"2024-09-14T13:00:10+00:00","remoteAddr":"192.168.1.102","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=183jAQFpQpHs3a9zQNSsWxUjte7lBGEqWK%2FM7btuexI%3D%3AkZfTZ2Y%2FFPeg9sgkFr%2FfOnNQ7NqTXQdTE5mmhP4EN3Q%3D","message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"29.0.7.1","exception":{"Exception":"Exception","Message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/lib/private/DB/ConnectionAdapter.php","line":50,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":272,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/BackgroundJob/JobList.php","line":127,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/BackgroundJob/JobList.php","line":47,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/legacy/OC_App.php","line":803,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/legacy/OC_App.php","line":744,"function":"setupBackgroundJobs","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":323,"function":"updateApp","class":"OC_App","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":234,"function":"doAppUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Updater.php","line":98,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/html/core/ajax/update.php","line":168,"function":"upgrade","class":"OC\\Updater","type":"->"}],"File":"/var/www/nextcloud/html/lib/private/DB/Connection.php","Line":402,"message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","tables":["oc_migrations","oc_jobs","oc_appconfig","oc_preferences","oc_calendars","oc_properties"],"reads":["oc_jobs"],"exception":{},"CustomMessage":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1"}}

And thus:

{"reqId":"nfgYoLgpF9dciG00UsCy","level":3,"time":"2024-09-14T22:31:59+00:00","remoteAddr":"192.168.1.102","user":"melroy","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.33.13 (build 25182) (Nextcloud, linuxmint-6.8.0-44-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"30.0.0.14","exception":{"Exception":"RuntimeException","Message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":205,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":105,"function":"setAppHintDetails","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Notification/Manager.php","line":337,"function":"prepare","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/apps/notifications/lib/Controller/EndpointController.php","line":103,"function":"prepare","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/html/ocs/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/html/ocs/v2.php","line":7,"args":["/var/www/nextcloud/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/html/lib/private/URLGenerator.php","Line":242,"message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","exception":{},"CustomMessage":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html"}}
{"reqId":"jn59ReellW12wExl50YF","level":3,"time":"2024-09-14T22:32:59+00:00","remoteAddr":"192.168.1.102","user":"melroy","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.33.13 (build 25182) (Nextcloud, linuxmint-6.8.0-44-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"30.0.0.14","exception":{"Exception":"RuntimeException","Message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":205,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":105,"function":"setAppHintDetails","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Notification/Manager.php","line":337,"function":"prepare","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/apps/notifications/lib/Controller/EndpointController.php","line":103,"function":"prepare","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/html/ocs/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/html/ocs/v2.php","line":7,"args":["/var/www/nextcloud/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/html/lib/private/URLGenerator.php","Line":242,"message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","exception":{},"CustomMessage":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html"}}
{"reqId":"ytdhczoIZdnzZUGEINPj","level":3,"time":"2024-09-14T22:33:59+00:00","remoteAddr":"192.168.1.102","user":"melroy","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.33.13 (build 25182) (Nextcloud, linuxmint-6.8.0-44-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"30.0.0.14","exception":{"Exception":"RuntimeException","Message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":205,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":105,"function":"setAppHintDetails","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Notification/Manager.php","line":337,"function":"prepare","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/apps/notifications/lib/Controller/EndpointController.php","line":103,"function":"prepare","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/html/ocs/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/html/ocs/v2.php","line":7,"args":["/var/www/nextcloud/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/html/lib/private/URLGenerator.php","Line":242,"message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","exception":{},"CustomMessage":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html"}}
{"reqId":"qyjLtyhGwfuNUHKMxHSC","level":3,"time":"2024-09-14T22:34:34+00:00","remoteAddr":"x.x.x.x","user":"melroy","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.29.2","version":"30.0.0.14","exception":{"Exception":"RuntimeException","Message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","Code":0,"Trace":[{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":205,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/html/apps/firstrunwizard/lib/Notification/Notifier.php","line":105,"function":"setAppHintDetails","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Notification/Manager.php","line":337,"function":"prepare","class":"OCA\\FirstRunWizard\\Notification\\Notifier","type":"->"},{"file":"/var/www/nextcloud/html/apps/notifications/lib/Controller/EndpointController.php","line":103,"function":"prepare","class":"OC\\Notification\\Manager","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":208,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/html/ocs/v1.php","line":43,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/html/ocs/v2.php","line":7,"args":["/var/www/nextcloud/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/html/lib/private/URLGenerator.php","Line":242,"message":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html","exception":{},"CustomMessage":"image not found: image:apps/whiteboard.svg webroot: serverroot:/var/www/nextcloud/html"}}

In all cases Uncaught InternalError: too much recursion issue still persist.

@razerrazer
Copy link

I can confirmed that i have the exactly same issue, but in my case i never receive a 200 response like you do, it is always giving me an error 500 response, and this is a clean installation of Nextcloud NC30 FYI.

@mwinkens
Copy link

This may sound stupid or unrelated, but I had the same issue and noticed a lot of errors in the protocol as described in this Thread.

As described I deactivated the survey app and installed then disabled the whiteboard app. After this my notifications came up again.

@carlos-algms
Copy link

I'm also getting 500s from the /notification API.
No specific reason.

@melroy89
Copy link
Author

melroy89 commented Oct 2, 2024

yeah, I just really hope the upcoming NC30.1 bugfix release will take care of these strange 500 errors.

@szaimen szaimen transferred this issue from nextcloud/server Oct 2, 2024
@nickvergessen
Copy link
Member

nickvergessen commented Oct 2, 2024

This may sound stupid or unrelated, but I had the same issue and noticed a lot of errors in the protocol as described in this Thread.

  • It's not stupid and not unrelated. The firstrunwizard promotes some apps via notifications for admin.
  • If the app is installed this specific notification is removed.
  • For 30 the whiteboard was added, so installing it removes the broken notification.
  • Unluckily the icon was forgotten to be added
  • It was fixed for the upcoming 30.0.1 with fix: Add missing whiteboard icon firstrunwizard#1363
  • another thing that could magically make it work and break again is when you receive 25+ newer notifications (fixed) and afterwards resolve some again (broken again)

TLDR:

@joshtrichards
Copy link
Member

v30.0.1 has since been published. Closing.

@melroy89
Copy link
Author

v30.0.1 has since been published. Closing.

You're correct, I can confirm, with v30.0.1 I don't see this error anymore. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants