nextcloud / server

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

Nextcloud Notifications not working with Nextcloud 26 #37970

Closed michag86 closed 1 year ago

michag86 commented 1 year ago

⚠️ Before posting ⚠️

Steps to reproduce

Connect to a server that is running Nextcloud 26 and go to Notifications (Benachrichtigungen).

Expected behaviour

Notifications are shown

Actual behaviour

It show "Keine Benachrichtigungen" and "The Nextcloud server is not configured!"

Android version

13

Device brand and model

Mi 11 Lite 5G

Stock or custom OS?

Stock

Nextcloud android app version

3.24.2

Nextcloud server version

26.0.0

Using a reverse proxy?

No

Android logs

No response

Server error logs

No response

Additional information

No response

michag86 commented 1 year ago

server log shows this, when opening the notifications in android app:

{"reqId":"kOCXRa96jZxZa2iuFrWK","level":3,"time":"2023-04-19T20:50:48+02:00","remoteAddr":"2001:16b8:abcd:f100:1234:23ce:4f7d:abcd","user":"USERNAME","app":"no app in context","method":"GET","url":"/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.24.2","version":"26.0.0.11","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","Code":0,"Trace":[{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":110,"Previous":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/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":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":131},"CustomMessage":"--"}}
{"reqId":"r1njnUBYPDzIAmXQ7hBJ","level":3,"time":"2023-04-19T20:50:49+02:00","remoteAddr":"92.1.1.1","user":"USERNAME","app":"no app in context","method":"GET","url":"/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.24.2","version":"26.0.0.11","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","Code":0,"Trace":[{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":110,"Previous":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/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":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":131},"CustomMessage":"--"}}
{"reqId":"HUXynBxR6ZCZC5TuQSp2","level":3,"time":"2023-04-19T20:50:51+02:00","remoteAddr":"92.1.1.1","user":"USERNAME","app":"no app in context","method":"GET","url":"/nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.24.2","version":"26.0.0.11","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","Code":0,"Trace":[{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":110,"Previous":{"Exception":"OC\\AppFramework\\Utility\\QueryNotFoundException","Message":"Could not resolve OCA\\Notifications\\Service\\ClientService! Class \"OCA\\Notifications\\Service\\ClientService\" does not exist","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/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":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":162,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/html/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/html/nextcloud/ocs/v2.php","line":23,"args":["/var/www/html/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":131},"CustomMessage":"--"}}
joshtrichards commented 1 year ago

I'm unable to reproduce this (at least with v26.0.1).

Is the Notifications app installed+enabled on the NC server? It almost sounds like it's been disabled.

AndyScherzinger commented 1 year ago

I agree with @joshtrichards the posted log states that the server code that creates the notification isn't available.

michag86 commented 1 year ago

Here is a system report

Server configuration detail

Operating system: Linux 5.15.0-60-generic nextcloud/android#66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 10.6.12

PHP version: 8.1.2-1ubuntu2.11

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, intl, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 26.0.1 - 26.0.1.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status []
List of activated apps Enabled: - activity: 2.18.0 - admin_audit: 1.16.0 - calendar: 4.3.3 - circles: 26.0.0 - cloud_federation_api: 1.9.0 - comments: 1.16.0 - contacts: 5.2.0 - contactsinteraction: 1.7.0 - dashboard: 7.6.0 - dav: 1.25.0 - deck: 1.9.0 - federatedfilesharing: 1.16.0 - federation: 1.16.0 - files: 1.21.1 - files_lock: 26.0.0 - files_pdfviewer: 2.7.0 - files_rightclick: 1.5.0 - files_sharing: 1.18.0 - files_trashbin: 1.16.0 - files_versions: 1.19.1 - groupfolders: 14.0.1 - logreader: 2.11.0 - lookup_server_connector: 1.14.0 - mail: 3.1.1 - maps: 1.0.2 - nextcloud_announcements: 1.15.0 - notifications: 2.14.0 - oauth2: 1.14.0 - password_policy: 1.16.0 - photos: 2.2.0 - polls: 5.0.4 - previewgenerator: 5.2.4 - privacy: 1.10.0 - provisioning_api: 1.16.0 - recommendations: 1.5.0 - related_resources: 1.1.0-alpha1 - richdocuments: 8.0.1 - serverinfo: 1.16.0 - settings: 1.8.0 - sharebymail: 1.16.0 - spreed: 16.0.3 - support: 1.9.0 - survey_client: 1.14.0 - systemtags: 1.16.0 - text: 3.7.2 - theming: 2.1.1 - twofactor_backupcodes: 1.15.0 - twofactor_email: 2.7.2 - twofactor_nextcloud_notification: 3.6.0 - twofactor_totp: 8.0.0-alpha.0 - updatenotification: 1.16.0 - user_status: 1.6.0 - viewer: 1.10.0 - weather_status: 1.6.0 - workflowengine: 2.8.0 Disabled: - announcementcenter: 6.5.1 - bruteforcesettings: 2.4.0 - documentserver_community: 0.1.13 - encryption - extract: 1.3.5 - files_external - files_fulltextsearch: 25.0.0 - files_markdown: 2.4.0 - firstrunwizard: 2.4.0 - fulltextsearch: 25.0.0 - fulltextsearch_elasticsearch: 25.0.0 - onlyoffice: 7.8.0 - ransomware_protection: 1.14.0 - richdocumentscode: 22.5.1301 - sharerenamer: 3.2.0 - suspicious_login: 4.2.1 - user_ldap
Configuration (config/config.php) { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "26.0.1.1", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "loglevel": 3, "forcessl": true, "theme": "", "maintenance": false, "trusted_domains": [ "darkvoice.dyndns.org", "ms07.de" ], "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "ssl", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "Europe\/Berlin", "log_authfailip": true, "secret": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/ms07.de\/nc", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "appstore.experimental.enabled": true, "trashbin_retention_obligation": "60, 180", "updater.release.channel": "stable", "htaccess.RewriteBase": "\/nc\/", "memcache.local": "\\OC\\Memcache\\APCu", "simpleSignUpLink.shown": false, "log_rotate_size": 104857600, "mysql.utf8mb4": true, "defaultapp": "files", "preview_max_x": 2048, "preview_max_y": 2048, "default_phone_region": "DE", "app_install_overwrite": [ "richdocuments" ], "maintenance_window_start": "1" }

Cron Configuration: Array ( [backgroundjobs_mode] => cron [lastcron] => 1682693706 )

External storages: files_external is disabled

Encryption: no

User-backends:

OC\User\Database

Talk configuration:

STUN servers

stun.nextcloud.com:443

Signaling servers (mode: default):

no custom server configured

Browser: Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/112.0 Firefox/112.0

michag86 commented 1 year ago

When I disable the App, I get the message "local file does not exist" in the App in notifications

There is no option to uninstall the App.

AndyScherzinger commented 1 year ago

Transfered to server

joshtrichards commented 1 year ago

Does the folder apps/notifications/ exist under your NC installation directory (I.e. /var/www/html)?

And specifically does the file apps/notifications/lib/Service/ClientService.php exist?

The errors suggest that the folder is missing (or files in it are) or permissions on/in it are preventing the web server UID from accessing it properly.

michag86 commented 1 year ago

file looks good $ ls apps/notifications/lib/Service/ClientService.php -la -rw-rw-r-- 1 www-data www-data 1831 Apr 19 15:38 apps/notifications/lib/Service/ClientService.php

I have two installations on this server. Both with the same errors. These installations were unattended upgraded since years by updater.phar

michag86 commented 1 year ago

"Have you tried turning it off and on again?"

Oh man...

I noticed that I also got 500 on the desktop browser for GET /ocs/v2.php/apps/notifications/api/v2/notifications I looked into the php-fpm log and saw this: [28-Apr-2023 20:39:03] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it This occurs multiple times, but only up to three times a day. I raised max_children to 10.

After sudo systemctl restart php8.1-fpm.service the error disappears and notifications work.

I tried to reduce max_children, but the error doesn't occur again.

joshtrichards commented 1 year ago

Unless you are super confined on RAM you can probably boost it pretty high. For whatever reason PHP has kept the FPM default for pm.max_children set to 5 for... I couldn't even tell you how long off-hand. They compare it to Apache's MaxClients / MaxRequestWorkers which in currently defaults to 256 (and even other other server models never default to less than 16).

See what your current fpm processes are consuming each on average then see how many children you could multiply that by while still not taxing your system's memory (e.g. still leaving a still substantial buffer). That's a quick and dirty note so google around for better justification. :)

As for why the issue didn't come back immediately.... perhaps there were some syncs queued up that were getting bottlenecked and bumping it up to 10 cleared them out enough that the issue wasn't going to come back immediately even though you tried to bring max_children back down again. I think the mobile client defaults to at least 6 parallel connections or something like that. But any number of other scenarios might have triggered it. Glad it's work for you again!