Opening mail or photo gets NotPermittedException

Hey Guys,

Since I’ve upgraded to Nextcloud 18.03 with PHP7.2 I’m getting: Exception":"OCP\Files\NotPermittedException
It’s kinda annoying because I have no idea to get it fixed.

  • I’ve tried to Chown my complete folder
  • Cmod 755 on the folder
  • editing config.php
  • occ file scans
  • clearing the cache
  • maintenance repair mode

But nothing works, and I have no idea on how to get it fixed.
anyone an idea? Thanks!

Nextcloud version 18.03
Operating system and version: Freenas 11.3 u1 (freebsd jail)
Apache or nginx version: Nginx
PHP version: 7.2

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

Steps to replicate it:

  1. Click mail
  2. Click photo

The output of your Nextcloud log in Admin > Logging:

"GET","url":"/apps/mail/","message":{"Exception":"OCP\\Files\\NotPermittedException","Message":"","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":108,"function":"putContent","class":"OC\\Files\\Node\\File"
"GET","url":"/apps/mail/","message":"Failed to compile and/or save /usr/local/www/nextcloud/apps/mail/css/mail.scss","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0","version":"18.0.3.0"}
"GET","url":"/apps/mail/","message":{"Exception":"OCP\\Files\\NotPermittedException","Message":"","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php","line":108,"function":"putContent","class":"OC\\Files\\Node\\File
"GET","url":"/apps/theming/styles?v=0","message":{"Exception":"OCP\\Files\\NotPermittedException","Message":"","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php"

The output of my config.php file:

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps',
      'url' => '/apps',
      'writable' => true,
    ),
    1 => 
    array (
      'path' => '/usr/local/www/nextcloud/apps-pkg',
      'url' => '/apps-pkg',
      'writable' => true,
    ),
  ),
  'instanceid' => 'oco7o462x190',
  'passwordsalt' => '[REDACTED]',
  'secret' => '[REDACTED]',
  'trusted_domains' => 
  array (
    0 => '192.168.1.195:8282',
    1 => '[REDACTED]',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data/nextclouddata',
  'dbtype' => 'mysql',
  'version' => '18.0.3.0',
  'overwrite.cli.url' => 'http://192.168.1.195:8282',
  'dbname' => 'nc',
  'dbhost' => '[REDACTED]',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => 'true',
  'dbuser' => '[REDACTED]',
  'dbpassword' => '[REDACTED]',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'maintenance' => false,
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '[REDACTED]',
  'mail_domain' => '[REDACTED]',
);

Bump.

Anyone any idea?