Gallery: JS folder permissions

Nextcloud version: 17
Operating system and version: Ubuntu 18.04
Apache or nginx version: nginx 1.17.7
PHP version: 7.3

The issue you are facing:

Cannot access the gallery, only on the webapp (it works fine (slow as hell but it works :slight_smile: ) on Android but it is normal because the Android app does not need generation of JS files on the fly)

Is this the first time you’ve seen this error?:

Yes, but it is a clean install of the server

Here are my folder rights (I even tried to “touch” the JS file the app was trying to create, but to no avail):

And my nginx conf:

EDIT : limited in uploaded images (but this is www-data)

And finally my php conf:

EDIT : limited in uploaded images (but this is www-data)

Steps to replicate it:

  1. Access the gallery app on the webapp

The output of your Nextcloud log in Admin > Logging:

I have three times the following output every time I try to access the gallery:

[core] Error: OCP\Files\NotPermittedException: No create permission for path at <<closure>>

 0. /usr/share/nginx/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php line 83
 1. /usr/share/nginx/nextcloud/lib/private/Template/JSCombiner.php line 177
 2. /usr/share/nginx/nextcloud/lib/private/Template/JSCombiner.php line 103
    OC\Template\JSCombiner->cache("/usr/share/ngin ... s", "merged.js", OC\Files\SimpleFS\SimpleFolder {})
 3. /usr/share/nginx/nextcloud/lib/private/Template/JSResourceLocator.php line 114
    OC\Template\JSCombiner->process("/usr/share/nginx/nextcloud/apps/gallery", "js/merged.json", "gallery")
 4. /usr/share/nginx/nextcloud/lib/private/Template/JSResourceLocator.php line 101
    OC\Template\JSResourceLocator->cacheAndAppendCombineJsonIfExist("/usr/share/nginx/nextcloud/apps/gallery", "js/merged.json", "gallery")
 5. /usr/share/nginx/nextcloud/lib/private/Template/ResourceLocator.php line 78
 6. /usr/share/nginx/nextcloud/lib/private/TemplateLayout.php line 341
    OC\Template\ResourceLocator->find(["core/js/dist/m ... "])
 7. /usr/share/nginx/nextcloud/lib/private/TemplateLayout.php line 169
    OC\TemplateLayout::findJavascriptFiles(["core/js/dist/m ... "])
 8. /usr/share/nginx/nextcloud/lib/private/legacy/template.php line 183
    OC\TemplateLayout->__construct("error", "")
 9. /usr/share/nginx/nextcloud/lib/private/Template/Base.php line 131
10. /usr/share/nginx/nextcloud/lib/private/legacy/template.php line 332
11. /usr/share/nginx/nextcloud/index.php line 69
    OC_Template::printExceptionErrorPage(OCP\Files\NotPermittedException {}, 500)

GET /apps/gallery/
from by renain at 2020-01-09T10:35:00+00:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Not related

The output of your Apache/nginx/system log in /var/log/____:

Nothing to show here