Skip to main content
This guide covers common problems you might encounter when using Aceplay and how to solve them.

Enable verbose mode

For any troubleshooting, start by enabling verbose logging:
aceplay play acestream://... --verbose
Or set it permanently:
verbose: true
This shows detailed information about:
  • Configuration loading
  • Engine detection and startup
  • Stream connection process
  • Player launching

Common issues

Engine not found

Cause: Aceplay can’t locate the acestreamengine executableSolutions:
  1. Install acestream-engine: Visit acestream.org and follow installation instructions for your distribution.
  2. Verify installation:
    which acestreamengine
    
    Should output the path to the binary.
  3. Check PATH:
    echo $PATH
    
    Ensure the directory containing acestreamengine is in your PATH.
  4. Add to PATH temporarily:
    export PATH=$PATH:/path/to/acestream/bin
    
  5. Or use a pre-started engine: Start the engine manually in another terminal:
    acestreamengine --client-console --http-port 6878
    
    Then run Aceplay normally.

Player not found

Cause: The configured video player is not installedSolutions:
  1. Install the player:
    sudo pacman -S mpv
    
  2. Use a different player:
    aceplay play acestream://... --player vlc
    
  3. Check available players:
    which mpv
    which vlc
    which ffplay
    
  4. List installed players: Aceplay detects available players automatically. Run the setup wizard to see what’s available:
    aceplay interactive
    

Stream timeout

Cause: Stream took longer than the configured timeout to become readySolutions:
  1. Increase timeout:
    aceplay play acestream://... --timeout 120s
    
  2. Set permanently in config:
    timeout: 120s
    
  3. Check stream is valid: Some content IDs may be inactive or invalid. Try a different stream.
  4. Check engine is working:
    curl http://localhost:6878/
    
  5. Check internet connection: Acestream requires good connectivity to peers.
  6. Wait for peers: Some streams need time to find peers. Be patient and try again.

Connection refused

Cause: Can’t connect to acestream-engineSolutions:
  1. Check engine is running:
    ps aux | grep acestreamengine
    
  2. Check port is correct:
    netstat -tlnp | grep 6878
    
  3. Verify engine responds:
    curl http://localhost:6878/
    
  4. Start engine manually:
    acestreamengine --client-console --http-port 6878
    
  5. Check for port conflicts: If something else is using port 6878:
    aceplay play acestream://... --engine-port 8080
    
    And start engine on that port:
    acestreamengine --client-console --http-port 8080
    

Invalid URL

Cause: The acestream URL format is incorrectSolutions:
  1. Check URL format: Valid formats:
    • acestream://94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209
    • 94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209 (content ID only)
  2. URL must be 32-40 hex characters:
    # Valid (40 chars)
    aceplay play acestream://94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209
    
    # Invalid (too short)
    aceplay play acestream://94c2fd8f
    
  3. Decode URL-encoded links: If you copied from a browser, it might be URL-encoded:
    # Firefox may encode as
    acestream%3A%2F%2F94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209
    
    # Aceplay handles this automatically, but ensure it's properly quoted
    aceplay play "acestream://..."
    

Config file errors

Cause: Config file has invalid YAML syntaxSolutions:
  1. Check config file syntax:
    cat ~/.config/aceplay/config.yaml
    
  2. Validate YAML: Common mistakes:
    • Incorrect indentation (use spaces, not tabs)
    • Missing colons
    • Quotes in wrong places
    Valid config:
    player: mpv
    engine:
      host: localhost
      port: 6878
    timeout: 60s
    hls: false
    verbose: false
    
  3. Reset config: Backup and delete the config file:
    mv ~/.config/aceplay/config.yaml ~/.config/aceplay/config.yaml.backup
    
    Run Aceplay - it will create a new config:
    aceplay
    
  4. Use the interactive editor:
    aceplay config edit
    

Browser integration not working

Player issues

Cause: Various player-specific issuesSolutions:
  1. Check stream URL is valid: Enable verbose mode to see the stream URL:
    aceplay play acestream://... --verbose
    
    Look for a line like:
    Starting playback: http://localhost:6878/...
    
  2. Test URL directly: Copy the stream URL and test in player:
    mpv "http://localhost:6878/ace/manifest.m3u8?id=..."
    
  3. Try different player:
    aceplay play acestream://... --player vlc
    
  4. Try HLS mode:
    aceplay play acestream://... --hls
    
  5. Check codec support: Ensure your player supports the stream codec. Install codec packages:
    # Arch
    sudo pacman -S ffmpeg
    
    # Debian/Ubuntu
    sudo apt install ffmpeg
    

Performance issues

Buffering/stuttering

Solutions:
  1. Increase player cache: For mpv (already has --cache=yes by default in Aceplay) For VLC (already has --network-caching=3000 by default)
  2. Try HLS mode:
    aceplay play acestream://... --hls
    
  3. Check internet speed: Acestream requires good download speed and peer availability.
  4. Wait for more peers: Watch the stream statistics:
    Status: dl | ↓ 1.2 MB/s | ↑ 256 KB/s | Peers: 15
    
    More peers = better performance.
  5. Check CPU usage:
    top
    
    If CPU is maxed out, try a lighter player or lower quality stream.

High latency

Cause: Normal for HLS mode or network conditionsSolutions:
  1. Use direct mode instead of HLS:
    aceplay play acestream://... # without --hls
    
  2. Accept the latency: Acestream P2P protocol has inherent latency. Some delay is normal.
  3. Reduce player buffering: This is player-dependent and may cause stuttering.

Getting help

If you’re still experiencing issues:
  1. Check the logs: Run with verbose mode and save output:
    aceplay play acestream://... --verbose 2>&1 | tee aceplay.log
    
  2. Verify versions:
    aceplay version
    acestreamengine --version
    mpv --version
    
  3. Check system:
    uname -a
    cat /etc/os-release
    
  4. File an issue: Visit github.com/crstian19/aceplay/issues Include:
    • Aceplay version
    • OS and version
    • Full error message
    • Steps to reproduce
    • Verbose log output

Quick diagnostic checklist

Run through this checklist to diagnose most issues:
  • acestreamengine is installed and in PATH
  • Video player (mpv/vlc/ffplay) is installed
  • Engine is running: curl http://localhost:6878/
  • Stream URL is valid (40 hex chars)
  • Config file is valid YAML
  • No port conflicts on 6878
  • Firewall allows acestream traffic
  • Good internet connection
  • Verbose mode enabled for debugging

Reference

  • Error handling: cmd/main.go:161-276
  • Engine detection: internal/acestream/client.go:146-161
  • Player validation: internal/player/player.go:42-56
  • URL parsing: pkg/acestream/url.go

Build docs developers (and LLMs) love