Nextcloud version: 22.2.0
Operating system and version: Debian 10 (x64)
Apache or nginx version: Apache/2.4.38 (Debian)
PHP version: 8.0.11
The issue you are facing:
All files uploaded via web or client sync freezes at 100% for about 30sec before showing an “unknown error” (Android: error occured while waiting for the server).
However, the file is actually uploaded and locked for a bit (after a while, file gets unlocked and shows normally in Nextcloud as if nothing happened).
It becomes a bigger problem when uploading multiple files, as they seem to each take a php-fpm child process, crashing the entire apache website if syncing more than 5-10 files “at once” (need to restart php-fpm to access nextcloud again).
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
Unknown, the problem randomly appeared (no NC configuration change) a few weeks after changing from php 7.4 to php 8.0. Due to the delay, I don’t think this is linked.
The output of your Nextcloud log in Admin > Logging:
Nothing shows up in logs.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'instanceid' => '[HIDDEN]',
'passwordsalt' => '[HIDDEN]',
'secret' => '[HIDDEN]',
'trusted_domains' =>
array (
0 => '[HIDDEN]',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '22.2.0.2',
'overwrite.cli.url' => '[HIDDEN]',
'dbname' => '[HIDDEN]',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '[HIDDEN]',
'dbpassword' => '[HIDDEN]',
'installed' => true,
'htaccess.RewriteBase' => '/',
'default_phone_region' => 'FR',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis-server.sock',
'port' => 0,
'dbindex' => 0,
'timeout' => 1.5,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'maintenance' => false,
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\TXT',
1 => 'OC\\Preview\\MarkDown',
2 => 'OC\\Preview\\OpenDocument',
3 => 'OC\\Preview\\PDF',
4 => 'OC\\Preview\\MSOffice2003',
5 => 'OC\\Preview\\MSOfficeDoc',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\Image',
8 => 'OC\\Preview\\Photoshop',
9 => 'OC\\Preview\\TIFF',
10 => 'OC\\Preview\\SVG',
11 => 'OC\\Preview\\Font',
12 => 'OC\\Preview\\MP3',
13 => 'OC\\Preview\\Movie',
14 => 'OC\\Preview\\MKV',
15 => 'OC\\Preview\\MP4',
16 => 'OC\\Preview\\AVI',
),
'theme' => '',
'loglevel' => 2,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'nextcloud',
'mail_domain' => '[HIDDEN]',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => '[HIDDEN]',
'mail_smtpport' => '465',
'mail_smtpname' => '[HIDDEN]',
'mail_smtppassword' => '[HIDDEN]',
);
The output of your Apache/nginx/system log in /var/log/____
:
Access:
[IP HIDDEN] - - [20/Oct/2021:11:21:18 +0200] "PUT /remote.php/dav/uploads/Eidenz/f9acc26c41aff5fc39acc287f169c3e1/0000000004096000-0000000005119999 HTTP/1.1" 201 845 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
[IP HIDDEN] - - [20/Oct/2021:11:21:22 +0200] "PUT /remote.php/dav/uploads/Eidenz/f9acc26c41aff5fc39acc287f169c3e1/0000000005120000-0000000006143999 HTTP/1.1" 201 845 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
[IP HIDDEN] - - [20/Oct/2021:11:21:25 +0200] "PUT /remote.php/dav/uploads/Eidenz/f9acc26c41aff5fc39acc287f169c3e1/0000000006144000-0000000007167999 HTTP/1.1" 201 845 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.17.0"
Error:
[nothing during upload]
However, I often get these error logs (not at the exact time of upload though, usually a bit before/after):
[Wed Oct 20 10:40:28.488456 2021] [proxy_fcgi:error] [pid 17194] [client [IP HIDDEN]:41740] AH01067: Failed to read FastCGI header
[Wed Oct 20 10:40:28.488474 2021] [proxy_fcgi:error] [pid 17194] (104)Connection reset by peer: [client [IP HIDDEN]:41740] AH01075: Error dispatching request to :
[Wed Oct 20 10:40:28.624395 2021] [proxy:error] [pid 17341] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.0-fpm.sock (*) failed
[Wed Oct 20 10:40:28.624450 2021] [proxy_fcgi:error] [pid 17341] [client [IP HIDDEN]:63776] AH01079: failed to make connection to backend: httpd-UDS