Skip to content

Common Issues

Symptom: ./ScanPick.Api exits immediately with no output.

Cause: Missing required environment variables.

Fix: Ensure DATABASE_CONNECTION_STRING and JWT_SECRET are set:

Terminal window
export DATABASE_CONNECTION_STRING="Host=localhost;Database=scanpick;Username=scanpick;Password=..."
export JWT_SECRET="your-64-char-secret"
./ScanPick.Api

Symptom: Failed to connect to PostgreSQL on startup.

Causes and fixes:

CauseFix
PostgreSQL not runningdocker compose up -d postgres or systemctl start postgresql
Wrong connection stringCheck DATABASE_CONNECTION_STRING format
Database doesn’t existCREATE DATABASE scanpick OWNER scanpick;
Firewall blockingEnsure port 5432 is accessible from the API host
SSL mismatchAdd SSL Mode=Disable for local connections, or SSL Mode=Require for remote

Symptom: Web dashboard loads but displays a blank white page.

Cause: JavaScript error — often due to missing API or wrong base URL.

Fix:

  1. Open browser dev tools (F12) and check the Console tab for errors
  2. Ensure the API is running on the expected port
  3. Clear browser cache and reload

Symptom: Mobile app shows “Connection error” or “Unable to reach server”.

Causes and fixes:

CauseFix
Wrong API URL in app configCheck API_BASE_URL in mobile/.env
Firewall blockingEnsure port 5000 is accessible on the warehouse WiFi
Server not runningTry opening the dashboard at http://localhost:5000
WiFi network isolationCheck that mobile devices can reach the server IP

Symptom: API refuses to start with “Invalid license key”.

Causes and fixes:

CauseFix
Expired licenseRenew through scanpick.cc/account
Wrong key enteredCheck the key from your purchase email
Keygen API unreachableThe API caches validation for 24 hours — check outbound internet access
License not activatedContact support

Symptom: API logs database errors or refuses writes.

Fix: Check disk space and prune old data:

Terminal window
df -h
# Free space if needed
docker system prune
# For PostgreSQL WAL logs
docker compose exec postgres psql -U scanpick -c "CHECKPOINT;"

For more detailed troubleshooting, see the Logs guide. If the issue persists, open a GitHub issue.