Skip to content

ASLD v0.1.0 Timeout Error - Cannot Connect to Aerospike Server #74

@khushboojaiswal-ux

Description

@khushboojaiswal-ux

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

  1. ASLD process starts but exits immediately after timeout
  2. Unix socket /tmp/asld_grpc.sock is never created
  3. PHP extension cannot connect (gets "transport error")
  4. Issue occurs with multiple Aerospike server versions
  5. 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

  1. Build Aerospike PHP Client v1.3.0 from source
  2. Build ASLD from aerospike-connection-manager/ directory
  3. Configure ASLD with asld.toml pointing to Aerospike server
  4. Start Aerospike server (any version tested)
  5. Start ASLD: /usr/local/bin/asld -config-file /etc/aerospike-connection-manager/asld.toml
  6. Observe timeout error in logs
  7. Verify socket is not created: ls -la /tmp/asld_grpc.sock

Expected Behavior

  1. ASLD should connect to Aerospike server successfully
  2. Unix socket should be created at /tmp/asld_grpc.sock
  3. PHP extension should be able to connect via the socket
  4. No timeout errors

Actual Behavior

  1. ASLD times out immediately when trying to connect
  2. Process exits
  3. Socket is never created
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions