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

pre-generate only ever returns "Command is already running." #328

Open
FrankelJb opened this issue Nov 23, 2022 · 2 comments
Open

pre-generate only ever returns "Command is already running." #328

FrankelJb opened this issue Nov 23, 2022 · 2 comments
Labels
0. to triage bug docs Documentation matters

Comments

@FrankelJb
Copy link

I'm running Nextcloud 25 in a Kubernetes cluster. This is all running fine and has been for over a year. I ran previewgenerator some time ago. However, I've just noticed that running ./occ preview:pre-generate only ever returns "Command is already running."

I've tried to restart the containers, redeploy them, disable and re-enable previewgenerator all to no avail. Is there some way to force the pre-generate? I've tried to read the code to see if I can delete something. However, I'm not very familiar with how Nextcloud extensions work.

@f1ana
Copy link

f1ana commented Jan 1, 2023

I just started encountering this as well. Not really sure how to proceed with fixing the issue.

@st3iny
Copy link
Member

st3iny commented Jan 2, 2023

This sound like the generation process got stuck at some point and didn't reset the parallel processing lock. Usually, that should only happen if the previewgenerator process was interrupted.

I could add a new command to reset the pid lock in case of an error.

In the meantime, you can reset the lock manually by running the following query:

DELETE FROM
  oc_appconfig
WHERE
  appid = 'previewgenerator'
  AND configkey = 'pid';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage bug docs Documentation matters
Projects
None yet
Development

No branches or pull requests

4 participants