nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
450 stars 56 forks source link

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

Closed kbartczakpl closed 1 year ago

kbartczakpl commented 2 years ago

Nextcloud installed via docker.

input:

docker exec -it nextcloud ./occ preview:generate-all -vvv
// or
docker exec -it nextcloud ./occ preview:generate-all -vvv -u 33
// or inside docker 
./occ preview:generate-all -vvv
//  or
./occ preview:generate-all -vvv -u 33

Output

Console has to be executed with the user that owns the file config/config.php
Current user id: 0
Owner id of config.php: 33
Try adding 'sudo -u #33' to the beginning of the command (without the single quotes)
If running with 'docker exec' try adding the option '-u 33' to the docker command (without the single quotes)
st3iny commented 2 years ago

When using the -u flag with docker the order matters.

Try this command: docker exec -u 33 -it nextcloud ./occ preview:generate-all -vvv

st3iny commented 2 years ago

Did my suggestion solve your issue?

st3iny commented 1 year ago

Closed due to inactivity.