Hi Nextcloud-Community!
I am facing issues which already takes me dozens of ours and 3 complete reinstallations of my Pi4 with NextCloudPi…
In short: Everything works fine until I upload more than 50 JPEG images to a folder and try to access via Browser or the mobile app… Then the server loses connection and doesn’t answer for a few seconds and then I get an Error 500 with message “Internal Server Error”.
After a minute, the web server is available again before it again stuck after trying accessing the files…
Nextcloud version (eg, 20.0.5): 20.0.10
Operating system and version (eg, Ubuntu 20.04): NextCloudPi_11-27-20 // Linux 5.10.17-v8+ aarch64
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.4): 7.3.27
The issue you are facing:
After accessing a folder with many (jpeg) images (50-500) via web frontend or mobile app, the server get stuck and loses its connection (also a SSH connection is terminated). Some seconds later, the web server shows “Internal Server Error” in browser. A few minutes later the system is back up and works until the folder is accessed again.
Is this the first time you’ve seen this error? (Y/N): No
Steps to replicate it:
- Upload some images into a folder
- access this folder via browser or mobile app
- some previews are loaded then it stucks
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXXXXXXXXX',
'trusted_domains' =>
array (
0 => 'localhost',
5 => 'nextcloudpi.local',
7 => 'nextcloudpi',
8 => 'nextcloudpi.lan',
11 => '2003:fb:c710:8c00:d059:4e8f:9f36:f0f2',
1 => '192.168.2.100',
20 => 'XXX.de',
21 => 'XXX.de',
22 => '192.168.2.100',
12 => 'XXXX.de',
),
'datadirectory' => '/media/myCloudDrive/ncdata',
'dbtype' => 'mysql',
'version' => '20.0.10.1',
'overwrite.cli.url' => 'XXX.de/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => 'XXXX',
'installed' => true,
'instanceid' => 'ocwn0g3teaag',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'XXXX',
),
'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
'mail_smtpmode' => 'smtp',
'mail_from_address' => 'XXXX',
'mail_domain' => 'XXXX.de',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'maintenance' => false,
'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
'loglevel' => '2',
'log_type' => 'file',
'htaccess.RewriteBase' => '/',
'updater.secret' => 'XXXX',
'theme' => '',
The output of your Apache log in /var/log/error.log
:
No entries are created when the issue appears…
What log files should I monitor and what log level should I choose?
I am looking forward for any help and appreciate any support!"