Internal Server Error on Nextcloud Bitnami Nginx

Hi everyone. I’m trying to migrate my Nextcloud repository to a new server with Nginx and Bitnami (Debian OS). However, I’m getting an Internal Server error on the front end, and the following error is showing up in the server log.

2023/08/31 15:29:04 [error] 153546#153546: *12482 FastCGI sent in stderr: “PHP message: [nextcloud][index][3] {“reqId”:“PRbm3Y5CNqzd9wEdh6BR”,“level”:3,“time”:“2023-08-31T15:29:04+00:00”,“remoteAddr”:“206.0.244.141”,“user”:”–“,“app”:“index”,“method”:“GET”,“url”:”/favicon.ico",“message”:“{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create folder \"/appdata_oc3ivyrz5dv7/theming/global\"","Code":0,"Trace":[{"file":"/opt/bitnami/nextcloud/lib/private/Files/AppData/AppData.php","line":147,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":" → "},{"file":"/opt/bitnami/nextcloud/apps/theming/lib/ImageManager.php","line":383,"function":"newFolder","class":"OC\\Files\\AppData\\AppData","type":" → "},{"file":"/opt/bitnami/nextcloud/apps/theming/lib/ImageManager.php","line":118,"function":"getRootFolder","class":"OCA\\Theming\\ImageManager","type":" → "},{"file":"/opt/bitnami/nextcloud/apps/theming/lib/ThemingDefaults.php","line":420,"function":"getImage",…; PHP message: [nextcloud][core][3] {“reqId”:“PRbm3Y5CNqzd9wEdh6BR”,“level”:3,“time”:“2023-08-31T15:29:04+00:00”,“remoteAddr”:“206.0.244.141”,“user”:”–“,“app”:“core”,“method”:“GET”,“url”:”/favicon.ico",“message”:"{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create folder \"/appdata_oc3ivyrz5dv7/theming/global\"","Code":0,"Trace":[{"file":"/opt/bitnami/nextcloud/lib/private/Files/AppData/AppData.php","line":147,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":" → "},{"file":"/opt/bitnami/nextcloud/apps/theming/lib/ImageManager.php","line":383,"function":"newFolder","class":"OC\\Files\\AppData\\AppData","type":" → "},{"file":"/opt/bitnami/nextcloud/apps/theming/lib/ImageManager.php","line":118,"function":"getRootFolder","class":"OCA\\Theming\\ImageManager","type":" → "},{"file":"/opt/bitnami/nextcloud/apps/th

I have configured the permissions of the Nextcloud folder as Bitnami suggests in their documentation bitnami:daemon for user and group, 775 for folders, and 664 for files.

can anyone help me please?

Hi @Franklin_Lugo

Since they are obviously using some custom configuration to setup nginx its hard to say without knowing exatley how everything is configured from their side. You would probably be better of with a standard Debian or Ubuntu image and setting up the LEMP stack by yourself, or if you don’t want do the heavy lifting you could use Nextcloud-AIO or the Nextcloud VM.

However, in general the permissions seem to be ok, or even more than necessary. I have set 750 for directories and 640 for files on a standard Ubuntu.