nextcloud / nextcloud/previewgenerator

[OCP\Files\NotPermittedException] Could not create folder "/appdata_ocfmw89yr7pg/preview/a/b/a/d/2/c/9/34634" Version 5.4.0

Open
#453 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
520
Forks
55
PR merge metrics
No merged PRs in 30d

Description

I've been trying to run occ preview:generate-all -vvv. It gets quite a lot of the way through the folders and just errors out with the error in the title. I've checked and the folder already exists, it seems to be trying to create the folder, see's that it exists and errors out. I keep getting stuck at this point. It seems that there are a few forum posts on this, is there a fix for this now? This is 5.4.0

Thanks

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 the failure with occ preview:generate-all -vvv on Nextcloud 5.4.0 and inspect the reported OCP\Files\NotPermittedException path. No source file or test is named; done means determining why an existing preview directory cannot be handled and documenting or verifying a fix for the failing folder-generation step.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.