PHP - memcache randomly fails with - Cannot assign requested address (99)

Martin Perry

I have changed my caching system (it is using more caching) and switched to PHP 7.1. Now from time to time (approx. 1 run out of 5) I got this error with memcache:

Notice: Memcache::connect(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Cannot assign requested address (99) 

Warning: Memcache::connect(): Can't connect to 127.0.0.1:11211, Cannot assign requested address (99) 

What is causing this and why only sometimes? So far I have no problem witch this and on localhost, all is running OK as well.

Bryan

The error can mean that you have opened and closed connections so quickly that TCP has no more available ports to create the next connection.

See if your memcached client has a setting to "pool" connections so they stay open.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

socket.error:[errno 99] cannot assign requested address and namespace in python

gin-gonic cannot assign requested address

bind: cannot assign requested address on UDPclient in local network

RedisInsight on Docker and Redis on Docker: Could not connect: Error 99 connecting to localhost:6379. Cannot assign requested address

Netty SocketIO - Cannot assign requested address in AWS

Flask, cannot assign requested address

requests, cannot assign requested address, out of ports?

Docker for Windows: cannot assign requested address

Cannot connect to redis://localhost:6379/0: Error 99 connecting to localhost:6379. Cannot assign requested address

OSError: [Errno 99] Cannot assign requested address

Server binding results in error "Cannot assign requested address"?

Akka, sending Udp fails with "Can't assign requested address"

socket.error:[errno 99] cannot assign requested address : flask and python

MongoDB Replica Set setup is giving - SocketException: Cannot assign requested address

CentOS8 nginx: [emerg] bind() failed (99: Cannot assign requested address)

Docker + django_extensions + jupyter: OSError: [Errno 99] Cannot assign requested address

Connecting to dotnet.testcontainer within docker build fails with messae "Cannot assign requested address /var/run/docker.sock"

Cannot assign requested address (when using Docker)

Bind error (99): Cannot assign requested address

Set MAC address fails - RTNETLINK answers: Cannot assign requested address

Mesos bind error : Cannot assign requested address [99]

How to fix 'Cannot assign requested address?'

Raspberry Pi TCP socket - [Errno 99] Cannot assign requested address

Nginx on Kubernetes (99: Cannot assign requested address)

redis.exceptions.ConnectionError: Error 99 connecting to localhost:6379. Cannot assign requested address

Docker Cannot assign requested address

Errno 99 - Cannot assign requested address

"Cannot assign requested address" when trying to set TUN interface netmask

Cannot Assign requested Address in AWS - JAVA Server Socket