I use redis and it works fine with any password I want. How did you set a redis password and how do you know what it is? Can you show a screen capture of the app config where you set it? You’re in an existing thread, not sure I follow are you doing a fresh install or an existing install? For fresh, which someone said they were doing, the env var will do it.
For existing, it needs to be in config.php but you have to make sure that file is part of a hostpath so it doesn’t reset every time you start nextcloud. Can you show the existing config.php with your change?
This all is far more a nextcloud question than a truenas question though.
Followed also the other installation steps from that manual
Set ‘Admin Password’, ‘Redis Password’ and ‘Database Password’ to custom values
deployed the app successfully
verified that config.php took over the correct Redis password, that is the case
browsed to the NC login page
entered credentials that were used during setup, login page appears again.
reloaded page, same result
cleared browser cache, tried again, same result
Set REDIS_HOST_PASSWORD as suggested, same result
changed Redis password in App wizard to ‘nextcloud’ and manually took this over in config.php
login works fine
changed Redis password back to custom value → broken again
I feel the Redis password from app wizard is considered properly by Nextcloud but another part of the app/container just uses a hardcoded default password.
That explains it better, likely you are right, it’s likely an app error. You’d have to submit a bug report, don’t use apps so not sure how you do that.
Had same issue with log in after clean install. Solved like this:
Removed Host from Nextcloud Configuration then creating instance
Used nginx-proxy-manager to reverse proxy NextCloud with SSL cert and Set Domain.
Added domain to trusted_domains in config.php.
After this it worked. Reverse proxy idea born after I dug nextcloud internal logs and found:
HMAC does not match.
Could not decrypt or decode encrypted session data
I have the same problem. I have used NextCloud for many month without any issue and now I needed to reinstall nextcloud. I already changed Truenas Scale to newest version SCALE 24.10.1 (Electric Eel). I have tried everything possible I found on the internet with these unhappy results:
Using Truenas_default certificate > “Access through untrusted domain”
without certificate through HTTP connection > unpossible login to NextCloud with user and password specified in installation wizard.
Firstly I tried to reuse working installation only changing Data directory with no success. After that I have tried completely new installations with specialy made datasets with different combinations with ix-volumes with no success. I updated “trusted_domain” and “overwrite…” in config.php with no success.
It’s my private Truenas server used mainly for Photo storage next for Jellyfin, Home Assistant and ROON server. And of course for NextCloud for photography sharing, backup and its other options. I am a semi amateur programer with not much experience with truenas and docker.
Usually I could find solution with help of internet, but here I am stuck and have no idea how to continue.
I don’t know.
But I accidentally solved the problem. I have found strange behaviour of the nextcloud when I changed the trusted domains in config.php. And finally I have realized the overwrite_host, i think, was incorectly setup. When I have changed this parrametr into the same domain address even with the port, nextcloud started work like a charm. But it took me almost 3 days of research
Coming back to this from EE and NextCloud v2.1.3 where I found the same issue. Setting a custom Redis password in the TrueNAS app deployment left me stuck at the login loop for my ncadmin user. Changing the Redis password to ‘nextcloud’ resolved the issue!
One note for anyone finding this comment, I had created/deleted the datasets several times getting ACLs correct, but once the app started successfully I left them alone. Although I had changed the admin user’s password back to ‘nextcloud’ from my custom one in the TrueNAS app form, evidently my password had been written to the database as my “new” ‘nextcloud’ one didn’t work, but my original one did.
Could you please share what permissions you ended up with on your datasets?
I have been struggling with the same problem originally posted. Can’t log in to Nextcloud, even after seemingly setting it up correctly.
I am using TrueNAS 25.10.0.1, which I would not think should make a difference, but I could be wrong.
I got a Nextcloud update yesterday, so it is now at App Version 32.0.2, Version 2.1.13. No change in the problem.
I tried changing the redis password to “nextcloud” - but this did not fix the problem either. Ttrue for the older version of Nextcloud as well.
If you are storing your datasets under an overarching dataset (e.g. /ZFSPool/nextcloud/..) is it necessary to apply permissions recursively to the parent dataset (“nextcloud” in my example) in some manner? Maybe that’s where I’m going wrong. I thought it would be enough for each of the three datasets (appdata, postgres, userdata) to have permissions set. Very confusing.