OPcache api is restricted by "restrcit_api" (shared OVH hosting

Summary of the issue you are facing:

The log is full of messages like:

Zend OPcache API is restricted by "restrict_api" configuration directive at /xxxxx/cloud/lib/private/Config.php#186"

The web interface and most of the apps are not working properly. The synchronization works.

Steps to replicate it (hint: details matter!):

  1. install 30.0.0 from archive
  2. upgrade to 30.0.5 (or 30.0.6)

Log entries

Zend OPcache API is restricted by "restrict_api" configuration directive at /xxxxx/cloud/lib/private/Config.php#186"

Configuration

Nextcloud


<?php
$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx',
  'trusted_domains' => 
  array (
    0 => 'xxxx,
  ),
  'datadirectory' => '/xxxxx/cloud/data',
  'dbtype' => 'mysql',
  'version' => '30.0.6.2',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://xxx',
  'dbname' => 'xxxx',
  'dbhost' => 'xxxxxxnextcloud.mysql.db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxxxx',
  'dbpassword' => 'xxxxxx',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
);

Have/Can you configure opcache?

Unfortunately, no.

You can check if opcache is enabled via phpinfo();

Create a file with just this content:

<?php phpinfo(); ?>
and save it (ie info.php)

Go to https://yourwebiste.tld/info.php (assuming this is the right path to your file) and check if opcache is enabled. (Probably it is)

Are you on a shared hosting?