TrueNAS specific help with “Please use the command line updater because updating via browser is disabled in your config.php.”

I had Nextcloud up and running on my TrueNAS OS via the app available in their “store”. I was able to log in to the web portal and had Floccus syncing bookmarks to it.

About a week ago I ran an update to the app (docker container really), since then, I cannot use the web portal, I get

Please use the command line updater because updating via browser is disabled in your config.php.

Also, Floccus is showing

E019: HTTP status 503. Failed POST request. Check your server configuration and log

I am assuming the two are caused by the same thing. Looking up the web portal message, it appears I need to run ./occ upgrade via CLI. Here is my issue and it’s TrueNAS specific. I have tried many ways to run this command and I am getting blocked at every turn.

After looking around, I saw some people have luck changing the line 'upgrade.disable-web' => false and adding the line 'updatechecker' => true in the config file, this did not work

In the TrueNAS console, I tried running
sudo docker exec --user **** -it ix-nextcloud-nextcloud-1 php occ upgrade
but I get Cannot write into “apps” directory.

Which I can assume is a permissions issue. But as far as I can see, it looks right (admittedly I am very new to TrueNAS). I did also try some commands using the container console, which runs inside the container directly (sorry I was doing this last week and forget which ones), those did not run either.

Wondering if someone using Nextcloud in TrueNAS have figured this out. I do map the config directory to the host so that I can access the files outside (and have it be persistent). I saw someone had issues doing that to NTFS, but this is OpenZFS.

Sorry if I left anything out, I tried many things last week and had a busy weekend was not able to pick this up again until today.

Thanks for any help!

Something I tried again.

sudo docker exec -it -u ### 5fb510f9a027 /bin/bash

Then running ./occ upgrade but I get

You may use your browser or the occ upgrade command to do the upgrade
Cannot write into “apps” directory.
This can usually be fixed by giving the web server write access to the apps directory or disabling the App Store in the config file.

I still cannot use my browser to upgrade (this option would be best I think.

The rest sounds like permissions, again. I am assuming its the nginx workload in TrueNAS?. I from what I can tell it should have permissions but it seems like not and I am trying to figure that out, without success.

You have GOOOOOTTTTTT to be kidding me.

I was adding 'upgrade.disable-web' => false, in the config.php file as per MANY forums and such. Either I missing that it’s a different php file or they moved it.

Change that to false in upgrade-disable-web.config.php file

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.