Memcache Storage: default cluster (127.0.0.1:11211) non connection

Created on 17 September 2022, about 2 years ago
Updated 15 May 2023, over 1 year ago

Problem/Motivation

D 9.4.5 - Php 7.4.2 - Memcached 3.1.5
I'm trying to test the simply Memcached local config with MAMP PRO but as soon as I enter in settings.php

$settings['cache']['default'] = 'cache.backend.memcache_storage';

I get these this status error "Memcache Storage: default cluster (127.0.0.1:11211) non connection" and watchdog errors

Warning: Invalid argument supplied for foreach() in /Users/Reportec/mampsites/D9/945memcached/modules/memcache_storage/src/DrupalMemcachedBase.php on line 164

Warning: sizeof(): Parameter must be an array or an object that implements Countable in /Users/Reportec/mampsites/D9/945memcached/modules/memcache_storage/src/DrupalMemcachedBase.php on line 174

Warning: Invalid argument supplied for foreach() in /Users/Reportec/mampsites/D9/945memcached/modules/memcache_storage/src/DrupalMemcached.php on line 177

Warning: Memcached::setMulti(): failed to set key memcache_storage_bin_indexes in /Users/Reportec/mampsites/D9/945memcached/modules/memcache_storage/src/DrupalMemcached.php on line 136

Warning: Invalid argument supplied for foreach() in /Users/Reportec/mampsites/D9/945memcached/modules/memcache_storage/src/DrupalMemcached.php on line 177

Warning: Memcached::setMulti(): failed to set key cache_config1-system.logging in /Users/Reportec/mampsites/D9/945memcached/modules/memcache_storage/src/DrupalMemcached.php on line 136

Note that I also use MAMP PRO for Redis (which has more or less the same kind of configuration in settings.php) and it works very well.
What could be the problem?
Thanks for your help

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy senzaesclusiva

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States sunset_bill

    I get the same warnings from memcache_storage.install() in Docker on my local. It looks like the problem is that memcached isn't running, so memcache_storage doesn't get a connection, which leads to other problems.

Production build 0.71.5 2024