Security & setup warnings times out and gives no answers

Nextcloud version: 22.1.1
Operating system and version: Rocky Linux 8.4 (basically centos8/rhel8)
Apache or nginx version: Apache/2.4.37 (rocky)
PHP version: PHP 7.4.23


Hello!

The issue I am facing:
The automatic check in the Admin > Overview: “Security & setup warnings” times out with

  • Error occurred while checking server setup

And nothing else… There are no logs generated during or after waiting for it to respond.

Things I have noted:

  • If not cached by the browser, the settings/apps and settings/overview loads extremely slow compared to other pages (like 30sec).
  • Everything else from the webui/syncing seems to work (haven’t found something else that does not work)
  • Although i was doing other stuff on the server that day (see below) the issue seems to have came after clicking an update available for app contacts notification in the webui.
  • Multiple but not all featured apps fail the integrity check.

What I was doing on the server that day:

  • Updated the contacts app trough the notification.
  • Uninstalled php-smbclient
  • Installed cifs-utils
  • Added a “internal” network adapter (nextcloud is running as hyperv client)
  • Configured said adapter
  • Changed default firewalld zone to block (adding http https and ssh)
  • Placed the new interface in the internal zone (firewalld)
  • Tried mounting an smb share/played around with mounting it on the server, not in nextcloud).
  • Noticed that the server check failed.
I have since done (except a lot of searching on the internet):

