-
-
Notifications
You must be signed in to change notification settings - Fork 2
ERROR MESSAGES
This guide explains common error messages you might encounter and how to resolve them.
| Error Type | Command to Fix |
|---|---|
| Port conflicts | nself doctor --fix |
| Container failures |
nself logs <service> then nself restart <service>
|
| Configuration issues | nself config validate --fix |
| Build problems |
docker builder prune -f then nself build
|
| Health check | nself doctor |
Error Message:
✗ Container 'postgres' failed to start
Reason: Port 5432 is already in use
Solutions:
-
Find and stop the conflicting process:
# macOS/Linux lsof -ti:5432 | xargs kill -9 # Or for specific services brew services stop postgresql # macOS sudo systemctl stop postgresql # Linux
-
Change the port in
.env.local:# Add to .env.local POSTGRES_PORT=5433 # Then rebuild and restart nself build && nself start
-
Use automatic fix:
nself doctor --fix
Prevention:
- Use
.env.localto override ports that conflict with your system - Run
nself doctorbefore starting services
Error Message:
✗ Container 'hasura' failed to start
Reason: Connection to database failed
Solutions:
-
Check logs for detailed error:
nself logs hasura nself logs hasura --tail 100
-
Verify dependencies are running:
nself status docker ps
-
Restart in dependency order:
nself restart postgres sleep 5 nself restart hasura
-
Full rebuild:
nself stop nself build nself start
Common Causes:
- Database not ready when service starts
- Network configuration issues
- Missing environment variables
- Resource constraints (memory/CPU)
Error Message:
✗ Required configuration missing
File: .env not found or incomplete
Missing variables:
• PROJECT_NAME
• POSTGRES_PASSWORD
• HASURA_GRAPHQL_ADMIN_SECRET
Solutions:
-
Initialize configuration:
nself init
-
Copy from example:
cp .env.example .env # Edit .env with your values -
Validate and auto-fix:
nself config validate --fix
Required Variables:
-
PROJECT_NAME- Your project identifier -
POSTGRES_PASSWORD- Database password -
HASURA_GRAPHQL_ADMIN_SECRET- Hasura admin secret -
BASE_DOMAIN- Your domain (default: local.nself.org)
Error Message:
✗ Permission denied
Cannot access: /var/run/docker.sock
Solutions:
-
Fix file ownership:
sudo chown -R $(whoami) ./ -
Add user to docker group (Linux):
sudo usermod -aG docker $USER # Log out and back in
-
Check Docker is running:
docker info
-
macOS - Restart Docker Desktop:
- Docker Desktop handles permissions automatically
- If issues persist, restart Docker Desktop
Common Causes:
- Docker daemon not running
- User not in docker group (Linux)
- File ownership issues
- Insufficient sudo privileges
Error Message:
✗ Network connection failed
Service: hasura
URL: http://localhost:8080
Error: connection refused
Solutions:
-
Check service is running:
docker ps | grep hasura -
Check Docker networking:
docker network ls docker network inspect nself_default
-
Restart Docker networking:
nself stop docker network prune -f nself start
-
Test connectivity:
curl -v http://localhost:8080
Common Causes:
- Service not started
- Port mapping incorrect
- Firewall blocking connections
- VPN interfering with Docker networking
Error Message:
✗ Docker is not running
Solutions:
macOS:
# Start Docker Desktop
open -a Docker
# Wait 10-15 seconds for initialization
# Verify
docker infoLinux:
# Start Docker service
sudo systemctl start docker
# Enable on boot
sudo systemctl enable docker
# Verify
docker infoWindows:
- Start Docker Desktop from Start Menu
- Or run:
"C:\Program Files\Docker\Docker\Docker Desktop.exe"
Error Message:
✗ Insufficient memory
Available: 2GB
Required: 4GB
Solutions:
-
Close unnecessary applications
-
Increase Docker memory (macOS):
- Docker Desktop → Settings → Resources → Memory
- Recommended: 4GB minimum, 8GB optimal
-
Disable optional services:
# In .env.local MONITORING_ENABLED=false MLFLOW_ENABLED=false REDIS_ENABLED=false -
Check disk space:
df -h . docker system df -
Clean Docker resources:
docker system prune -a --volumes nself clean
Error Message:
✗ Database connection failed
Database: PostgreSQL
Error: connection refused
Solutions:
-
Check if database is running:
docker ps | grep postgres nself logs postgres -
Verify connection settings in
.env:POSTGRES_PORT=5432 POSTGRES_USER=postgres POSTGRES_PASSWORD=<your-password> POSTGRES_DB=nhost
-
Check for port conflicts:
lsof -i :5432
-
Restart database:
nself restart postgres sleep 5 nself status
-
Test connection:
docker exec -it ${PROJECT_NAME}_postgres psql -U postgres
Connection URL Format:
postgresql://user:password@localhost:5432/database
Error Message:
✗ Build failed for 'custom-service'
Stage: RUN npm install
Error: ENOENT: no such file or directory
Solutions:
-
Check Dockerfile syntax:
cat services/custom-service/Dockerfile
-
Clean build cache:
docker builder prune -f nself build --no-cache
-
Check disk space:
df -h docker system df
-
Rebuild specific service:
docker-compose build custom-service
-
Check Docker daemon logs:
- macOS: Docker Desktop → Troubleshoot → View logs
-
Linux:
journalctl -u docker.service
Common Causes:
- Syntax errors in Dockerfile
- Missing files in build context
- Network issues downloading dependencies
- Insufficient disk space
- Build cache corruption
Error Message:
✗ Service 'hasura' is unhealthy
Possible solutions:
1. Check service logs for errors
2. Verify dependencies are running
3. Restart the service
Solutions:
-
Check detailed logs:
nself logs hasura --tail 50
-
Inspect container:
docker inspect ${PROJECT_NAME}_hasura -
Check dependencies:
nself status
-
Restart service:
nself restart hasura
-
Monitor resources:
docker stats ${PROJECT_NAME}_hasura
Note: Some services take 30-60 seconds to become healthy after starting.
nself doctornself doctor --verbosenself doctor --fixnself logs <service>
nself logs <service> --tail 100
nself logs <service> --follownself status
nself status --detaileddocker ps -a
docker stats
docker inspect ${PROJECT_NAME}_<service>-
Always run
nself doctorbefore starting- Checks system requirements
- Identifies potential issues
- Suggests fixes
-
Use
.env.localfor customizations- Override ports that conflict
- Set machine-specific values
- Keep
.envclean
-
Monitor resource usage
docker stats df -h free -h # Linux -
Keep Docker updated
docker --version docker compose version
-
Regular cleanup
nself clean docker system prune -a
-
Main docs:
docs/README.md -
Configuration:
docs/configuration/ -
Troubleshooting:
docs/troubleshooting/
nself help
nself <command> --help- GitHub Issues: github.com/nself-org/cli/issues
- Discussions: github.com/nself-org/cli/discussions
All nself error messages follow this format for consistency:
✗ [Problem Statement]
Reason: [Specific cause]
Possible solutions:
1. [Primary solution with command]
2. [Alternative solution]
3. [Automatic fix if available]
Run 'nself doctor' for more diagnostics
This format ensures:
- Clear problem statement - What went wrong
- Specific reason - Why it failed
- Actionable solutions - How to fix it (numbered)
- Command examples - Copy-paste ready
- Additional help - Where to get more info
Found an unclear error message? Please:
- Open an issue with the error message
- Describe what was confusing
- Suggest improvements
Error messages are continually improved based on user feedback.
ɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · nself.org/docs
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-sentry · cmd-watchdog
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-access · cmd-security · cmd-secrets
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license · cmd-dogfood (extracted, CLI-R11) · cmd-k8s (extracted, CLI-R11) · cmd-encryption (extracted, CLI-R11) · cmd-waf (extracted, CLI-R11) · cmd-federation (extracted, CLI-R11) · cmd-mail (extracted, CLI-R11) · cmd-dlq (extracted, CLI-R11)
- AI: cmd-ai · cmd-claw · cmd-model
- Templates: cmd-template
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-migrate-firebase · cmd-migrate-supabase · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-nClaw, AI Assistant
- Feature-nChat, Messaging
- Feature-nTV, Media Player
- Feature-nFamily, Family Social
- Feature-nCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- plugin-nself-ai-gateway
- plugin-nself-ai-mcp
- plugin-nself-ai-mcp
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing
Admin
- USER-ACTION-QUEUE, Pending Admin Actions
All commands (52)
- A: cmd-access · cmd-account · cmd-admin
- B: cmd-backup · cmd-build · cmd-bundle
- C: cmd-ci · cmd-clean · cmd-completion · cmd-config
- D: cmd-db · cmd-deploy · cmd-dev · cmd-doctor
- E: cmd-env · cmd-exec
- F: cmd-functions
- G: cmd-generate
- H: cmd-health · cmd-help-topics
- I: cmd-init · cmd-install
- L: cmd-license · cmd-login · cmd-logout · cmd-logs
- M: cmd-man · cmd-mcp · cmd-migrate
- O: cmd-oauth · cmd-ops
- P: cmd-plugin · cmd-promote
- R: cmd-remove · cmd-reset · cmd-restart · cmd-runner
- S: cmd-secrets · cmd-security · cmd-self-heal · cmd-server · cmd-service · cmd-start · cmd-status · cmd-stop
- T: cmd-telemetry · cmd-template · cmd-trust
- U: cmd-update · cmd-urls
- V: cmd-verify-sbom · cmd-version