Nextcloud occ permission denied

I moved my nextcloud data to a new drive. I made sure to use rsync to keep all permissions the same, I recreated my containers and everything seems to work properly, I can download/upload/delete files, calendar etc. Functionally from the user side everything is solid.

Except occ commands.

I cannot for the life of me get this to work. I chmod it I chwon it I downloaded a fresh image and copied the occ from that. I cannot figure out how to get my exec commands to work now (they did so before I moved data)
This /root/.bashrc does not exist, but it seems to look for it. Should it?

Try using sudo -u abc before the rest of the command.

image

I didn’t have “php occ” for some reason

docker exec -it -u abc nextcloud18 /config/www/nextcloud/occ files:scan

to:
docker exec -it -u abc nextcloud18 php /config/www/nextcloud/occ files:scan

docker exec -it nextcloud sudo -u abc php7 /config/www/nextcloud/occ files:scan works

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