Troubleshooting
Common issues organized by category with symptoms, causes, and solutions.
Installation
Binary not found after install
Symptom: astonish: command not found
Solution: Ensure the install directory is in your PATH:
export PATH="$PATH:$HOME/.local/bin"Add this to your shell profile (~/.bashrc, ~/.zshrc) for persistence.
Build fails with Go version error
Symptom: requires go >= 1.24
Solution: Update Go to 1.24.4 or later. Download from go.dev/dl.
Provider Connectivity
API key rejected
Symptom: 401 Unauthorized or Invalid API key
Solution:
- Verify the key in
astonish status - Re-enter with
astonish setupor edit~/.config/astonish/config.yaml - Check the key hasn't expired or been revoked in your provider dashboard
Timeout errors
Symptom: context deadline exceeded or request timed out
Solution:
- Check network connectivity to the provider's API
- If behind a corporate proxy, configure
HTTP_PROXY/HTTPS_PROXY - Increase timeout in config:
providers.openai.timeout: "120s"
Model not available
Symptom: model not found or model access denied
Solution: Verify your API plan includes the requested model. Some models require specific tier access.
Daemon
Daemon won't start
Symptom: astonish daemon start exits immediately
Solution:
# Check for port conflicts
astonish daemon logs
# Kill stale process
astonish daemon stop --force
astonish daemon startChannels not connecting
Symptom: Daemon running but channel shows disconnected
Solution:
- Verify channel credentials in config
- For Telegram: ensure bot token is valid (
/getMetest) - For Email: test IMAP/SMTP credentials with another client
- For Slack: verify app tokens and event subscriptions
Cloud Deployment
PostgreSQL connection failed
Symptom: failed to connect to database or connection refused
Solution:
- Verify PostgreSQL is running:
pg_isready -h localhost -p 5432 - Check DSN in config matches actual database credentials
- Ensure the database exists:
psql -l | grep astonish - Check
pg_hba.confallows connections from the Astonish host
Migration errors
Symptom: migration failed or schema mismatch
Solution:
# Check current migration state
astonish platform migrate status
# Retry migrations
astonish platform migrateIf a migration is stuck, check PostgreSQL logs for lock contention or permission issues.
Authentication failures
Symptom: invalid credentials or token expired in Studio login
Solution:
- Clear browser cookies and retry
- Re-authenticate:
astonish login - Check that the user exists in the org:
astonish platform org members --org <name>
Org membership issues
Symptom: access denied or content not visible
Solution:
- Verify membership:
astonish platform org members --org <name> - Check team assignment: user must be in a team to access team-scoped resources
- Ensure RLS policies are applied:
astonish platform migrate status
Channels
Telegram bot not responding
Solution:
- Confirm daemon is running:
astonish daemon status - Check allowlist includes your user ID
- Verify bot token:
curl https://api.telegram.org/bot<TOKEN>/getMe - Check daemon logs for errors:
astonish daemon logs --follow
Email messages not processed
Solution:
- Verify IMAP credentials connect successfully
- Check
poll_intervalisn't set too high - Confirm sender is in the allowlist (check exact address match)
- Look for parsing errors in daemon logs
Browser Automation
Browser tool fails to launch
Symptom: failed to launch browser or chrome not found
Solution:
- Install Chrome/Chromium:
apt install chromium-browseror equivalent - Set custom path in settings if Chrome is installed in a non-standard location
- For containers/CI: ensure
--no-sandboxflag is enabled in browser settings
Page load timeouts
Symptom: navigation timeout errors
Solution:
- Increase timeout in Studio Settings → Browser
- Check that the target URL is accessible from the machine running Astonish
- For authenticated pages, ensure credentials are configured