nextcloud / nextcloud/previewgenerator
preview:generate-all only running for one user
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 520
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
If I run the command sudo docker exec -ti --user www-data nextcloud-app /var/www/html/occ preview:generate-all it only runs for a single user out of four (always the same one).
There's nothing I can see in that command that is specifying one user, and if I run the command with a username specified it works for that user (e.g. docker exec -ti --user www-data nextcloud-app /var/www/html/occ preview:generate-all user_1.
Any ideas why it would randomly do this? My old setup (non-docker) used to run this nightly and would do all users. Not sure what happened with it.
Any ideas welcome. I can manually set it for each user to cover me for now, but it's a pain to have to manually adjust this each time.
Debian 11
PHP 8.0
Docker Nextcloud Apache, started with composer
MariaDB
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing occ preview:generate-all in the reported Docker setup with four users, then compare it with the per-user command shown in the issue. Trace the preview:generate-all command entry point and determine why the all-users form processes only one user; done means all four users are processed in one invocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, mariadb, php
- Domain
- backend, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100