No memory cache has been configured error

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.3
Operating system and version (eg, Ubuntu 20.04): replace me
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 7.3

The issue you are facing:
'No memory cache has been configured '- I cannot resolve this error.
I have installed Nextcloud through Softaculous on shared hosting with cpanel.

Is this the first time you’ve seen this error? (Y/N): Y

In PHP Selector -PHP Extensions 7.3(current) I have Agpu ticked on.

Config.php : I have added the following line

‘memcache.local’ => ‘\OC\Memcache\APCu’,

php.ini : I have added the following

opcache.enable=1
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=10000
opcache.memory_consumption=256
opcache.save_comments=1
opcache.revalidate_freq=1
allow_url_fopen = Off
allow_url_include = Off
enable_dl = Off
file_uploads = On

What am I missing here?
Thanks.

‘trusted_domains’ =>
array (
0 => ‘nextcloud.barkingbandicoot.com’,
),
‘datadirectory’ => ‘/home/barkingb/nextclouddata23’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘23.0.3.2’,
‘overwrite.cli.url’ => ‘https://nextcloud.barkingbandicoot.com’,
‘dbname’ => ‘barkingb_next680’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘barkingb_next680’,
‘dbpassword’ => ‘’,
‘installed’ => true,
‘mysql.utf8mb4’ => true,
‘maintenance’ => false,
‘memcache.local’ => ‘\OC\Memcache\APCu’,

[Nextcloud Hub II (23.0.3)

Upon resfresh I am also now getting:

The OPcache interned strings buffer is nearly full. To assure that repeating strings can be effectively cached, it is recommended to apply opcache.interned_strings_buffer to your PHP configuration with a value higher than 8

Hi @anarcho-taoist,
You are missing the rest of the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to better help you! Thanks.

I added the config.php but I really do not know how to get the other info!
The output of your Nextcloud log in Admin > Logging: - which one???

[index] Error: Undefined constant ‘STDIN’ in file ‘/home/user/example.com/3rdparty/symfony/console/Helper/QuestionHelper.php’ line 108

POST /index.php/apps/occweb/cmd
from 89.44.10.185 by taoist at 2022-04-22T04:59:31+00:00

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

Output errors in nextcloud.log in /var/www/
``` I cannot see a www file in var! ??

Error log
https://pastebin.com/8sYP3KH9

[19-Apr-2022 11:45:52 UTC] PHP Fatal error: Uncaught Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1203] User user already has more than ‘max_user_connections’ active connections in /home/user/example.com/lib/private/DB/Connection.php:87


Thanks! Sorry for my noob inexperience and lack of knowledge.

Which php modules do you have enabled?

You can search for the generic parts of your errors against the forum and greater internet. There are a lot of related support posts which have been answered.

https://help.nextcloud.com/search?q=PHP%20Fatal%20error:%20Uncaught%20Doctrine%5CDBAL%5CException:%20Failed%20to%20connect%20to%20the%20database:%20An%20exception%20occurred%20in%20the%20driver:%20SQLSTATE