My Nextcloud 19 stopped working without anything done from my side since the update 2 month ago. The Server itself is working.
I created a new log-file and made an access, the resulting log consists of one line with 3600 characters and the most used word is “Memcache”. That indicates anything is wrong with redis, but systemctl status redis shows “success” and “running”.
Message":“Memcache \OC\Memcache\Redis not available for local cache”
As @peteman52 has already recommended, make sure that the php-redis module has been installed and configured and that the Redis server is correctly runnung and accesible.
I see something strange:
within the documentation, the lines in config.php regarding Redis are shown this way:
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’
In my config.php they lines look thios way:
‘memcache.local’ => ‘\\OC\\Memcache\\Redis’,
‘memcache.locking’ => ‘\\OC\\Memcache\\Redis’
The difference ist the double backslash. Is this important?
My nextcloud was updated 34 days before now. I checked for changed file within the nextcloud: 1 - config.php and that was me yesterday. Everything else has not changed since the upgrade. I suspected a write_to_file_no-right_error.
What could make the running nextcloud change? Anything in ncdata: Here is the list of the last changed files:
/media/DATA-SERVER/ncdata# find -mtime -2
.
./nextcloud.log
./appdata_ociau2k169hp/css/core
./appdata_ociau2k169hp/css/files_sharing
./appdata_ociau2k169hp/css/files
./appdata_ociau2k169hp/css/notifications
./appdata_ociau2k169hp/css/activity
./appdata_ociau2k169hp/css/contacts
./appdata_ociau2k169hp/css/theming
./appdata_ociau2k169hp/css/text
./appdata_ociau2k169hp/css/icons
./appdata_ociau2k169hp/css/settings
./appdata_ociau2k169hp/js/core
./appdata_ociau2k169hp/js/files
./appdata_ociau2k169hp/js/activity
./appdata_ociau2k169hp/appstore/apps.json
./appdata_ociau2k169hp/text/documents
./nextcloud.log.alt
./hartmut/files/Osmand-Favoriten
./hartmut/files/Osmand-Favoriten/Ol-Amerika_1614629483860.gpx
This last line is last file-action that I remember.
And the database? Here is the list of changed database-files:
/media/Datenbanken# find -mtime -2
./ncdatabase
./ncdatabase/aria_log_control
./ncdatabase/nextcloud/oc_filecache.ibd
./ncdatabase/nextcloud/oc_preview_generation.ibd
./ncdatabase/nextcloud/oc_notifications.ibd
./ncdatabase/nextcloud/oc_calendar_reminders.ibd
./ncdatabase/nextcloud/oc_activity.ibd
./ncdatabase/nextcloud/oc_filecache_extended.ibd
./ncdatabase/nextcloud/oc_appconfig.ibd
./ncdatabase/nextcloud/oc_jobs.ibd
./ncdatabase/nextcloud/oc_text_sessions.ibd
./ncdatabase/nextcloud/oc_text_documents.ibd
./ncdatabase/nextcloud/oc_preferences.ibd
./ncdatabase/nextcloud/oc_authtoken.ibd
./ncdatabase/ibdata1
./ncdatabase/aria_log.00000001
./ncdatabase/mysql/innodb_table_stats.ibd
./ncdatabase/mysql/innodb_index_stats.ibd
./ncdatabase/tc.log
./ncdatabase/ib_logfile0
If Redis-server ist used as an own server on the machine, then the module php-redis should be installed. On my machine the module is installed but php-info does not list this module. How can I get Nextcloud-php to use this module?
that is an php-version-error. Some php-packages are version 7.1, a few 7.2, most are 7.3 (the version I used) and also some are from 7.4 and 8.0. The package php-redis working was version 8.0 …
One great bad mix!
And worse: I had a backport-repository in sources-list, that was for some time a workaround for php-redis. That package was deleted for security-reasons. So backport could be deleted. But most of the php7.3-modules was from backport and marked “manually installed”.
The only solution was: remove every php-module and reinstall all needed modules from version 7.3 anew. If you do that, first make a list of the installed 7.3-modules to keep track.
If all are installed, restart apache-fpm and apache (or nginx). In my case, I had to replay a nextcloud-backup from the day before the failure. Everything worked and was back.