Nextcloud version (eg, 20.0.5): 28.0.1
Operating system and version (eg, Ubuntu 20.04): Kubernetes helm chart version 4.5.10
Apache or nginx version (eg, Apache 2.4.25): if someone can tell me how the hell to find this I'll gladly provide it
PHP version (eg, 7.4): 8.2.13
The issue you are facing:
When I scale the nextcloud helm chart up to more than one replica, I get a whole host of issues that render my instance unusable. Most noticeably when I browse on the web the page says there are no files when there are. It says I have absolutely no files. Scaling back down makes them all appear again.
Now, I know that sounds like I have two instances with different data directories when I scale but I assure you all replicas are mounting the same data directory via a PVC with ReadWriteMany permission.
It seems everything just locks up.
Another symptom was on install when I could barely set up 2 factor authentication. It took many tries until I tried scaling down to 1 replica when it went fine. Trying with multiple replicas just kept failing and forcing a login loop.
On occassion I got the error “too many redirects” which I believe is where my issue is but I can’t figure out how.
Is this the first time you’ve seen this error? (Y/N):
y
Steps to replicate it:
- Install the helm chart
- Use a PVC that allows multiple mounts
- Scale out
The output of your Nextcloud log in Admin > Logging:
Frustratingly this actually won’t load and I only have one replica currently. It just says it can’t load log entries.
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'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,
),
),
'overwritehost' => 'my.domain.name',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://my.domain.name',
'filelocking.enabled' => 'true',
'loglevel' => '2',
'enable_previews' => true,
'trusted_domains' =>
array (
0 => 'nextcloud',
1 => 'my.domain.name',
),
'trusted_proxies' =>
array (
0 => '10.0.0.0/8',
),
'default_phone_region' => 'nz',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis-service',
'port' => 6379,
),
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '465',
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => true,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => 'email',
'mail_smtppassword' => 'password',
'mail_from_address' => 'nextcloud',
'mail_domain' => 'gmail.com',
'passwordsalt' => 'salt',
'secret' => 'secret',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'pgsql',
'version' => '28.0.1.1',
'dbname' => 'postgres',
'dbhost' => 'postgres-service:5432',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_ncadmin',
'dbpassword' => 'password',
'installed' => true,
'instanceid' => 'id',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
);
The output of your Apache/nginx/system log in /var/log/____
:
Seems to not want to load?
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.
There are no errors shown here when this happens
I know there’s not much to go on but where do I start?