-
-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
This page helps resolve common issues that may occur while running or deploying SecureAuth.
Before debugging:
- Check server logs
- Verify environment variables
- Confirm dependencies are installed
- Restart services if needed
Application fails to start.
Example error:
Application crashedInstall dependencies again:
npm installStart application:
npm run devExample error:
EADDRINUSECheck port usage:
lsof -i :3000Kill process:
kill -9 PIDExample error:
Blocked request. This host is not allowed.Update vite.config.ts
server: {
allowedHosts: ['yourdomain.com']
}Restart application afterward.
Example error:
Missing required environment variableVerify .env exists.
Example:
cat .envRestart server after changes.
- Invalid TextSnap credentials
- Internet issues
- API limits reached
Verify credentials:
TEXTSNAP_INSTANCE_ID="YOUR_INSTANCE_ID"
TEXTSNAP_ACCESS_TOKEN="YOUR_ACCESS_TOKEN"Database connection failing.
Verify Firebase configuration.
Example:
FIREBASE_DATABASE_URL="YOUR_DATABASE_URL"
FIREBASE_DATABASE_SECRET="YOUR_SECRET"Example response:
{
"error": "Session expired"
}Login again.
Example response:
{
"error": "Unauthorized"
}- Clear cookies
- Re-login
- Verify JWT_SECRET
Build process fails.
Clear dependencies:
rm -rf node_modules package-lock.jsonReinstall:
npm installBuild again:
npm run buildCheck logs:
docker logs secureauth-appCheck running services:
docker psCheck logs:
pm2 logs secureauthpm2 restart secureauthBackend may not be running.
Test backend:
curl http://127.0.0.1:3000Check config:
sudo nginx -tsudo systemctl restart nginxRenew certificates:
sudo certbot renewSolution:
- Clear browser cache
- Unregister service workers
- Reload application
Ensure:
- HTTPS enabled
- Manifest configured correctly
- Icons accessible
Useful commands:
ss -tulnppm2 listdocker pspm2 logsIf issues involve authentication:
- Rotate secrets
- Revoke active sessions
- Check suspicious activity
Check Logs
β
Verify Environment Variables
β
Test Backend
β
Check Reverse Proxy
β
Restart ServicesIf issues continue:
- Check logs carefully
- Verify deployment configuration
- Confirm environment variables
- Test services individually
Continue with:
Secure β’ Fast β’ Modern β‘
SecureAuth
Secure β’ Fast β’ Modern β‘