The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Nextcloud Hub 9 (30.0.4)
- Operating system and version (e.g., Ubuntu 24.04):
- Static hostname: redacted
Icon name: computer-desktop
Chassis: desktop
Machine ID: bd9800a69459492db9f848c821a9d837
Boot ID: 33a5f3d31435488b9ae4e9fb394f2560
Operating System: Ubuntu 24.04.1 LTS
Kernel: Linux 6.8.0-51-generic
Architecture: x86-64
Hardware Vendor: Dell Inc.
Hardware Model: OptiPlex 7010
Firmware Version: A29
Firmware Date: Thu 2018-06-28
Firmware Age: 6y 5month 4w
- Static hostname: redacted
- Web server and version (e.g, Apache 2.4.25):
replace me
- PHP version (e.g, 8.3):
- 8.2.26
- Is this the first time you’ve seen this error? (Yes / No):
- The error showed just after midnight when i went to sleep.
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
bare metal/snap
Summary of the issue you are facing:
Massive amounts of apparmor=“DENIED” messages eventually ssh didn’t work and gave an access denied error. had to reboot from server console.
Steps to replicate it (hint: details matter!):
Not sure, did quite a lot of stuff yesterday, installed Unifi controller/nextcloud-https stuff/adguard/edited hosts-hostname…
- Do a fresh install, ubuntu 24.04 (enable default apps - nextcloud)
- installed Unifi controller (Mongodb 4.4.29 to get rid of 3.6 error)
- configured nextcloud and enabled https (took some time new to this)
- installed some systemtools to get better insight.
- tried to get occ to work but couldn’t except run it from folder. ignore the occweb errors removed that app.
Log entries
Error PHP
unlink(/var/snap/nextcloud/common/nextcloud/data/Admin/cache/avatar_upload): No such file or directory at /snap/nextcloud/45728/htdocs/lib/private/Files/Storage/Local.php#313
Dec 25, 2024, 7:46:33 AM
Warning no app in context
Request does not pass strict cookie check
Dec 24, 2024, 11:35:16 PM
Warning no app in context
Request does not pass strict cookie check
Dec 24, 2024, 11:35:16 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 11:10:05 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 11:10:05 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 11:06:14 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 11:06:14 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:57:02 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:57:02 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:56:56 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:56:56 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:27 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:27 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:27 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:27 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:27 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:27 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error no app in context
Exception
HMAC does not match.
Could not decrypt or decode encrypted session data
Dec 24, 2024, 10:56:24 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:38:04 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:38:04 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:37:57 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:37:57 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:37:50 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:37:50 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:31:09 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:31:09 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:31:05 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:31:05 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:31:02 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:31:02 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:28:58 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:28:58 PM
Error PHP
file_put_contents(/snap/nextcloud/45728/htdocs/core/js/mimetypelist.js): Failed to open stream: Read-only file system at /snap/nextcloud/45728/htdocs/core/Command/Maintenance/Mimetype/UpdateJS.php#35
Dec 24, 2024, 10:28:53 PM
Error PHP
file_put_contents(/snap/nextcloud/45728/htdocs/core/js/mimetypelist.js): Failed to open stream: Read-only file system at /snap/nextcloud/45728/htdocs/core/Command/Maintenance/Mimetype/UpdateJS.php#35
Dec 24, 2024, 10:28:53 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:26:05 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:26:05 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:25:54 PM
Error index
ArgumentCountError
Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/snap/nextcloud/45728/nextcloud/extra-apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected
Dec 24, 2024, 10:25:54 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:25:23 PM
Warning no app in context
Invalid defaultDaemonConfig data provided to provideInitialState by settings
Dec 24, 2024, 10:25:23 PM
Warning cron
QueryNotFoundException
Could not resolve OCA\Talk\BackgroundJob\CheckTurnCertificate! Class "OCA\Talk\BackgroundJob\CheckTurnCertificate" does not exist
failed to create instance of background job: OCA\Talk\BackgroundJob\CheckTurnCertificate
Dec 24, 2024, 10:08:09 PM
Warning cron
QueryNotFoundException
Could not resolve OCA\Talk\BackgroundJob\CheckTurnCertificate! Class "OCA\Talk\BackgroundJob\CheckTurnCertificate" does not exist
failed to create instance of background job: OCA\Talk\BackgroundJob\CheckTurnCertificate
#### Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the *Copy raw* option from *Administration settings->Logging* screen or from your `nextcloud.log` located in your data directory). Feel free to use a pastebin/gist service if necessary.
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
{
"system": {
"apps_paths": [
{
"path": "\/snap\/nextcloud\/current\/htdocs\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
"url": "\/extra-apps",
"writable": true
}
],
"supportedDatabases": [
"mysql"
],
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"log_type": "file",
"logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
"logfilemode": 416,
"maintenance_window_start": 1,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.x.x", (changed for posting here)
"my.hostname.eu" (changed for posting here)
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.4.1",
"overwrite.cli.url": "http:\/\/192.168.1.2",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"app_install_overwrite": [
"occweb"
],
"maintenance": false,
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"mail_smtpport": "465"
}
}
Apps
The output of occ app:list
(if possible).
Enabled:
- activity: 3.0.0
- app_api: 4.0.3
- bruteforcesettings: 3.0.0
- calendar: 5.0.8
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- comments: 1.20.1
- contacts: 6.1.2
- contactsinteraction: 1.11.0
- dashboard: 7.10.0
- dav: 1.31.1
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- firstrunwizard: 3.0.0
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- mail: 4.1.1
- nextcloud_announcements: 2.0.0
- notes: 4.11.0
- 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
- richdocuments: 8.5.3
- richdocumentscode: 24.4.1002
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- spreed: 20.1.1
- support: 2.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
- user_status: 1.10.0
- viewer: 3.0.0
- weather_status: 1.10.0
- webhook_listeners: 1.1.0-dev
- whiteboard: 1.0.4
- workflowengine: 2.12.0
Disabled: - admin_audit: 1.20.0
- encryption: 2.18.0
- files_external: 1.22.0
- suspicious_login: 8.0.0
- twofactor_nextcloud_notification: 4.0.0
- twofactor_totp: 12.0.0-dev
- user_ldap: 1.21.0
I hope this is all complete any other information needed i can upload/add here.
The eror i saw this morning :
2024-12-24T22:26:10.563356+00:00 nc kernel: audit: type=1400 audit(1735079170.561:5948): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/83583/smaps_rollup" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
2024-12-24T22:26:12.568319+00:00 nc kernel: audit: type=1400 audit(1735079172.566:5949): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/83583/smaps_rollup" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
2024-12-24T22:26:14.573330+00:00 nc kernel: audit: type=1400 audit(1735079174.571:5950): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/83583/smaps_rollup" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
2024-12-24T22:26:14.577319+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5951): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/76470/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=113
2024-12-24T22:26:14.577332+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5952): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/72613/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
2024-12-24T22:26:14.577334+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5953): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/72601/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
2024-12-24T22:26:14.577338+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5954): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/4709/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
2024-12-24T22:26:14.577339+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5955): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/4548/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000
2024-12-24T22:26:14.577340+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5956): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/4048/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=110
2024-12-24T22:26:14.577342+00:00 nc kernel: audit: type=1400 audit(1735079174.575:5957): apparmor="DENIED" operation="open" class="file" profile="snap.nextcloud.php-fpm" name="/proc/1912/comm" pid=83583 comm="admin" requested_mask="r" denied_mask="r" fsuid=0 ouid=111