Enable verbose mode
For any troubleshooting, start by enabling verbose logging:- Configuration loading
- Engine detection and startup
- Stream connection process
- Player launching
Common issues
Engine not found
Error: acestream-engine not found in PATH
Error: acestream-engine not found in PATH
Cause: Aceplay can’t locate the
acestreamengine executableSolutions:- Install acestream-engine: Visit acestream.org and follow installation instructions for your distribution.
-
Verify installation:
Should output the path to the binary.
-
Check PATH:
Ensure the directory containing
acestreamengineis in your PATH. -
Add to PATH temporarily:
-
Or use a pre-started engine:
Start the engine manually in another terminal:
Then run Aceplay normally.
Player not found
Error: player 'mpv' not found
Error: player 'mpv' not found
Cause: The configured video player is not installedSolutions:
-
Install the player:
-
Use a different player:
-
Check available players:
-
List installed players:
Aceplay detects available players automatically. Run the setup wizard to see what’s available:
Stream timeout
Error: failed to get stream: context deadline exceeded
Error: failed to get stream: context deadline exceeded
Cause: Stream took longer than the configured timeout to become readySolutions:
-
Increase timeout:
-
Set permanently in config:
- Check stream is valid: Some content IDs may be inactive or invalid. Try a different stream.
-
Check engine is working:
- Check internet connection: Acestream requires good connectivity to peers.
- Wait for peers: Some streams need time to find peers. Be patient and try again.
Connection refused
Error: connection refused
Error: connection refused
Cause: Can’t connect to acestream-engineSolutions:
-
Check engine is running:
-
Check port is correct:
-
Verify engine responds:
-
Start engine manually:
-
Check for port conflicts:
If something else is using port 6878:
And start engine on that port:
Invalid URL
Error: invalid URL
Error: invalid URL
Cause: The acestream URL format is incorrectSolutions:
-
Check URL format:
Valid formats:
acestream://94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a020994c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209(content ID only)
-
URL must be 32-40 hex characters:
-
Decode URL-encoded links:
If you copied from a browser, it might be URL-encoded:
Config file errors
Error: error reading configuration
Error: error reading configuration
Cause: Config file has invalid YAML syntaxSolutions:
-
Check config file syntax:
-
Validate YAML:
Common mistakes:
- Incorrect indentation (use spaces, not tabs)
- Missing colons
- Quotes in wrong places
-
Reset config:
Backup and delete the config file:
Run Aceplay - it will create a new config:
-
Use the interactive editor:
Browser integration not working
Browser doesn't open acestream:// links
Browser doesn't open acestream:// links
Cause: Protocol handler not registered or not recognizedSolutions:
-
Re-register protocol:
- Restart browser Close and reopen your browser after registering.
-
Check desktop file:
Should contain:
-
Verify default handler:
Should output:
aceplay.desktop -
Set as default manually:
-
Update desktop database:
-
For KDE users:
Player issues
Player opens but no video
Player opens but no video
Cause: Various player-specific issuesSolutions:
-
Check stream URL is valid:
Enable verbose mode to see the stream URL:
Look for a line like:
-
Test URL directly:
Copy the stream URL and test in player:
-
Try different player:
-
Try HLS mode:
-
Check codec support:
Ensure your player supports the stream codec. Install codec packages:
Performance issues
Buffering/stuttering
Stream keeps buffering
Stream keeps buffering
Solutions:
-
Increase player cache:
For mpv (already has
--cache=yesby default in Aceplay) For VLC (already has--network-caching=3000by default) -
Try HLS mode:
- Check internet speed: Acestream requires good download speed and peer availability.
-
Wait for more peers:
Watch the stream statistics:
More peers = better performance.
-
Check CPU usage:
If CPU is maxed out, try a lighter player or lower quality stream.
High latency
Stream is delayed by 10-20 seconds
Stream is delayed by 10-20 seconds
Cause: Normal for HLS mode or network conditionsSolutions:
-
Use direct mode instead of HLS:
- Accept the latency: Acestream P2P protocol has inherent latency. Some delay is normal.
- Reduce player buffering: This is player-dependent and may cause stuttering.
Getting help
If you’re still experiencing issues:-
Check the logs:
Run with verbose mode and save output:
-
Verify versions:
-
Check system:
-
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:-
acestreamengineis 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