Just did a clean install of Nextcloud Hub 7, version 28.0.0. The operating system is Ubuntu 22.04.
The log contains an error (see below for details of the error) about not being able to create the folder “/appdata_oc8cx6pd41te/theming/global”. I looked, the folder, /var/www/nextcloud/data/appdata_oc8cx6pd41te/theming/global, does exists. It also contains a subfolder “0”, which contains two files, “favIcon-settings#0082c9” and “touchIcon-settings#0082c9”.
The owner:group of the folders/files are all www-data:www-data.
It appears to be an incorrect error message. Like the code didn’t check for the existence of the folder before actually trying to create the folder.
NotPermittedException Could not create folder "/appdata_oc8cx6pd41te/theming/global"
1. /var/www/nextcloud/lib/private/Files/AppData/AppData.phpline 147
OC\Files\Node\Folder->newFolder()
2. /var/www/nextcloud/apps/theming/lib/ImageManager.phpline 367
OC\Files\AppData\AppData->newFolder()
3. /var/www/nextcloud/apps/theming/lib/ImageManager.phpline 101
OCA\Theming\ImageManager->getRootFolder()
4. /var/www/nextcloud/apps/theming/lib/Controller/IconController.phpline 127
OCA\Theming\ImageManager->getImage()
5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.phpline 230
OCA\Theming\Controller\IconController->getFavicon()
6. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.phpline 137
OC\AppFramework\Http\Dispatcher->executeController()
7. /var/www/nextcloud/lib/private/AppFramework/App.phpline 184
OC\AppFramework\Http\Dispatcher->dispatch()
8. /var/www/nextcloud/lib/private/Route/Router.phpline 315
OC\AppFramework\App::main()
9. /var/www/nextcloud/lib/base.phpline 1069
OC\Route\Router->match()
10. /var/www/nextcloud/index.phpline 39
OC::handleRequest()
"reqId": "47VIjPNHlT1oplqj77Jc",
"level": 3,
"time": "2023-12-20T17:03:40+00:00",
"remoteAddr": "24.120.45.84",
"user": "richard",
"app": "index",
"method": "GET",
"url": "/apps/theming/favicon/settings?v=be06caec",
"message": "Could not create folder \"/appdata_oc8cx6pd41te/theming/global\"",
"userAgent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
"version": "28.0.0.11",
"exception": {
"Exception": "OCP\\Files\\NotPermittedException",
"Message": "Could not create folder \"/appdata_oc8cx6pd41te/theming/global\"",
"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/apps/theming/lib/ImageManager.php",
"line": 367,
"function": "newFolder",
"class": "OC\\Files\\AppData\\AppData",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/theming/lib/ImageManager.php",
"line": 101,
"function": "getRootFolder",
"class": "OCA\\Theming\\ImageManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/theming/lib/Controller/IconController.php",
"line": 127,
"function": "getImage",
"class": "OCA\\Theming\\ImageManager",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 230,
"function": "getFavicon",
"class": "OCA\\Theming\\Controller\\IconController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 137,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 184,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 315,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 1069,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 39,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/Files/Node/Folder.php",
"Line": 162,
"message": "Could not create folder \"/appdata_oc8cx6pd41te/theming/global\"",
"exception": [],
"CustomMessage": "Could not create folder \"/appdata_oc8cx6pd41te/theming/global\""
},
"id": "65831f209a950"
}