Nextcloud occ upgrade

I have Nextcloud app installed and working but.

I am getting “Please use the command line updater because updating via browser is disabled in your config.php.”

I have looked around and changed
'upgrade.disable-web' => false

and added
'updatechecker' => true

but it still does not work. I am trying to run ./occ upgrade from TrueNAS console but I get

Console has to be executed with the user that owns the file config/config.php

I cannot figure out how to get it to run under the owner. Anything I run from TN console it does not like. If I try and run inside the nextcloud container, I think I was able to get it to run under a user but it says it cannot find that user.

I do map the config directory to the host, so that I can access the config file outside of the container. Not sure if that is a problem?

Thanks for any help!

EDIT:
I tried running
sudo docker exec --user **** -it ix-nextcloud-nextcloud-1 php occ upgrade

But I get
Cannot write into “apps” directory.

I assume it’s permissions but the user I think it’s running on has permissions.

If you are running Nextcloud in Docker I think you are asking for trouble trying to upgrade through OCC. Just upgrade the docker image. Its easier and its what the image maintainers intended.

Per the Nextcloud GitHub page

I did upgrade the Docker image (well the TrueNAS App). It was working before I did that NOW I am getting this.

This is not that, from what I can see. I had it installed and working. TrueNAS apps said there was an update, which I ran. After that, I am not getting this.