Aerospike Bug Report: ASLD Timeout Issue
Summary
ASLD (Aerospike Link Daemon) v0.1.0 consistently times out when attempting to connect to Aerospike server, regardless of server version.
Environment
- ASLD Version: 0.1.0 (from Aerospike PHP Client v1.3.0)
- PHP Client Version: v1.3.0
- PHP Version: 8.2
- Aerospike Server Versions Tested:
aerospike/aerospike-server:6.4.0.4 ❌ Timeout
aerospike/aerospike-server:latest ❌ Timeout
- Operating System: Linux (Docker container based on
php:8.2-apache)
- Architecture: x86_64
Problem Description
ASLD starts successfully but immediately times out when attempting to connect to the Aerospike server. The process exits, and the Unix socket (/tmp/asld_grpc.sock) is never created.
Error Message
2025/11/21 07:25:00 Aerospike Local Proxy `0.1.0`.
2025/11/21 07:25:00 ResultCode: TIMEOUT, Iteration: 0, InDoubt: false, Node: <nil>: command execution timed out on client: See `Policy.Timeout`
Symptoms
- ASLD process starts but exits immediately after timeout
- Unix socket
/tmp/asld_grpc.sock is never created
- PHP extension cannot connect (gets "transport error")
- Issue occurs with multiple Aerospike server versions
- Network connectivity to Aerospike server is confirmed working
Configuration
ASLD Configuration (asld.toml)
[server]
listen = "unix:///tmp/asld_grpc.sock"
[client]
hosts = ["aerospike-server:3000"]
timeout = "120s"
login-timeout = "30s"
fail-if-not-connected = false
Docker Compose
services:
aerospike-server:
image: aerospike/aerospike-server:latest
container_name: aerospike-server
ports:
- "3000:3000"
- "3001:3001"
- "3002:3002"
volumes:
- aerospike-data:/opt/aerospike/data
environment:
SERVICE_NAME: aerospike
NAMESPACE: test
STORAGE: /opt/aerospike/data/test.dat
STORAGE_SIZE: 4G
laravel-app:
build:
context: .
dockerfile: Dockerfile
container_name: laravel-app
ports:
- "8081:80"
depends_on:
- aerospike-server
Steps to Reproduce
- Build Aerospike PHP Client v1.3.0 from source
- Build ASLD from
aerospike-connection-manager/ directory
- Configure ASLD with
asld.toml pointing to Aerospike server
- Start Aerospike server (any version tested)
- Start ASLD:
/usr/local/bin/asld -config-file /etc/aerospike-connection-manager/asld.toml
- Observe timeout error in logs
- Verify socket is not created:
ls -la /tmp/asld_grpc.sock
Expected Behavior
- ASLD should connect to Aerospike server successfully
- Unix socket should be created at
/tmp/asld_grpc.sock
- PHP extension should be able to connect via the socket
- No timeout errors
Actual Behavior
- ASLD times out immediately when trying to connect
- Process exits
- Socket is never created
- PHP extension cannot connect
Verification Steps Performed
Network Connectivity
# From laravel-app container
timeout 2 bash -c 'cat < /dev/null > /dev/tcp/aerospike-server/3000'
# Result: ✅ Connection successful
Server Status
docker-compose ps
# Result: ✅ Both containers running
# - aerospike-server: Up and running
# - laravel-app: Up and running
ASLD Process
ps aux | grep asld
# Result: ❌ Process not running (exited after timeout)
Socket File
ls -la /tmp/asld_grpc.sock
# Result: ❌ File does not exist
Additional Information
Build Process
ASLD was built using:
cd aerospike-connection-manager
go mod download
go build -o asld .
PHP Extension
PHP extension was built successfully and is loaded:
php -m | grep aerospike
# Result: aerospike_php
Workaround
Currently using Laravel cache as fallback when Aerospike connection fails.
Impact
- Severity: High - ASLD is required for modern PHP client
- Workaround Available: Yes (cache fallback)
- Production Ready: No - Cannot use Aerospike with PHP extension
Where to Report
Additional Files
- ASLD configuration:
docker/asld.toml
- Startup script:
docker/start.sh
- Dockerfile:
Dockerfile
- Full ASLD log available upon request
Contact Information
(Add your contact details here if reporting directly)
Report Date: 2025-11-21
Status: Unresolved
Priority: High
Aerospike Bug Report: ASLD Timeout Issue
Summary
ASLD (Aerospike Link Daemon) v0.1.0 consistently times out when attempting to connect to Aerospike server, regardless of server version.
Environment
aerospike/aerospike-server:6.4.0.4❌ Timeoutaerospike/aerospike-server:latest❌ Timeoutphp:8.2-apache)Problem Description
ASLD starts successfully but immediately times out when attempting to connect to the Aerospike server. The process exits, and the Unix socket (
/tmp/asld_grpc.sock) is never created.Error Message
Symptoms
/tmp/asld_grpc.sockis never createdConfiguration
ASLD Configuration (
asld.toml)Docker Compose
Steps to Reproduce
aerospike-connection-manager/directoryasld.tomlpointing to Aerospike server/usr/local/bin/asld -config-file /etc/aerospike-connection-manager/asld.tomlls -la /tmp/asld_grpc.sockExpected Behavior
/tmp/asld_grpc.sockActual Behavior
Verification Steps Performed
Network Connectivity
Server Status
ASLD Process
Socket File
ls -la /tmp/asld_grpc.sock # Result: ❌ File does not existAdditional Information
Build Process
ASLD was built using:
PHP Extension
PHP extension was built successfully and is loaded:
Workaround
Currently using Laravel cache as fallback when Aerospike connection fails.
Impact
Where to Report
Additional Files
docker/asld.tomldocker/start.shDockerfileContact Information
(Add your contact details here if reporting directly)
Report Date: 2025-11-21
Status: Unresolved
Priority: High