Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 22.1.0
Operating system and version (eg, Ubuntu 20.04): ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0
PHP version (eg, 7.4): php 8.0
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): y
Steps to replicate it:
- Upgrade from 7.4 to 8.0 PHP
- Install Redis-server
- Launch the web address : Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
I have added into redis.conf :
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 770
and do :
firewall-cmd --add-port=6379/tcp --permanent
I have test lot of parameters into /var/www/nextcloud/config/config.php For Redis. I don’t know which one to use.
This don’t works :
'filelocking.enabled' => 'true',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => array (
'host' => '/var/run/redis/redis-server.sock',
'port' => '0',
'timeout' => '0.0',
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
This works on 127.0.0.1 (not www…abc…com) and after type redis-server into terminal :
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => 'true',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => array (
'host' => 'localhost',
'port' => 6379,
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
This works on 127.0.0.1 (not www…abc…com) and after type redis-server into terminal :
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => 'true',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => array (
'host' => 'localhost',
'port' => 0,
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
If I go to www…abc…com :
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
sudo systemctl enable redis :
Failed to enable unit: Refusing to operate on alias name or linked unit file: redis.service
WITH or WITHOUT type ‘redis-server’
systemctl status redis
● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor >
Drop-In: /etc/systemd/system/redis-server.service.d
└─override.conf
Active: active (running) since Sun 2021-08-22 08:54:27 CEST; 2min 3s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Main PID: 943 (redis-server)
Tasks: 4 (limit: 9276)
Memory: 4.3M
CGroup: /system.slice/redis-server.service
└─943 /usr/bin/redis-server 127.0.0.1:0
août 22 08:54:27 mgnas systemd[1]: Starting Advanced key-value store...
août 22 08:54:27 mgnas systemd[1]: Started Advanced key-value store.
The output of redis-server.log (/var/log/redis/)
936:M 22 Aug 2021 08:44:07.777 # Server initialized
936:M 22 Aug 2021 08:44:07.777 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
936:M 22 Aug 2021 08:44:07.777 * DB loaded from disk: 0.000 seconds
936:M 22 Aug 2021 08:44:07.777 * The server is now ready to accept connections at /var/run/redis/redis-server.sock
936:signal-handler (1629615239) Received SIGTERM scheduling shutdown...
936:M 22 Aug 2021 08:54:00.048 # User requested shutdown...
936:M 22 Aug 2021 08:54:00.048 * Saving the final RDB snapshot before exiting.
936:M 22 Aug 2021 08:54:00.051 * DB saved on disk
936:M 22 Aug 2021 08:54:00.051 * Removing the pid file.
936:M 22 Aug 2021 08:54:00.051 * Removing the unix socket file.
936:M 22 Aug 2021 08:54:00.052 # Redis is now ready to exit, bye bye...
943:C 22 Aug 2021 08:54:27.964 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
943:C 22 Aug 2021 08:54:27.965 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=943, just started
943:C 22 Aug 2021 08:54:27.965 # Configuration loaded
943:C 22 Aug 2021 08:54:27.965 * supervised by systemd, will signal readiness
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.7 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 0
| `-._ `._ / _.-' | PID: 943
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
943:M 22 Aug 2021 08:54:27.980 # Server initialized
943:M 22 Aug 2021 08:54:27.980 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
943:M 22 Aug 2021 08:54:27.981 * DB loaded from disk: 0.001 seconds
943:M 22 Aug 2021 08:54:27.981 * The server is now ready to accept connections at /var/run/redis/redis-server.sock
The output of your Nextcloud log in Admin > Logging:
Not available
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'IDDDDD',
'passwordsalt' => 'PASSSSSS',
'secret' => 'SECRETTTT',
'default_phone_region' => 'FR',
'trusted_domains' =>
array (
0 => 'www..abc..com',
1 => 'abc.local',
),
'datadirectory' => '/media/XXX/disque_wd/data',
'dbtype' => 'mysql',
'version' => '22.1.0.1',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwrite.cli.url' => 'https://www..abc..com',
'dbname' => 'DBNAMEEE',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'DBUSERRR',
'dbpassword' => 'DBPASSSSS',
'installed' => true,
'filesystem_check_changes' => 1,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => 'true',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => array (
'host' => 'localhost',
'port' => 0,
'timeout' => 0.0,
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'maintenance' => false,
'updater.release.channel' => 'stable',
'theme' => '',
'loglevel' => 2,
'app_install_overwrite' => array (
0 => 'previewgenerator',
),
);
The output of your Apache/nginx/system log in /var/log/____
:
2021/08/22 08:54:27 [warn] 970#970: "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/etc/letsencrypt/live/www..abc..com/fullchain.pem"
I just want my server running into redis socket. With APCu it works good but i want Redis.