nextcloud / previewgenerator

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

Cannot set multiple preview size #203

Closed auanasgheps closed 4 years ago

auanasgheps commented 4 years ago

Hi, I get an error when trying to use this command occ config:app:set --value="32 64 1024" previewgenerator squareSizes

However, single values work like:

occ config:app:set --value="32" previewgenerator squareSizes The value does not matter, as long as it's only one.

See screenshot below. Can you help?

image

auanasgheps commented 4 years ago

Ok, I've found the right command

sudo -u abc ./occ config:app:set --value="32 64 1024" previewgenerator squareSizes

abc is the root user in my container (linuxserver/nextcloud).

Fair enough.

stavros-k commented 3 years ago

Sorry for bringing this up, i'm also using linuxserver/nextcloud, i get the same error as your 1st post, but if u try as abc user, it says abc is not in the sudores file. Any idea?

auanasgheps commented 3 years ago

Honestly I don't know, what happens if you simply run sudo -u abc ? I use this prefix to run my commands in the nextcloud container.

stavros-k commented 3 years ago

this is what im getting, do you have the latest lsio docker?

root@fd46a71f4391:/# sudo -u abc occ
abc is not in the sudoers file.  This incident will be reported.
root@fd46a71f4391:/# sudo -u abc
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user]
            [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C num] [-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file
            ...
root@fd46a71f4391:/# 
auanasgheps commented 3 years ago

Yes, I'm using the latest version, but I confirm abc is sudoer in my image.

Docs here mention abc, but says it is not needed anymore, at least for some commands.

stavros-k commented 3 years ago

Even tried pulling a new image and starting a new container. Still abc not in sudoers list. anyway, thanks for the help! I'll see if i can sort it out on linuxserver/nextcloud repo.