Nextcloud version (eg, 18.0.2): 20.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.29
PHP version (eg, 7.1): 7.2
The issue you are facing:
I am getting the same error ~10x per minute for multiple days already. [PHP] Error: opendir(...
In the error there is a path with a lot of slashes and I don’t know why they are there.
What I tried so far:
Rebooting server, when doing this it took 30min for mariadb to be force closed, after that the issue was still there.
Looking at logs and mariadb, but since I don’t have enough experience I don’t know what to do with it but i suspect it is a query(not sure about correct term) that is stuck/looping.
Is this the first time you’ve seen this error? (Y/N): Y
I saw it a few days ago but didn’t have time to try to fix it, today it is still showing the same error in the log multiple times per minute.
Steps to replicate it:
I don’t know why this started happening.
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: opendir(/media/nextcloud/Username/files/Misc sorted/folder1/folder2/folder3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////folder4/folder5///////////folder6///Graphics////Lang): failed to open dir: File name too long at /var/www/nextcloud/lib/private/Files/Storage/Local.php#131
at 2020-11-28T14:13:41+00:00
This is repeated ~10x per minute for multiple days.
There is a variation in the exact path, folder4 and higher are different, I cannot tell if it si a repeating pattern or that it is going trough all possible subfolders in folder3(which is possible since its a big folder).
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '192.168.2.10',
1 => '',
),
'datadirectory' => '/media/nextcloud',
'dbtype' => 'mysql',
'version' => '19.0.3.1',
'overwrite.cli.url' => '',
'dbname' => 'nextcloud_db_glados',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud_glados',
'dbpassword' => ''
'installed' => true,
'lost_password_link' => 'disabled',
'memcache.local' => '\\OC\\Memcache\\APCu',
'htaccess.RewriteBase' => '/',
'mysql.utf8mb4' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'default_locale' => 'nl',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'updater.release.channel' => 'stable',
);
The output of your Apache/nginx/system log in /var/log/____
:
Nothing relevant as far as I can tell, if needed will include later.
The output of status in mariadb:
MariaDB [(none)]> status
--------------
mariadb Ver 15.1 Distrib 10.1.47-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Connection id: 40876
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server: MariaDB
Server version: 10.1.47-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /var/run/mysqld/mysqld.sock
Uptime: 3 days 2 hours 32 min 43 sec
Threads: 9 Questions: 756510584 Slow queries: 1 Opens: 237 Flush tables: 1 Open tables: 231 Queries per second avg: 2818.982
--------------