-
Notifications
You must be signed in to change notification settings - Fork 57
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
OCP\Files\NotPermittedException
Could not create folder
#289
Comments
Same issue |
Fresh install debian 11.3, apapche 2.4.57, mariaDB 10-5-15, php8.0 Same error, connot create folder:
|
The idea of letting the process run to end, and logging the errors is nice... |
@f4t-t0ny @stratege1401 I think I found the problem and developed a patch. The problem is, that I'm not able to reproduce the issue locally. Could you test it for me? |
I am ok to test and report... But only tomorrow...
Le mer. 13 avr. 2022 à 18:39, Richard Steinmetz ***@***.***>
a écrit :
… @f4t-t0ny <https://github.com/f4t-t0ny> @stratege1401
<https://github.com/stratege1401> I think I found the problem and
developed a patch. The problem is, that I'm not able to reproduce the issue
locally. Could you test it for me?
—
Reply to this email directly, view it on GitHub
<#289 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCBCPKLQFENTYNOBX57UETVE32ETANCNFSM5NXBCBBA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I meet the same problem 2022-04-27T12:02:26+00:00 |
I tried this patch, it works ok now. I am running Nextcloud23.0 with preview plugin 4.0 on CentOS7,php8. |
Can confirm, this patch fixed this issue for me. |
Thanks a lot for testing the patch. I'll submit it upstream. |
I have the same problem, don't know what this patch is and how it is used? |
It is already merged and released. The problem will be fixed if you are using Nextcloud >= 22 and installed the latest update. |
Hello I'm currently running Nextcloud 24.0.1. |
I am using Nextcloud 24.0.6 and 5.0.1 of this app and also get this error when trying to run |
Same for me, nextcloud 25.0.3 (plugin 5.1.1) and 24.0.5 (forgot to take the version) in docker environment |
After a full reinstall, i don't have this error anymore |
I'm running the most recent version of this app, and Nextcloud and still getting this issue...
|
@zvarnes Did you apply said patch manually at some point in the past? |
@st3iny No I did not. |
Still an issue on NC 26.0.0
|
I just installed this app and am seeing the same issue running
|
Same issue: |
I eventually kept running it over and over and it finished successfully. |
I'm also seeing this on v5.2.4 on Nextcloud v26.0.0 Running 2023-05-01T17:20:10+00:00
2023-05-01T17:20:10+00:00 In Folder.php line 166:
2023-05-01T17:20:10+00:00
2023-05-01T17:20:10+00:00 [OCP\Files\NotPermittedException]
2023-05-01T17:20:10+00:00 Could not create folder
2023-05-01T17:20:10+00:00
2023-05-01T17:20:10+00:00
2023-05-01T17:20:10+00:00 Exception trace:
2023-05-01T17:20:10+00:00 at /config/www/nextcloud/lib/private/Files/Node/Folder.php:166
2023-05-01T17:20:10+00:00 OC\Files\Node\Folder->newFolder() at /config/www/nextcloud/lib/private/Files/AppData/AppData.php:147
2023-05-01T17:20:10+00:00 OC\Files\AppData\AppData->newFolder() at /config/www/nextcloud/lib/private/Preview/Storage/Root.php:74
2023-05-01T17:20:10+00:00 OC\Preview\Storage\Root->newFolder() at /config/www/nextcloud/lib/private/Preview/Generator.php:685
2023-05-01T17:20:10+00:00 OC\Preview\Generator->getPreviewFolder() at /config/www/nextcloud/lib/private/Preview/Generator.php:139
2023-05-01T17:20:10+00:00 OC\Preview\Generator->generatePreviews() at /config/www/nextcloud/lib/private/PreviewManager.php:212
2023-05-01T17:20:10+00:00 OC\PreviewManager->generatePreviews() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:230
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->parseFile() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:212
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:210
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:210
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:210
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:210
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:190
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->generateUserPreviews() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:136
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command\{closure}() at /config/www/nextcloud/lib/private/User/Manager.php:639
2023-05-01T17:20:10+00:00 OC\User\Manager->callForSeenUsers() at /config/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:137
2023-05-01T17:20:10+00:00 OCA\PreviewGenerator\Command\Generate->execute() at /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
2023-05-01T17:20:10+00:00 Symfony\Component\Console\Command\Command->run() at /config/www/nextcloud/3rdparty/symfony/console/Application.php:1009
2023-05-01T17:20:10+00:00 Symfony\Component\Console\Application->doRunCommand() at /config/www/nextcloud/3rdparty/symfony/console/Application.php:273
2023-05-01T17:20:10+00:00 Symfony\Component\Console\Application->doRun() at /config/www/nextcloud/3rdparty/symfony/console/Application.php:149
2023-05-01T17:20:10+00:00 Symfony\Component\Console\Application->run() at /config/www/nextcloud/lib/private/Console/Application.php:215
2023-05-01T17:20:10+00:00 OC\Console\Application->run() at /config/www/nextcloud/console.php:100
2023-05-01T17:20:10+00:00 require_once() at /config/www/nextcloud/occ:11
2023-05-01T17:20:10+00:00
2023-05-01T17:20:10+00:00 preview:generate-all [-p|--path [PATH]] [--] [<user_id>...]
2023-05-01T17:20:10+00:00 |
Just to update, I ran the scan for each user separately and it seems to have done the trick and I can't reproduce the above any longer. |
Still getting this error on version 26.0.1 |
I was able to trigger this bug with executing two NC 26.0.2 and Preview Generator 5.3.0 |
I've done more testing, and I think just rescanning the files would help get ride of the error that was showing up. I ran this on a loop until the error went away. |
This issue also occurs on my Nextcloud instance (v25.0.12). Is there any ETA for a fix? |
I am also seeing this. It seems to get through 974 files/folders or more before erroring out, and seems to always be on the same folder.
[...]
|
Installation: Nextcloud AIO via docker* I am seeing the same thing:
My best guess is that this happens when it gets to photos that have already generated previews for (as my process ran for about 120GiB worth of photos without errors, but then when it got to ones that I have accessed before in browser and on my phone, it spit the error). Steps Attempted:Scan Files (returns same error in same location)
Scan App Data (same error but later on, so more previews were successfully generated)
|
I have the same error on NC28.0.1 and the preview generator app just installed and run number 3 I think. What is the difference between the following?
|
The first is a correct command, the second is a typo that I made. Thank you for catching that and I've edited my previous comment accordingly. |
OCP\Files\NotPermittedException
Could not create folder
I think this may be nextcloud/server#36463 which was just fixed in nextcloud/server#41067 (Server v27.1.7 and v28.0.3 have the fix). |
I had a similar issue with Nextcloud 22.2.4:
I added a log output in
nextcloud/lib/private/Files/Node/Folder.php:173:
throw new NotPermittedException('Could not create folder, fullPath: '.$fullPath.', path: '.$path);
After i checked and the folder did exist for me. So to fix this i added a check on the creation if the folder already exists to fix this and changed it to:
if (!$this->get($path) || !$this->view->mkdir($fullPath)) { throw new NotPermittedException('Could not create folder, fullPath: '.$fullPath.', path: '.$path); }
Originally posted by @f4t-t0ny in #121 (comment)
The text was updated successfully, but these errors were encountered: