Storage wrapper 'sharepermissions' was not registered via the 'OC_Filesystem' Woke up and a ISE

Nextcloud version (eg, 20.0.5): 20.0.4.0
Operating system and version (eg, Ubuntu 20.04): Linux mail.sturtz.cf 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Apache or nginx version (eg, Apache 2.4.25): Server version: Apache/2.4.41 (Ubuntu) Server built: 2020-08-12T19:46:17
PHP version (eg, 7.4): PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )

The issue you are facing:
I am getting a Internal Server error on my Web front,


I moved from /var/www/nextcloud to /home/cloud and switched from Nginx to Apache2, it was working when I went to sleep and when I woke up it was like this.
Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Switch from Nginx to Apache2
  2. Move from /var/www/nextcloud to /home/nextcloud
  3. Sleep

The output of your Nextcloud log in Admin > Logging:

{"reqId":"WTu4XDTb9NtBLrrPFbvG","level":3,"time":"2021-03-02T14:15:27+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"20.0.4.0"}
{"reqId":"x3ec6NF8LqLR4nNAvQyO","level":2,"time":"2021-03-02T14:20:02+00:00","remoteAddr":"","user":"--","app":"filesystem","method":"","url":"--","message":"Storage wrapper 'sharepermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.","userAgent":"--","version":"20.0.4.0"}
{"reqId":"x3ec6NF8LqLR4nNAvQyO","level":3,"time":"2021-03-02T14:20:37+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"20.0.4.0"}
{"reqId":"aO9EEmz2d5vb9v7vuCtF","level":2,"time":"2021-03-02T14:25:02+00:00","remoteAddr":"","user":"--","app":"filesystem","method":"","url":"--","message":"Storage wrapper 'sharepermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.","userAgent":"--","version":"20.0.4.0"}
{"reqId":"aO9EEmz2d5vb9v7vuCtF","level":3,"time":"2021-03-02T14:25:39+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"20.0.4.0"}
{"reqId":"hjUUcog3olmwAGnXDSpE","level":2,"time":"2021-03-02T14:30:02+00:00","remoteAddr":"","user":"--","app":"filesystem","method":"","url":"--","message":"Storage wrapper 'sharepermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.","userAgent":"--","version":"20.0.4.0"}
{"reqId":"hjUUcog3olmwAGnXDSpE","level":3,"time":"2021-03-02T14:30:41+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"20.0.4.0"}
{"reqId":"afmC9qhOyRFEH9bSiJU6","level":2,"time":"2021-03-02T14:35:04+00:00","remoteAddr":"","user":"--","app":"filesystem","method":"","url":"--","message":"Storage wrapper 'sharepermissions' was not registered via the 'OC_Filesystem - preSetup' hook which could cause potential problems.","userAgent":"--","version":"20.0.4.0"}
{"reqId":"afmC9qhOyRFEH9bSiJU6","level":3,"time":"2021-03-02T14:36:04+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"20.0.4.0"}
{"reqId":"EDs0G0RnXhTYh2mkIdaZ","level":3,"time":"2021-03-02T14:40:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18","userAgent":"--","version":"20.0.4.0"}

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

<?php
$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => 'cloud.sturtz.cf',
  ),
  'datadirectory' => '/data',
  'debug' => true,
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'dbname' => '***',
  'dbhost' => '***',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '***',
  'dbpassword' => '***',
  'installed' => true,
  'overwrite.cli.url' => 'https://cloud.sturtz.cf/',
  'htaccess.RewriteBase' => '/',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'no.reply',
  'mail_domain' => 'sturtz.cf',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mail.sturtz.cf',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'no.reply@sturtz.cf',
  'mail_smtppassword' => '***',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

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

[Tue Mar 02 08:47:09.202065 2021] [fcgid:warn] [pid 2396927] [client 192.168.1.1:49557] mod_fcgid: stderr: {"reqId":"AhD2TIJytR4dw7EeWbze","level":3,"time":"2021-03-02T14:47:09+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"touch(): Utime failed: Permission denied at /home/cloud/public_html/lib/private/Config.php#242","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":242,"function":"touch"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:09.202131 2021] [fcgid:warn] [pid 2396927] [client 192.168.1.1:49557] mod_fcgid: stderr: {"reqId":"AhD2TIJytR4dw7EeWbze","level":3,"time":"2021-03-02T14:47:09+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"fopen(/home/cloud/public_html/config/config.php): failed to open stream: Permission denied at /home/cloud/public_html/lib/private/Config.php#243","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":243,"function":"fopen"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:09.202155 2021] [fcgid:warn] [pid 2396927] [client 192.168.1.1:49557] mod_fcgid: stderr: {"reqId":"AhD2TIJytR4dw7EeWbze","level":3,"time":"2021-03-02T14:47:09+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"chmod(): Operation not permitted at /home/cloud/public_html/lib/private/Config.php#246","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":246,"function":"chmod"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:09.202185 2021] [fcgid:warn] [pid 2396927] [client 192.168.1.1:49557] mod_fcgid: stderr: {"reqId":"AhD2TIJytR4dw7EeWbze","level":3,"time":"2021-03-02T14:47:09+00:00","remoteAddr":"192.168.1.1","user":"--","app":"remote","method":"GET","url":"/status.php","message":{"Exception":"OC\\\\HintException","Message":"Can't write into config directory!","Code":0,"Trace":[{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Config.php","Line":250,"Hint":"This can usually be fixed by giving the webserver write access to the config directory.","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:09.202205 2021] [fcgid:warn] [pid 2396927] [client 192.168.1.1:49557] mod_fcgid: stderr: {"reqId":"AhD2TIJytR4dw7EeWbze","level":3,"time":"2021-03-02T14:47:09+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":"fopen(/home/cloud/public_html/data/nextcloud.log): failed to open stream: Permission denied at /home/cloud/public_html/lib/private/Log/File.php#85","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:41.200353 2021] [fcgid:warn] [pid 2396885] [client 192.168.1.1:49559] mod_fcgid: stderr: {"reqId":"sxdggbD9Un25lG2xr5ne","level":3,"time":"2021-03-02T14:47:41+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"touch(): Utime failed: Permission denied at /home/cloud/public_html/lib/private/Config.php#242","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":242,"function":"touch"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:41.200427 2021] [fcgid:warn] [pid 2396885] [client 192.168.1.1:49559] mod_fcgid: stderr: {"reqId":"sxdggbD9Un25lG2xr5ne","level":3,"time":"2021-03-02T14:47:41+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"fopen(/home/cloud/public_html/config/config.php): failed to open stream: Permission denied at /home/cloud/public_html/lib/private/Config.php#243","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":243,"function":"fopen"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:41.200457 2021] [fcgid:warn] [pid 2396885] [client 192.168.1.1:49559] mod_fcgid: stderr: {"reqId":"sxdggbD9Un25lG2xr5ne","level":3,"time":"2021-03-02T14:47:41+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"chmod(): Operation not permitted at /home/cloud/public_html/lib/private/Config.php#246","Code":0,"Trace":[{"function":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":246,"function":"chmod"},{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:41.200472 2021] [fcgid:warn] [pid 2396885] [client 192.168.1.1:49559] mod_fcgid: stderr: {"reqId":"sxdggbD9Un25lG2xr5ne","level":3,"time":"2021-03-02T14:47:41+00:00","remoteAddr":"192.168.1.1","user":"--","app":"remote","method":"GET","url":"/status.php","message":{"Exception":"OC\\\\HintException","Message":"Can't write into config directory!","Code":0,"Trace":[{"file":"/home/cloud/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/cloud/public_html/lib/private/legacy/OC_Util.php","line":1168,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/cloud/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":649,"function":"initSession","class":"OC","type":"::"},{"file":"/home/cloud/public_html/lib/base.php","line":1091,"function":"init","class":"OC","type":"::"},{"file":"/home/cloud/public_html/status.php","line":37,"args":["/home/cloud/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/cloud/public_html/lib/private/Config.php","Line":250,"Hint":"This can usually be fixed by giving the webserver write access to the config directory.","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}
[Tue Mar 02 08:47:41.200490 2021] [fcgid:warn] [pid 2396885] [client 192.168.1.1:49559] mod_fcgid: stderr: {"reqId":"sxdggbD9Un25lG2xr5ne","level":3,"time":"2021-03-02T14:47:41+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"/status.php","message":"fopen(/home/cloud/public_html/data/nextcloud.log): failed to open stream: Permission denied at /home/cloud/public_html/lib/private/Log/File.php#85","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.1.1git (build 4316) (Nextcloud)","version":""}