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): 28.0.3
Operating system and version (eg, Ubuntu 20.04): Unraid OS 6.12.8
PHP version (eg, 7.4): 8.2
Docker container:
lscr.io/linuxserver/nextcloud
The issue you are facing:
root@3203889da4c3:/# occ files:scan --all
{“reqId”:“9DC2bJvA4n84CO4VVTyw”,“level”:1,“time”:“2024-03-06T15:21:28+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“admin_audit”,“method”:“”,“url”:“–”,“message”:“Console command executed: files:scan --all”,“userAgent”:“–”,“version”:“28.0.3.2”,“data”:{“app”:“admin_audit”}}
Starting scan for user 1 out of 5 (A_____)
Starting scan for user 2 out of 5 (E_____)
Exception during scan: File entry could not be inserted but could also not be selected with getId() in order to perform an update. Please try again.
#0 /app/www/public/lib/private/Files/Cache/Scanner.php(307): OC\Files\Cache\Cache->insert()
#1 /app/www/public/lib/private/Files/Cache/Scanner.php(240): OC\Files\Cache\Scanner->addToCache()
#2 /app/www/public/lib/private/Files/Cache/Scanner.php(480): OC\Files\Cache\Scanner->scanFile()
#3 /app/www/public/lib/private/Files/Cache/Scanner.php(404): OC\Files\Cache\Scanner->handleChildren()
#4 /app/www/public/lib/private/Files/Cache/Scanner.php(409): OC\Files\Cache\Scanner->scanChildren()
#5 /app/www/public/lib/private/Files/Cache/Scanner.php(409): OC\Files\Cache\Scanner->scanChildren()
#6 /app/www/public/lib/private/Files/Cache/Scanner.php(409): OC\Files\Cache\Scanner->scanChildren()
#7 /app/www/public/lib/private/Files/Cache/Scanner.php(409): OC\Files\Cache\Scanner->scanChildren()
#8 /app/www/public/lib/private/Files/Cache/Scanner.php(409): OC\Files\Cache\Scanner->scanChildren()
#9 /app/www/public/lib/private/Files/Cache/Scanner.php(354): OC\Files\Cache\Scanner->scanChildren()
#10 /app/www/public/lib/private/Files/Utils/Scanner.php(277): OC\Files\Cache\Scanner->scan()
#11 /config/www/nextcloud/apps/files/lib/Command/Scan.php(180): OC\Files\Utils\Scanner->scan()
#12 /config/www/nextcloud/apps/files/lib/Command/Scan.php(241): OCA\Files\Command\Scan->scanFiles()
#13 /app/www/public/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute()
#14 /app/www/public/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#15 /app/www/public/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#16 /app/www/public/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#17 /app/www/public/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#18 /app/www/public/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run()
#19 /app/www/public/console.php(100): OC\Console\Application->run()
#20 /app/www/public/occ(11): require_once(‘…’)
#21 {main}
Starting scan for user 3 out of 5 (J_____)
Starting scan for user 4 out of 5 (K____)
Starting scan for user 5 out of 5 (M___)
Error during scan: chmod(): Operation not permitted
±--------±------±----±--------±--------±-------±-------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
±--------±------±----±--------±--------±-------±-------------+
| 672 | 22196 | 0 | 5612 | 0 | 2 | 00:00:55 |
±--------±------±----±--------±--------±-------±-------------+
Error during scan: chmod(): Operation not permitted
Is this the first time you’ve seen this error? (Y/N):
Yes
Steps to replicate it:
- IDK
The output of your Nextcloud log in Admin > Logging:
{
"reqId": "4tNAidWgylx8zoj1qIz7",
"level": 3,
"time": "2024-03-06T15:31:59+00:00",
"remoteAddr": "aaa.bbb.ccc.ddd",
"user": "A____",
"app": "PHP",
"method": "GET",
"url": "/settings/admin/logging",
"message": "chmod(): Operation not permitted at /app/www/public/lib/private/Log/File.php#84",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 OPR/107.0.0.0",
"version": "28.0.3.2",
"data": {
"app": "PHP"
},
"id": "65e88c7283da1"
}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '192.168.1.ddd',
'port' => 6379,
'password' => 'sensitive',
),
'datadirectory' => '/data',
'instanceid' => 'ocj49jkucnbm',
'passwordsalt' => 'sensitive',
'secret' => 'sensitive',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'cloud.sensitive.eu',
2 => '192.168.1.ddd',
),
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '192.168.1.ddd',
),
'dbtype' => 'pgsql',
'version' => '28.0.3.2',
'overwrite.cli.url' => 'https://cloud.sensitive.eu',
'dbname' => 'cloud',
'dbhost' => '192.168.1.ddd',
'dbport' => '5432',
'dbtableprefix' => 'oc_',
'dbuser' => 'sensitive',
'dbpassword' => 'sensitive',
'installed' => true,
'integrity.check.disabled' => false,
'mail_from_address' => 'sensitive',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'gmail.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpname' => 'sensitive@gmail.com',
'mail_smtppassword' => 'sensitive',
'mail_smtpsecure' => 'ssl',
'defaultapp' => 'files',
'default_phone_region' => 'CZ',
'updater.release.channel' => 'stable',
'maintenance' => false,
'loglevel' => 0,
'logfile' => '/var/log/nextcloud/nextcloud.log',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'admin',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'theme' => '',
'auth.bruteforce.protection.enabled' => false,
'preview_max_memory' => '512',
'preview_concurrency_all' => 16,
'preview_concurrency_new' => 8,
'enable_previews' => true,
'preview_max_x' => 2048,
'preview_max_y' => 2048,
'enablePreviewProviders' =>
array (
0 => 'OC\\Preview\\Image',
1 => 'OC\\Preview\\Movie',
2 => 'OC\\Preview\\MKV',
3 => 'OC\\Preview\\MP4',
4 => 'OC\\Preview\\AVI',
5 => 'OC\\Preview\\mov',
6 => 'OC\\Preview\\PNG',
7 => 'OC\\Preview\\JPEG',
8 => 'OC\\Preview\\GIF',
9 => 'OC\\Preview\\BMP',
10 => 'OC\\Preview\\XBitmap',
11 => 'OC\\Preview\\PDF',
12 => 'OC\\Preview\\MP3',
13 => 'OC\\Preview\\TXT',
14 => 'OC\\Preview\\MarkDown',
15 => 'OC\\Preview\\3GP',
16 => 'OC\\Preview\\JPG',
),
'filelocking.enabled' => 'true',
'upgrade.disable-web' => 'true',
'appstoreenabled' => 'true',
'maintenance_window_start' => 1,
);
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
PASTE HERE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
(https://pastebin.com/fCPy1JkK)