Server was rebooted multiple times in between things here.

  • Ran dnf update
  • dnf autoremove
  • ran setsebool -P httpd_unified on
  • reset samba setting (smb.conf)
  • doublechecked that the php-smbclient module was being expected (config file was removed from php.d/)
  • played around with the firewallsettings if they made any difference (no)
  • occ integrity:check-core (complained about my custom-skeleton in nextcloud root but nothing else)
  • moved my custom-skeleton to different location and updated config.php
  • maintenance:check-core now passes
  • maintenance:repair
  • maintenance:update:htaccess
  • ran app:check-integrity on some apps (contacts, calendar and external failed, but most featured apps passed - but I have not yet checked all
  • disabled and removed calendar, contacts and external sites apps.
  • Calendar and contacts where also reinstalled to see if that solved the issue, it did not so I removed them again.
  • db:add-missing-indices
  • occ files:scan --all
  • files:cleanup
  • files:scan-app-data
  • maintenance:mimetype:update-db - this did a couple things!
  • maintenance:mimetype:update-js - this broke the hash on the mimetypes.js! check-core reports that file now!
  • re-ran repair and update htaccess - check-core still fails the mimetypes.js file
  • turned off check.integrity in config.php
  • restarted webserver
  • check core now fails with: integrity:check-core can not be used on git checkouts
  • Issue is not solvbed my disabling the integrity check.
  • re-enabled integrity check.
  • reinstalled php-smb client - as expected this did not solve the issue.

Steps to replicate it: I am not sure
One possibility:

  1. Click on update available for contacts app (to 4.0.3) with setsebool -P httpd_unified off if that is relevant.
  2. Browse around, also I think I restarted the server.
  3. Browse to Admin > Overview, note it is loading very slowly (~30sec).
  4. The Automatic checker loads even slower (~1 min)
  5. The automatic check fails and only tells “Error occurred while checking server setup
  6. Browse to apps, note that is also loading slowly (~30sec), but seems to work afterwards, including installing uninstalling apps…

Both settings/apps and settings overview load quick after browser has visited them once, the automatic check however takes the ~1 min every time.


The output of my Nextcloud log in Admin > Logging:
I have segmented this into:

  • the latest logs from level 2
  • the logs from when contacts app was updated.
  • I logged on log level 1 for a while, but cant post those logs since they are over 32k symbols just from ~12h.

I have tried replaced username with Rinkana and removed ipadresses, if you find something i probably should remove please tell me.

Latest loglevel 2:

{"reqId":"HoLBpcrf9bBWTDphEI2t","level":3,"time":"2021-09-16T11:04:32+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/calendar/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/calendar/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"j4dERddiIpdHd7mVlLBS","level":3,"time":"2021-09-16T11:04:49+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/contacts/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/contacts/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"HZPzRLTfHDTUxPhMB7Ao","level":3,"time":"2021-09-16T11:09:38+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/apporder/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/apporder/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"07Lday104v3WBLlAf0Jy","level":3,"time":"2021-09-16T11:12:41+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/calendar/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/calendar/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"nImcig3jG2G5yUYFKwkI","level":3,"time":"2021-09-16T11:19:28+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/contacts/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/contacts/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"iOdBCN0MtC9ucjmJyuKV","level":3,"time":"2021-09-16T11:21:16+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/external/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/external/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"3IeoQIb4ElBwa6QAOmDC","level":3,"time":"2021-09-16T11:23:25+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/files_accesscontrol/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/files_accesscontrol/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
{"reqId":"EfVsYwUkS9xXECW35qKL","level":3,"time":"2021-09-16T11:23:56+02:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"file_get_contents(/var/www/html/nextcloud/apps/files_texteditor/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","userAgent":"--","version":"22.1.1.2","exception":{"Exception":"Error","Message":"file_get_contents(/var/www/html/nextcloud/apps/files_texteditor/appinfo/signature.json): failed to open stream: No such file or directory at /var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php#44","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Helpers/FileAccessHelper.php","line":44,"function":"file_get_contents"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":329,"function":"file_get_contents","class":"OC\\IntegrityCheck\\Helpers\\FileAccessHelper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/IntegrityCheck/Checker.php","line":520,"function":"verify","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Integrity/CheckApp.php","line":72,"function":"verifyAppSignature","class":"OC\\IntegrityCheck\\Checker","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Integrity\\CheckApp","type":"->"},{"file":"/var/www/html/nextcloud/core/Command/Base.php","line":168,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":1009,"function":"run","class":"OC\\Core\\Command\\Base","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":273,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/symfony/console/Application.php","line":149,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Console/Application.php","line":209,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/console.php","line":99,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/html/nextcloud/occ","line":11,"args":["/var/www/html/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}

The logs from appupdate:

{"reqId":"YUI6LvsxbEEZOWXMTwZfGAAAAM8","level":4,"time":"2021-09-15T20:23:42+02:00","remoteAddr":"","user":"Rinkana","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/Rinkana/Afile","message":"System is in maintenance mode.","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.3stable-Win64 (build 20210903) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.1.1.2","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"System is in maintenance mode.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkMaintenanceMode","class":"OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":333,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":166,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php","Line":85,"CustomMessage":"--"},"id":"614338be60ad9"}
{"reqId":"YUI6TLE-d5@ECHBS8FpmTgAAAI4","level":4,"time":"2021-09-15T20:24:12+02:00","remoteAddr":"","user":"Rinkana","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/Rinkana/Afile","message":"System is in maintenance mode.","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.3stable-Win64 (build 20210903) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.1.1.2","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"System is in maintenance mode.","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkMaintenanceMode","class":"OCA\\DAV\\Connector\\Sabre\\MaintenancePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Server.php","line":333,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":166,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php","Line":85,"CustomMessage":"--"},"id":"614338be60aaa"}

My config.php file
<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'xxx',
    1 => 'xxx',
    2 => 'xxx',
  ),
  'datadirectory' => '/opt/datastor/nc_data/',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'log_type' => 'file',
  'loglevel' => 2,
  'logtimezone' => 'xxx',
  'default_phone_region' => 'xx',
  'default_language' => 'xx',
  'default_locale' => 'xx',
  'skeletondirectory' => '/var/www/html/skeleton/custom-skeleton',
  'templatedirectory' => '/var/www/html/skeleton/custom-templates',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\XBitmap',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\MarkDown',
    8 => 'OC\\Preview\\OpenDocument',
    9 => 'OC\\Preview\\Krita',
    10 => 'OC\\Preview\\Movie',
  ),
  'token_auth_enforced' => true,
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'redis' =>
  array (
    'host' => '/run/redis/redis.sock',
    'port' => 0,
  ),
  'maintenance' => false,
  'theme' => '',
);

Neither SELinux autdit.log or apache error log in /var/log/httpd seem to contain anything related to the issue, so i do not include them. If you think there migh be good information in them I can add them in a comment oredit question.

My nextcloud installation went from being stable to a kinda feeling in chaos from me doing things i didint think would affect it… :sweat_smile: :sweat:

If you think I missed some information, please tell me! Or if i should change title etc.

All help appriciated!

This issue solved itself today (just now). I have no idea what solved it, may it be the latest Rocky Linux (rhel8 based) update (updated half an hour ago), “Notes” or “RAW previews” app updates - as that is the only thing that changed since it last failed. Was running nc 24.0.3 when it got fixed, still works on 24.0.4.

Got an error about missing indices, maybe this check took so long that it timed out before?

I am going to mark this as the solution, sorry for not managing to find the underlying problem. As I said I could not find any logs about it, neither nc logs or SELinux logs would indicate anything. Turning SEL off did not help (which I thought was the problem). Except for inconsistent sluggishness of the apps and admin overview pages and the mentioned fail of the setup check there were no other issues.