Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting preview size error from occ command #401

Open
tincanfury opened this issue Jun 23, 2023 · 3 comments
Open

setting preview size error from occ command #401

tincanfury opened this issue Jun 23, 2023 · 3 comments
Labels
docs Documentation matters question

Comments

@tincanfury
Copy link

tincanfury commented Jun 23, 2023

Nextcloud Hub (26.0.3) via docker from linuxserver.io
all the commands provided,

./occ config:app:set --value="32 64 1024"  previewgenerator squareSizes
./occ config:app:set --value="64 128 1024" previewgenerator widthSizes
./occ config:app:set --value="64 256 1024" previewgenerator heightSizes

result in the same error, ie,

 $ occ config:app:set --value="64 256 1024" previewgenerator squareSizes
  Too many arguments, expected arguments "command" "app" "name".
config:app:set [--output [OUTPUT]] [--value VALUE] [--update-only] [--] <app> <name>
@arkharim
Copy link

Use backslash before each ". From: #212 (comment)
It works for me.

@DesertCookie
Copy link

This issue still persists - even for commands that have no backslashes in them.

@joshtrichards
Copy link
Member

This isn't a bug in the previewgenerator. The variance in behavior for different people here (and in the linked issue) is because what's needed depends on how one opens the interactive shell session they're running the command in.

This is a Unix/Linux/OS thing.

Generally a mixture of single quotes or single quotes will work, but there's no single command because it depends.

The following situations commonly create this situation:

  • running docker exec (particularly without -it)
  • using sudo
  • using su

I'd love to document this is some way nicely, but I'm afraid someone can always come up with a different runtime environment combination. :-)

If there was to be an attempt to document this (which is not Nextcloud specific) it would belong likely in the Admin Manual in the occ command introduction/overview section.

@joshtrichards joshtrichards added the docs Documentation matters label Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation matters question
Projects
None yet
Development

No branches or pull requests

4 participants