Hello,
I’m having some problem accessing files under “Recent” menu option.
When I click to Recent menu I can see all the photos and files however, when I click any of the files I get “No files in here” message.
Checking apache logs I can clearly see the problem:
"PROPFIND /remote.php/dav/files/user/files/user/InstantUpload/WhatsApp%20Images/ HTTP/1.1" 404 0
you can see how /user/files/ repeated twice. obviously this path is invalid and the request returns 404.
Unfortunately I couldn’t figure out why this happens. I’m accessing nextcloud through haproxy, potentially the issue is there but I’m not 100% sure. There is no relevant log entries in the Nextcloud’s log. I’m getting a lot of “getimagesizefromstring(): Corrupt JPEG data” errors but I believe they are not related to the issue.
Can anyone please advise?
Thanks
here is the backend config on haproxy:
backend nextcloud
option httpclose
option forwardfor
http-response set-header Strict-Transport-Security "max-age=16000000; includeSubDomains; preload;"
acl url_discovery path /.well-known/caldav /.well-known/carddav
http-request redirect location /remote.php/dav/ code 301 if url_discovery
server nextcloud 192.168.1.xx:80 check
Nextcloud version: Nextcloud Hub 7 (28.0.1)
Operating system and version: Debian 12.4
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.57
PHP version (eg, 7.4): PHP 8.2.7
config:
$CONFIG = array (
'instanceid' => 'xxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'cloud.domain.com',
),
'trusted_proxies' =>
array (
0 => '192.168.1.xx',
),
'overwriteprotocol' => 'https',
'defaultapp' => 'files',
'datadirectory' => '/cloud-data/nextcloud/data',
'dbtype' => 'mysql',
'version' => '28.0.1.1',
'overwrite.cli.url' => 'http://cloud.domain.com',
'dbname' => 'nextcloud',
'dbhost' => 'mysql.domain.com',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxxxx',
'dbpassword' => 'xxxxxxxxxxxxx',
'installed' => true,
'log_rotate_size' => 2097152,
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis.domain.com',
'port' => 6379,
'timeout' => 0.0,
'password' => 'xxxxxxxxxxxx',
),
'auth.bruteforce.protection.enabled' => true,
'blacklisted_files' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
),
'default_phone_region' => 'GB',
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\XBitmap',
5 => 'OC\\Preview\\Movie',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\MP3',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
),
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'domain.com',
'mail_smtphost' => 'mail.domain.com',
'mail_smtpauth' => 1,
'mail_smtpport' => '587',
'mail_smtpname' => 'nextcloud@domain.com',
'mail_smtppassword' => 'xxxxxxxxxxxx',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'data-fingerprint' => 'xxxxxxxxxxxxxxxxx',
);
"PROPFIND /remote.php/dav/files/user/files/user/InstantUpload/WhatsApp%20Images/ HTTP/1.1" 404 0