Support intro
*Photos would not recognize content on smb share (mounted as Local).
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
Photos would not recognize content on smb share (mounted as Local).
The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.6
- Operating system and version (e.g., Ubuntu 24.04):
Debian GNU/Linux 12 (bookworm)
- Web server and version (e.g, Apache 2.4.25):
Apache/2.4.62 (Debian)
- Reverse proxy and version _(e.g. nginx 1.27.2)
not applicable
- PHP version (e.g, 8.3):
PHP 8.2.28 (cli) (built: Mar 13 2025 18:21:38) (NTS)
- Is this the first time you’ve seen this error? (Yes / No):
No
- When did this problem seem to first start?
on mounting smb share
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
PVE LXC
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
Photos (…/apps/photos/) would not recognize pics/movies on smb share mounted as Local with permissions ‘www-data:www-data’.
I have tried mounting smb share directories on ‘/var/www/nextcloud/data or /var/www/nextcloud-data/’ as well, but not successful to access on Nextcloud Web or App.
But, able to access all content as normal browsing.
Log entries
Error
core
QueryException
More than 1000 expressions in a list are not allowed on Oracle.
Jun 22, 2025, 11:04:02 PM
Error
core
Exception
Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Jun 21, 2025, 10:39:58 AM
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '****', (replaced before posting here)
'secret' => '****', (replaced before posting here)
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'pve-nc.de',
2 => '192.168.178.121',
),
'forwarded_for_headers' =>
array (
0 => 'HTTP_X_FORWARDED_FOR',
),
'datadirectory' => '/var/www/nextcloud-data',
'dbtype' => 'mysql',
'version' => '31.0.6.2',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/var/run/mysqld/mysqld.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '****', (replaced before posting here)
'installed' => true,
'instanceid' => 'b833f199fa45a',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'log_type' => 'file',
'logfile' => '/var/www/nextcloud-data/nextcloud.log',
'loglevel' => 3,
'updater.secret' => '****', (replaced before posting here)
'maintenance_window_start' => 3,
'theme' => '',
'maintenance' => false,
);