nextcloud / nextcloud/previewgenerator

preview:generate-all only running for one user

Open
#263 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug docs
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.