Failed to index folder : Local storage path does not exist

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud version (eg, 20.0.5): 28.0.4
Operating system and version (eg, Ubuntu 20.04): Docker container
Apache or nginx version (eg, Apache 2.4.25): nginx 1.25.4
PHP version (eg, 7.4): 8.2.17

The issue you are facing:

  • I sync my photos of my phone to my NAS via Syncthing
  • UID/GID of the syncthing folder on my nas are www-data/www-data
  • The Syncthing folder is shared via NFS and mounted to the nextcloud docker container (/syncthing) as a volume
  • The /synchting folder is mounted as a local external storage in nextcloud
  • I can browse the folder in nextcloud
  • Memories can index it (php occ memories:index)
  • I can see the photos indexed in the timeline

But in the logs, I have every 15 to 20 minutes the following error :
Failed to index folder /username/files/Syncthing: Local storage path does not exist “/syncthing/”

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

{
  "reqId": "uSkskKbnmmUVmrG0Uera",
  "level": 3,
  "time": "2024-04-04T21:20:39+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "memories",
  "method": "",
  "url": "--",
  "message": "Failed to index folder /username/files/Syncthing: Local storage path does not exist \"/syncthing/\"",
  "userAgent": "--",
  "version": "28.0.4.1",
  "data": {
    "app": "memories"
  },
  "id": "660f1c309c1df"
}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'filelocking.enabled' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'port' => 6379,
  ),
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'REDACTED',
  'passwordsalt' => 'REDACTED',
  'secret' => 'REDACTED',
  'trusted_domains' =>
  array (
    0 => 'REDACTED',
  ),
  'trusted_proxies' =>
  array (
    0 => 'REDACTED',
  ),
  'datadirectory' => '/data',
  'dbtype' => 'mysql',
  'version' => '28.0.4.1',
  'dbname' => 'REDACTED',
  'dbhost' => 'REDACTED',
  'dbport' => '',
  'dbtableprefix' => '',
  'dbuser' => 'REDACTED',
  'dbpassword' => 'REDACTED',
  'installed' => true,
  'overwrite.cli.url' => 'REDACTED',
  'overwriteprotocol' => 'https',
  'log_type' => 'file',
  'logfile' => '/logs/nextcloud.log',
  'loglevel' => 2,
  'maintenance' => false,
  'trashbin_retention_obligation' => 'auto,30',
  'versions_retention_obligation' => 'auto,30',
  'mysql.utf8mb4' => true,
  'theme' => '',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'has_rebuilt_cache' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'default_phone_region' => 'FR',
  'preview_concurrency_new' => '2',
  'preview_concurrency_all' => '4',
  'enabledPreviewProviders' =>
  array (
    0 => 'OC\\Preview\\Imaginary',
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MarkDown',
    3 => 'OC\\Preview\\MP3',
    4 => 'OC\\Preview\\TXT',
    5 => 'OC\\Preview\\OpenDocument',
    6 => 'OC\\Preview\\Movie',
    7 => 'OC\\Preview\\Krita',
  ),
  'preview_imaginary_url' => 'REDACTED',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'preview_max_memory' => '256',
  'memories.exiftool' => '/var/www/html/custom_apps/memories/bin-ext/exiftool-amd64-glibc',
  'memories.vod.path' => '/var/www/html/custom_apps/memories/bin-ext/go-vod-amd64',
  'memories.db.triggers.fcu' => true,
  'maintenance_window_start' => 100,
);

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.

PASTE HERE

Where does this error come from and how could I get rid of it?

Thanks.

1 Like

I have what I think is a similar process, and ran into similar errors repeatedly in my logs. The error came in pairs, and always in three pairs.

They seemed to be about folders in specific accounts, so I logged into those accounts (this is a family site so I can do that without any ethical issues :sweat_smile:) and found that those folders were messed up. I deleted them and the errors stopped occurring.