Nextcloud recommends memcache which is running

Nextcloud version (eg, 29.0.5): Nextcloud Hub 8 (29.0.7)
Operating system and version (eg, Ubuntu 24.04): FreeBSD 13
Apache or nginx version (eg, Apache 2.4.25): nginx version: nginx/1.26.1
PHP version (eg, 8.3): PHP 8.2.21 (fpm-fcgi) (built: Sep 5 2024 02:15:41)

The issue you are facing:

The database is used for transactional file locking. To enhance performance, please configure memcache, if available.

Wordpress uses the same caching system (Redis) without issue.

I have used the same syntax as used with Wordpress and still get the same error message.

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

Steps to replicate it:

  1. log in
  2. look at Nextcloud admin page
  3. there is no 3rd step

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

 'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
    'host' => '/tmp/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),

this is what Wordpress uses that still fails:

  'redis' =>
  array (
    'host' => '127.0.0.1:11211',
    'timeout' => 0.0,
  ),

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

no errors other than what's on the admin page

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

no errors other than what's on the admin page

Could you take a look at your php-ini. If you haven’t activated it yet, then run this occ command:

occ config:app:set --value=yes serverinfo phpinfo

Then go to

  • https://cloud.domain.tld/apps/serverinfo/phpinfo

and look at the values ​​for:

directive ideal value
redis.session.lock_expire 0
redis.session.lock_retries -1
redis.session.lock_wait_time 10000
redis.session.locking_enabled 1

Much and good luck,
ernolf

blank screen, no info, not even in source.

How should I understand this? Where is a blank screen?


ernolf

I can create a phpinfo page but it doesn’t display any information about Redis. As I said earlier, Redis is running and Wordpress is using it. phpinfo also notes that memcache is enabled and running.

If I use console to display the HTTP headers, I get

:status: 404 Content-Type: text/html; charset=UTF-8 Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-VmJGdnU1ZjUxckZwTlMyLzkra2gzbFZEZjQ5RVNVb1dZSDI3bFJXZEdWMD06WThRKzFxUzY0SWxHUTJMT3I0ZG9yemNGUnYwR0R5QmRJemJpcEhHcklHUT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self'; X-XSS-Protection: 1; mode=block Content-Encoding: gzip Referrer-Policy: no-referrer Location: https://cloud.paulbeard.org/ Date: Mon, 30 Sep 2024 18:23:46 GMT X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN x-powered-by: PHP/8.2.21 Server: nginx/1.26.1 x-permitted-cross-domain-policies: none x-robots-tag: noindex, nofollow Strict-Transport-Security: max-age=15552000; includeSubDomains

This is in blatant contradiction.

This can only be explained by different PHP versions running side by side.

Since you are on FreeBSD, I assume you know your stuff, otherwise you would not have chosen FreeBSD but a more common operating system like Debian or Ubuntu. For the latter, I have created a special script that fixes such errors, but for experts who choose FreeBSD, this should be a small thing.

What is the output of

pkg info | grep php

ernolf

If you don’t know the answer, there is no shame in simply ignoring it and moving on. This is not a university exam.

Interesting that you assert that running nextcloud on freeBSD is an “error.” I wasn’t aware that FreeBSD was not a supported OS. It is in the FreeBSD ports collection as source and as a package, if you want to talk about “blatant contradictions.”

Here is the requested command output. I see one version of php installed. The fact that nextcloud cannot connect to Redis on either a socket or via the name numbered port seems to a bigger problem than my choice of OS.

php82-8.2.21                   PHP Scripting Language (8.2.X branch)
php82-bcmath-8.2.21            The bcmath shared extension for php
php82-bz2-8.2.21               The bz2 shared extension for php
php82-ctype-8.2.21             The ctype shared extension for php
php82-curl-8.2.21              The curl shared extension for php
php82-dom-8.2.21               The dom shared extension for php
php82-exif-8.2.21              The exif shared extension for php
php82-extensions-1.0           "meta-port" to install PHP extensions
php82-fileinfo-8.2.21          The fileinfo shared extension for php
php82-filter-8.2.21            The filter shared extension for php
php82-ftp-8.2.21               The ftp shared extension for php
php82-gd-8.2.21                The gd shared extension for php
php82-gettext-8.2.21           The gettext shared extension for php
php82-gmp-8.2.21               The gmp shared extension for php
php82-iconv-8.2.21             The iconv shared extension for php
php82-intl-8.2.21              The intl shared extension for php
php82-ldap-8.2.21              The ldap shared extension for php
php82-mbstring-8.2.21          The mbstring shared extension for php
php82-mysqli-8.2.21            The mysqli shared extension for php
php82-opcache-8.2.21           The opcache shared extension for php
php82-pcntl-8.2.21             The pcntl shared extension for php
php82-pdo-8.2.21               The pdo shared extension for php
php82-pdo_mysql-8.2.21         The pdo_mysql shared extension for php
php82-pdo_sqlite-8.2.21        The pdo_sqlite shared extension for php
php82-pecl-APCu-5.1.23         APC User Caching
php82-pecl-imagick-3.7.0_4     PHP wrapper to the ImageMagick/GraphicsMagick library
php82-pecl-memcache-8.2        Memcached extension
php82-pecl-memcached-3.2.0     PHP extension for interfacing with memcached via libmemcached library
php82-phar-8.2.21              The phar shared extension for php
php82-posix-8.2.21             The posix shared extension for php
php82-readline-8.2.21          The readline shared extension for php
php82-session-8.2.21           The session shared extension for php
php82-simplexml-8.2.21         The simplexml shared extension for php
php82-snmp-8.2.21              The snmp shared extension for php
php82-sockets-8.2.21           The sockets shared extension for php
php82-sodium-8.2.21            The sodium shared extension for php
php82-sqlite3-8.2.21           The sqlite3 shared extension for php
php82-sysvsem-8.2.21           The sysvsem shared extension for php
php82-tidy-8.2.21              The tidy shared extension for php
php82-tokenizer-8.2.21         The tokenizer shared extension for php
php82-xml-8.2.21               The xml shared extension for php
php82-xmlreader-8.2.21         The xmlreader shared extension for php
php82-xmlwriter-8.2.21         The xmlwriter shared extension for php
php82-xsl-8.2.21               The xsl shared extension for php
php82-zip-8.2.21               The zip shared extension for php
php82-zlib-8.2.21              The zlib shared extension for php

/muted

Exactly what I thought and what your php info said: the php-redis module is not installed. So it can’t work.

Redis may be installed but the question remains how your WordPress interacts with Redis. There is only one way WordPress can interact with Redis and that is via PHP. So your Redis definitely won’t work with WordPress.


Much and good luck,
ernolf

But you write in the title here that you know it works ("which is running"), but it doesn’t work. As you said, it’s not a university exam, so it would be nice if you could give precise information. So not just “blank screen” as an answer.

I have never claimed that and have never even hinted at it.
Compared to Ubuntu or Debian, FreeBSD is more of an operating system for advanced users. Anyone who chooses it knows from the start that they have to be more familiar with it.

What made you come to that conclusion? FreeBSD is fully supported!

The “blatant contradiction” was your claims that Redis works with WordPress but it obviously cannot work because the PHP module is not installed.


Much and good luck,
ernolf