Troubleshooting
Common issues and their solutions
Installation Issues
Section titled “Installation Issues”Deno not found
Section titled “Deno not found”Error: command not found: deno
Solution:
# Ensure Deno is in your PATHexport PATH="$HOME/.deno/bin:$PATH"
# Add to ~/.bashrc or ~/.zshrc for permanent fixecho 'export PATH="$HOME/.deno/bin:$PATH"' >> ~/.bashrcPermission denied
Section titled “Permission denied”Error: Permission denied: ./spry.ts
Solution:
chmod +x spry.tsTask Execution Issues
Section titled “Task Execution Issues”Circular dependency detected
Section titled “Circular dependency detected”Error: Circular dependency in task graph
Solution:
Check your --dep flags. Tasks cannot depend on each other in a cycle.
# ❌ Wrong: Circular dependency```bash task-a --dep task-b```
```bash task-b --dep task-a```
# ✅ Correct: Linear dependency```bash task-a```
```bash task-b --dep task-a```Task not found
Section titled “Task not found”Error: Task 'xyz' not found in Spryfile
Solution:
- Check task name spelling in your Spryfile.md
- Ensure the task has a name after the language identifier
- Task names are case-sensitive
SQLPage Issues
Section titled “SQLPage Issues”Routes not found (404)
Section titled “Routes not found (404)”SQLPage returns 404 for your routes
Solutions:
- Check that files were generated:
ls dev-src.auto/ - Verify SQLPage configuration points to correct directory
- Ensure SQLPage server is running
- Check
site_prefixin sqlpage.json
Database locked
Section titled “Database locked”Error: database is locked
Solutions:
# Close other connections to the databasepkill sqlpage
# Remove lock file if it existsrm app.db-shm app.db-wal
# Restart SQLPageSQLPAGE_SITE_PREFIX="" sqlpageTemplate errors
Section titled “Template errors”SQL syntax errors from template interpolation
Solution:
Check generated files in dev-src.auto/ to see actual output
cat dev-src.auto/problematic-route.sqlDatabase Issues
Section titled “Database Issues”Connection refused (PostgreSQL)
Section titled “Connection refused (PostgreSQL)”Cannot connect to PostgreSQL
Solutions:
# Verify PostgreSQL is runningpg_isready
# Check connection stringecho $DATABASE_URL
# Test connection manuallypsql $DATABASE_URLMigration failed
Section titled “Migration failed”Database schema migration errors
Solutions:
- Check SQL syntax in schema files
- Ensure migrations run in correct order
- Verify database user has CREATE permissions
- Try running migrations manually to see detailed errors
Watch Mode Issues
Section titled “Watch Mode Issues”Files not regenerating
Section titled “Files not regenerating”Changes to Spryfile.md don’t trigger regeneration
Solutions:
- Restart watch mode
- Check file system permissions
- Try manual generation without
--watch - Ensure you’re editing the correct Spryfile.md
Getting Help
Section titled “Getting Help”If you’re still experiencing issues:
- → Check the GitHub Issues
- → Review GitHub Discussions
- → Run
./spry.ts --doctorand share the output