Skip to content

Cannot run occ commands - Console has to be executed with the user that owns the file config/config.php #1503

Answered by szaimen
arsaboo asked this question in Questions
Discussion options

You must be logged in to vote

Hi, see https://github.com/nextcloud/all-in-one#how-to-run-occ-commands.

Based on that should the correct command be
sudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --all

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@arsaboo
Comment options

Answer selected by szaimen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1501 on December 10, 2022 08:21.