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

Could not create folder #193

Closed
adam-wolak opened this issue May 30, 2020 · 2 comments
Closed

Could not create folder #193

adam-wolak opened this issue May 30, 2020 · 2 comments

Comments

@adam-wolak
Copy link

adam-wolak commented May 30, 2020

During running preview:generate-all on newest Nextcloud, data folder on XigmaNAS (/mnt/smbshare) I got
root@box:/var/www/nextcloud# In Folder.php line 164:
2020-05-29T19:21:36+00:00
2020-05-29T19:21:36+00:00 [OCP\Files\NotPermittedException]
2020-05-29T19:21:36+00:00 Could not create folder
2020-05-29T19:21:36+00:00
2020-05-29T19:21:36+00:00
2020-05-29T19:21:36+00:00 Exception trace:
2020-05-29T19:21:36+00:00 at /var/www/nextcloud/lib/private/Files/Node/Folder.php:164
2020-05-29T19:21:36+00:00 OC\Files\Node\Folder->newFolder() at /var/www/nextcloud/lib/private/Files/AppData/AppData.php:158
2020-05-29T19:21:36+00:00 OC\Files\AppData\AppData->newFolder() at /var/www/nextcloud/lib/private/Preview/Generator.php:433
2020-05-29T19:21:36+00:00 OC\Preview\Generator->getPreviewFolder() at /var/www/nextcloud/lib/private/Preview/Generator.php:119
2020-05-29T19:21:36+00:00 OC\Preview\Generator->getPreview() at /var/www/nextcloud/lib/private/PreviewManager.php:185
2020-05-29T19:21:36+00:00 OC\PreviewManager->getPreview() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:184
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFile() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:171
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:169
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->parseFolder() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:153
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->generateUserPreviews() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:121
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->OCA\PreviewGenerator\Command{closure}() at /var/www/nextcloud/lib/private/User/Manager.php:562
2020-05-29T19:21:36+00:00 OC\User\Manager->callForSeenUsers() at /var/www/nextcloud/apps/previewgenerator/lib/Command/Generate.php:122
2020-05-29T19:21:36+00:00 OCA\PreviewGenerator\Command\Generate->execute() at /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
2020-05-29T19:21:36+00:00 Symfony\Component\Console\Command\Command->run() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:915
2020-05-29T19:21:36+00:00 Symfony\Component\Console\Application->doRunCommand() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:272
2020-05-29T19:21:36+00:00 Symfony\Component\Console\Application->doRun() at /var/www/nextcloud/3rdparty/symfony/console/Application.php:148
2020-05-29T19:21:36+00:00 Symfony\Component\Console\Application->run() at /var/www/nextcloud/lib/private/Console/Application.php:214
2020-05-29T19:21:36+00:00 OC\Console\Application->run() at /var/www/nextcloud/console.php:99
2020-05-29T19:21:36+00:00 require_once() at /var/www/nextcloud/occ:11

@adam-wolak
Copy link
Author

and from Nextcloud event log

OCP\Files\NotPermittedException: Could not create folder

/var/www/nextcloud/lib/private/Files/AppData/AppData.php - line 158:

OC\Files\Node\Folder->newFolder("1760924")

/var/www/nextcloud/lib/private/Preview/Generator.php - line 433:

OC\Files\AppData\AppData->newFolder("1760924")

/var/www/nextcloud/lib/private/Preview/Generator.php - line 119:

OC\Preview\Generator->getPreviewFolder(OC\Files\Node\File {})

/var/www/nextcloud/lib/private/PreviewManager.php - line 185:

OC\Preview\Generator->getPreview(OC\Files\Node\File {}, 224, 224, true, "fill", "text/markdown")

/var/www/nextcloud/core/Controller/PreviewController.php - line 172:

OC\PreviewManager->getPreview(OC\Files\Node\File {}, 224, 224, true, "fill")

/var/www/nextcloud/core/Controller/PreviewController.php - line 144:

OC\Core\Controller\PreviewController->fetchPreview(OC\Files\Node\File {}, 224, 224, false, false, "fill")

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:

OC\Core\Controller\PreviewController->getPreviewByFileId(1760924, 224, 224, false, false, "fill")

/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "getPreviewByFileId")

/var/www/nextcloud/lib/private/AppFramework/App.php - line 125:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "getPreviewByFileId")

/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main("OC\\Core\\C ... r", "getPreviewByFileId", OC\AppFramew ... {}, { _route: "c ... "})

<<closure>>

OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "c ... "})

/var/www/nextcloud/lib/private/Route/Router.php - line 299:

call_user_func(OC\AppFramew ... {}, { _route: "c ... "})

/var/www/nextcloud/lib/base.php - line 1008:

OC\Route\Router->match("/core/preview")

/var/www/nextcloud/index.php - line 38:

OC::handleRequest()

@skjnldsv
Copy link
Member

skjnldsv commented Mar 7, 2022

#289

@skjnldsv skjnldsv closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants