Fehlermeldung : RedisException Permission denied issue while running UpdateSingleMetadata (Ubuntu)

Hallo zusammen,

ich bin gerade von Nextcloud Snap auf eine LAMP-Installation von Nextcloud umgestiegen. Die gelben Fehlermeldungen nach der Installation konnte ich bereits erfolgreich beheben. Allerdings habe ich jetzt ein Problem. In meinem Log tauchen immer wieder folgende Fehlermeldungen auf (siehe Screenshot).

Ich nutze Nextcloud über den Nginx Proxy Manager, und grundsätzlich funktioniert alles reibungslos. Allerdings würde ich gerne diese nervigen Fehlermeldungen loswerden. Hat jemand einen Tipp, wie ich das Problem beheben kann? Nutze Nextcloud 9.

Meine PHP datei:

<?php $CONFIG = array ( 'instanceid' => 'ocehj5b4z8c1', 'passwordsalt' => 'XXX', 'secret' => 'XXX', 'trusted_domains' => array ( 0 => 'XXX', 1 => 'XXX', 2 => 'localhost', ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '30.0.0.14', 'overwrite.cli.url' => 'https://XXX', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextXXX', 'dbpassword' => 'XXX, 'installed' => true, 'default_language' => 'de', 'default_locale' => 'de_DE', 'default_phone_region' => 'DE', 'maintenance' => false, 'memcache.local' => '\\OC\\Memcache\\APCu', 'apc.enable_cli' => 1, 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '/run/redis/redis-server.sock', 'port' => 0, 'timeout' => 0.0, ), 'trusted_proxies' => array ( 0 => '192.XXX', ), 'maintenance_window_start' => 3, 'mail_smtpmode' => 'smtp', 'mail_smtpauth' => 1, 'mail_sendmailmode' => 'smtp', 'mail_smtphost' => 'smtp.mail.me.com', 'mail_smtpport' => '587', 'mail_from_address' => 'XXX', 'mail_domain' => 'icloud.com', 'mail_smtpname' => 'XXX', 'mail_smtppassword' => 'XXX', ); Hier die Anleitung wie ich nextcloud installiert habe: Getting ready sudo apt update && sudo apt upgrade -y sudo apt install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades Install packages Different versions of Ubuntu may have differing versions of PHP, for example Ubuntu 22.04 ships PHP 8.1, which is not the currently recommended version by Nextcloud. Nextcloud currently recommends PHP 8.2. Adding optional repositories to apt's sources (e.g. Sury's ppa for Ubuntu or dpa for Debian) is beyond the scope of this tutorial, and will require modifying the name of libapache2-mod-php and all php modules to include the specific version number, e.g. libapache2-mod-php8.2 php8.2-apcu php8.2-bcmat and so on.I think it is simpler to use the Ubuntu PHP version, but adding a PPA is also not that hard. The choice is yours :) In this tutorial we will use the included PHP packages from Ubuntu. While 8.1 is not recommended, it is still currently supported by Nextcloud. For up to date system requirements, please visit Nextcloud admin manual We install all the software that is needed plus some optional software so we won't get warnings in the Nextcloud Admin Center. sudo apt install apache2 \ bzip2 \ exif \ imagemagick \ mariadb-server \ redis-server Install all php modules. sudo apt install libapache2-mod-php \ php-apcu \ php-bcmath \ php-bz2 \ php-ctype \ php-curl \ php-dom \ php-gd \ php-gmp \ php-imagick \ php-intl \ php-mbstring \ php-mysql \ php-posix \ php-redis \ php-xml \ php-zip MariaDB Change the MariaDB settings to the recommended READ-COMITTED and binlog format ROW. sudo nano /etc/mysql/conf.d/nextcloud.cnf insert [mysqld] transaction_isolation = READ-COMMITTED binlog_format = ROW exit and save. Reload mariadb sudo systemctl restart mariadb.service Secure MariaDB. Insert a root password, otherwise just use the defaults by pressing enter. sudo mariadb-secure-installation Create the database sudo mariadb You should now see "MariaDB [(none)]>" Check if the tx_isolation is "READ-COMITTED" and if binlog_format is "ROW". SELECT @@global.tx_isolation; SELECT @@global.binlog_format; If everything looks good, we can continue. Insert this to create a database called nextcloud. Replace all three x_ variables with your data. CREATE USER 'x_database_user'@'localhost' IDENTIFIED BY 'x_database_password'; CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; GRANT ALL PRIVILEGES ON nextcloud.* TO 'x_database_user'@'localhost'; FLUSH PRIVILEGES; exit; You should see 3 times a "Query OK" line and a "Bye" at the end. Nextcloud Download Nextcloud wget https://download.nextcloud.com/server/releases/latest.tar.bz2 wget https://download.nextcloud.com/server/releases/latest.tar.bz2.asc wget https://download.nextcloud.com/server/releases/latest.tar.bz2.md5 wget https://nextcloud.com/nextcloud.asc gpg --import nextcloud.asc verify md5sum -c latest.tar.bz2.md5 < latest.tar.bz2 and gpg --verify latest.tar.bz2.asc latest.tar.bz2 extract and move to the webroot. Change ownership and delete install files tar -xjvf latest.tar.bz2 sudo cp -r nextcloud /var/www sudo chown -R www-data:www-data /var/www/nextcloud rm -r nextcloud rm latest.tar.bz2 latest.tar.bz2.asc latest.tar.bz2.md5 nextcloud.asc PHP settings We wanna change the PHP memory limit and upload filesize. Replace 8.1 if you have a newer version of PHP. sudo nano /etc/php/8.1/apache2/php.ini We search for these settings to change (use ctrl+W to search in nano). memory_limit = 1G upload_max_filesize = 50G post_max_size = 0 max_execution_time = 3600 date.timezone = Europe/Amsterdam opcache.interned_strings_buffer=16 Save and exit. Reload apache2 sudo systemctl reload apache2.service create a PHP file so we can check the changes sudo nano /var/www/html/phpinfo.php and insert <?php phpinfo(); ?>

Now can see the default Apache2 page at http://x_nextcloud_host_IPv4. To see the PHP settings go to http://x_nextcloud_host_IPv4/phpinfo.php You should find the values we defined. To disable that page and delete the html folder, run

sudo a2dissite 000-default.conf
sudo systemctl reload apache2
sudo rm -r /var/www/html
Apache2
Create the data folder. You can also use a different location. Just make sure to replace /var/www/nextcloud/data everywhere with your data path.

sudo mkdir /var/www/nextcloud/data
sudo chown -R www-data:www-data /var/www/nextcloud/data
Configure Apache2

sudo nano /etc/apache2/sites-available/nextcloud.conf
insert:

<VirtualHost *:80>
DocumentRoot /var/www/nextcloud/
ServerName cloud.x_youromain.com

<Directory /var/www/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews

<IfModule mod_dav.c>
  Dav off
</IfModule>
Enable site and mods:

sudo a2ensite nextcloud.conf
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod env
sudo a2enmod dir
sudo a2enmod mime
sudo service apache2 restart


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.