-
-
Notifications
You must be signed in to change notification settings - Fork 62
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 #1498
Comments
Can't reproduce but going by the exception trace [
{
"file": "/var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php",
"line": 106,
"function": "newFolder",
"class": "OCFilesNodeFolder",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/theming/lib/ImageManager.php",
"line": 165,
"function": "newFolder",
"class": "OCFilesSimpleFSSimpleFolder",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/theming/lib/ImageManager.php",
"line": 180,
"function": "getCacheFolder",
"class": "OCAThemingImageManager",
"type": "->"
},
// ...
] The related code was most recently changed in nextcloud/server@e4ff84d#diff-87af58077888f9b1c961e33eaa933010033b1a3cf494fe9470943a5d8f9d44f7R106 Ideas on the error @skjnldsv? |
Same issue here, while installing a minimal NextCloud instance on a OVH shared hosting. The Web Installer seemed working fine until the end but after the installation completed, the UI lacks most of CSS (curiously, without much errors in the Network panel). To be honest, such minimalist style is quite amusing (I'm honest here, no kidding, I love minimalist UIs with text only), but unfortunately unusable because most of the VUE ui falls outside the viewport and there are no scrolls; moreover menus have no opaque backgrounds, so that when you expand a menu its text overlaps with the text already present in the page. This made me realize that a minimal usable theme should be shipped with NextCloud bundle (or at least the current default theme). Indeed we could install NextCloud on a local network closed to the Internet and the install bundle should be self-contained and usable. As an alternative, if you consider such use case too... "edgy", I suggest to proper document manual installation of a theme (so that one could even workaround the current installation bug). And by the way... thanks for this great piece of software! |
Just got another one |
Just got another one {"reqId":"V8uQqXWq6qlhnaoGaxct","level":3,"time":"2022-11-03T13:26:23-05:00","remoteAddr":"X.X.X.X","user":"admin","app":"index","method":"GET","url":"/apps/photos/api/v1/preview/704672?x=512&y=512","message":"Could not create folder","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","version":"25.0.1.1","exception":{"Exception":"OCP\Files\NotPermittedException","Message":"Could not create folder","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":147,"function":"newFolder","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Storage/Root.php","line":74,"function":"newFolder","class":"OC\Files\AppData\AppData","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":581,"function":"newFolder","class":"OC\Preview\Storage\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":137,"function":"getPreviewFolder","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":114,"function":"generatePreviews","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":185,"function":"getPreview","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/nextcloud/apps/photos/lib/Controller/PreviewController.php","line":162,"function":"getPreview","class":"OC\PreviewManager","type":"->"},{"file":"/var/www/nextcloud/apps/photos/lib/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OCA\Photos\Controller\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"index","class":"OCA\Photos\Controller\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","Line":165,"CustomMessage":"--"},"id":"636408dd77fb9"} |
Same here:
|
Hi: I too am seeing this error - in my case, I am trying to view the contents of folders created under "people" in Photos 2.0, and this error pops up occasionally. The only reason I notice is because the recognize feature as a whole is throwing multiple errors for me and I am trying to track the issues down. I have facial recognition DISABLED right now (since it just doesn't work reliably for me - it's slow and is freezing my browser), but rhe folders it did create are still visible and are changing as I try to access them. My logs are showing multiple entries of this: {"reqId":"UYuxpuqE5waVjYHEmoRr","level":3,"time":"2022-11-06T19:50:57+00:00","remoteAddr":"10.25.231.101","user":"Andrew","app":"index","method":"GET","url":"/index.php/apps/photos/api/v1/preview/6741?x=512&y=512","message":"Could not create folder","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","version":"25.0.1.1","exception":{"Exception":"OCP\Files\NotPermittedException","Message":"Could not create folder","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/AppData/AppData.php","line":147,"function":"newFolder","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/html/lib/private/Preview/Storage/Root.php","line":74,"function":"newFolder","class":"OC\Files\AppData\AppData","type":"->"},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":581,"function":"newFolder","class":"OC\Preview\Storage\Root","type":"->"},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":137,"function":"getPreviewFolder","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/html/lib/private/Preview/Generator.php","line":114,"function":"generatePreviews","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/html/lib/private/PreviewManager.php","line":185,"function":"getPreview","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/html/apps/photos/lib/Controller/PreviewController.php","line":162,"function":"getPreview","class":"OC\PreviewManager","type":"->"},{"file":"/var/www/html/apps/photos/lib/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OCA\Photos\Controller\PreviewController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"index","class":"OCA\Photos\Controller\PreviewController","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/html/lib/base.php","line":1047,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/html/lib/private/Files/Node/Folder.php","Line":165,"CustomMessage":"--"},"id":"6368106026c84"} I have double checked www-data ownership of all my directories, and I have rescanned files. Interestingly, in my case, when I click on the "people" folders (even though I have now turned the feature OFF in settings), the folders are shown but cliking on them does nothing in my browser. However, right-clicking and open-in-new-tab shows me contents, and from time to time, this is where I see these log entries appear. I wish I could nail it down more and be more helpful, but I want to at least report it as I note I am not the only one seeing this error. I have failed to get Recognize to work in any of my dev systems: Ubuntu 20.04 / lxc container THANK YOU for the awesome Nextcloud! Andrew |
Hi, I'm having the same issue. This is a Nextcloud VM running on Proxmox 7.3, recently updated to 25.0.1. [index] Error: OCP\Files\NotPermittedException: Could not create folder at <>
GET /apps/photos/api/v1/preview/101921?x=512&y=512 Please let me know if there is any useful information I can provide, and thank you for the wonderful product Nextcloud is. David |
Same here:
|
Same issue on my NC, hava a clean and new instance with all new setutp, done with c-riegers installation script. {"reqId":"fhoMtiZElgNRQB1cGTb6","level":3,"time":"2022-12-02T09:10:53+01:00","remoteAddr":"217.249.8.103","user":"jan","app":"index","method":"GET","url":"/apps/photos/api/v1/preview/66185?x=512&y=512","message":"Could not create folder","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","version":"25.0.1.1","exception":{"Exception":"OCP\Files\NotPermittedException","Message":"Could not create folder","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":147,"function":"newFolder","class":"OC\Files\Node\Folder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Storage/Root.php","line":74,"function":"newFolder","class":"OC\Files\AppData\AppData","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":581,"function":"newFolder","class":"OC\Preview\Storage\Root","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":137,"function":"getPreviewFolder","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Preview/Generator.php","line":114,"function":"generatePreviews","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/nextcloud/lib/private/PreviewManager.php","line":185,"function":"getPreview","class":"OC\Preview\Generator","type":"->"},{"file":"/var/www/nextcloud/apps/photos/lib/Controller/PreviewController.php","line":162,"function":"getPreview","class":"OC\PreviewManager","type":"->"},{"file":"/var/www/nextcloud/apps/photos/lib/Controller/PreviewController.php","line":128,"function":"fetchPreview","class":"OCA\Photos\Controller\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"index","class":"OCA\Photos\Controller\PreviewController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1047,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","Line":165,"CustomMessage":"--"},"id":"6389b45086970"} |
I'm not sure more stacktraces is what this issue needs 🤔 |
I can add that after moving to phpcgi, disabling PHP-FPM and OPCache, everything worked fine. I'm sorry, but I couldn't find the time to report this info here before or to further investigate it. :-( Basically good old root of all evils... Hope this helps, anyway. |
Still an issue on NC 25.0.3
|
https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html Juste renew the Nextcloud installation, don't forget to renew permission (12. Adjust file ownership and permissions:) and upgrade command. I did do a occ maintenance:repaire too |
Still present on 25.0.4 RC1 |
Anybody got solution for this issue? |
|
Exact same problem. I can delete a folder and files only in the absolute top root directory of my installation. If I make a folder in that location I can delete it. If I make a folder or a file inside that top level folder, I cannot delete them. So: data/folder < can delete Checked my file permissions and everything is fine. Does no one from Nextcloud know why this happens?
|
I got this in a fresh install, first log entry [index] Error: OCP\Files\NotPermittedException: Could not create folder at <>
GET /apps/theming/icon/dashboard?v=b29670c2
|
Hi, I have the same issue here. But it is happening to me only from the mobile phone applications. in fact, at the application error column I can see webdav. If I access to my Nextcloud instance from a browser, on my mobile phone, I can see and manage everything without problems. If anyone has any clue about how to solve this error, it will be more than welcome 🌞 |
Hi, I had the same issue. My issue was with using php-imagick/imagemagick.
Perhaps this solution will be useful to someone. |
As @avsob I found a solution, a different one but it is working to me. My problem is related to the File Access Control. I think the problem was that over the folder I would like to list, it was a folder which I cannot access because the rules defined at access_control plugin.
After this I'm able to work with my folder without any problem. |
The exact same thing happens when I create an user in the admin panel and an error popup comes saying After that, all the subpages within the user page shows the same error when I refresh. The only solution is to delete the user from commandline with Then if I refresh, the subpages of users are shown without error. Still can't figure out the error nor I am finding the error in logs. Again if I try to create an user same things happens., |
Similar errors can be seen on a fresh Nextcloud 28.0.1 installation using the nextcloud:28-apache Docker image. |
For me, it's fixed now. I don't know the reason but it's fixed!! After updating I tested to create a new user from GUI and it's going fine. Before that, I used OCC to create users from the command line and then edit the user from GUI for extra information fields like email, full name, etc. I was using the Debian 11 install script from NextcloudPi and still using the same. |
Bug description
Upgraded to NC25.0.1 RC1 from NC 24.0.6
Steps to reproduce
Upgraded to NC 25.0.1 RC1
Expected behavior
Should not show the error
It was suppose to ge fixed by nextcloud/server#34543
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: