Internal Sever Error after few days fresh install

Nextcloud version (eg, 29.0.5): 30.0
Operating system and version (eg, Ubuntu 24.04): 24.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.58
PHP version (eg, 8.3): 8.3

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Yes

The output of your Nextcloud log in Admin > Logging:

Cant Acces Dashboard

The output of your config.php file in /var/www/html/config/config.php (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocnof4vhtd6f',
  'passwordsalt' => '** Password Removed**',
  'secret' => '** Secret Removed**',
  'trusted_domains' => 
  array (
    0 => 'cloud.krykomedia.eu',
    1 => '37.60.248.176:8080',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '30.0.0.14',
  'overwrite.cli.url' => 'http://cloud.krykomedia.eu',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '** Password Removed**',
  'installed' => true,
  'maintenance' => false,
  'overwriteprotocol' => 'https',
  'default_phone_region' => 'NL',
  'enable_previews' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 0,
  ),
  'maintenance_window_start' => 17,
  'mail_domain' => 'krykofox.eu',
  'mail_from_address' => 'noreply',
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'mail.krykofox.eu',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '587',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpname' => 'noreply@krykofox.eu',
  'mail_smtppassword' => '** Password Removed**',
);

The output of your Apache/nginx/system log in /var/log/apache2/error_log.1:

Pastebin Error_1.log

Greettings KrykoFox

Check your Nextcloud log. It’ll be located at /var/www/html/data/nextcloud.log per your config.

looks like a redis error

Hi @KrykoFox

Your redis server seems to be down or stuck. That allways results in an internal server error.

What is the status:

sudo systemctl status redis-server

Does it work after a restart?:

sudo systemctl restart redis-server

Much and good luck,
ernolf

I have tried ready for connections t said hehe

The “ready for connections” is not interesting.
The CPU column is much more interesting. This says that the “redis-server” process has only used 332 ms of CPU time since it started.
So your redis server is definitely wrongly configured. This can happen at any point in the chain. So either the config/config.php:

try it this way (just guessing):

  'redis' => 
  array (
    'host' => '/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0,
  ),

… or the configuration of the server itself.

What is the output of

sed -E '/^\s*($|#)/d' /etc/redis/redis.conf

And you should check the redis log file “/var/log/redis/redis-server.log”.
Feel free to post its content here too…


ernolf

output of the CommAND

bind 127.0.0.1 -::1
protected-mode yes
port 0
tcp-backlog 511
unixsocket /run/redis/redis-server.sock
unixsocketperm 700
timeout 0
tcp-keepalive 300
daemonize yes
pidfile /run/redis/redis-server.pid
loglevel notice
logfile /var/log/redis/redis-server.log
databases 16
always-show-logo no
set-proc-title yes
proc-title-template "{title} {listen-addr} {server-mode}"
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
rdb-del-sync-files no
dir /var/lib/redis
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync yes
repl-diskless-sync-delay 5
repl-diskless-sync-max-replicas 0
repl-diskless-load disabled
repl-disable-tcp-nodelay no
replica-priority 100
acllog-max-len 128
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
lazyfree-lazy-user-del no
lazyfree-lazy-user-flush no
oom-score-adj no
oom-score-adj-values 0 200 800
disable-thp yes
appendonly no
appendfilename "appendonly.aof"
appenddirname "appendonlydir"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
aof-timestamp-enabled no
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-listpack-entries 512
hash-max-listpack-value 64
list-max-listpack-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-listpack-entries 128
zset-max-listpack-value 64
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes
jemalloc-bg-thread yes

and the log is
Redis log

i have try adjust the config as wel wont work and restarted still get an error internal server error

Change unixsocketperm 700 in /etc/redis/redis.conf to…

unixsocketperm 770

…and add www-data to the redis group:

sudo usermod -aG redis www-data

Restart redis:

sudo systemctl restart redis-server

Hmm tried as well but no effect

ok my bad its fixed thanks guys

the commands helped but i had an extra ); in my config so that was also a extra trouble shoot but thanks for the help :wink:

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.