FAQ & Troubleshooting
Common issues and their solutions when running Auktiva.
Installation Issues
”Cannot find module ’@/generated/prisma/client’”
Cause: Prisma client hasn’t been generated.
Solution:
npm run db:generateSetup wizard exits immediately
Cause: When running via curl | bash, stdin is consumed by the pipe.
Solution: The install script handles this automatically. If running manually:
npx tsx cli/setup.ts </dev/ttyDatabase Issues
”Unable to connect to database”
SQLite:
- Check the path in
DATABASE_URLis correct - Ensure the directory exists and is writable
Turso:
- Verify
DATABASE_URLformat:libsql://your-db.turso.io - Check
DATABASE_AUTH_TOKENis set and valid
”Table does not exist”
Cause: Schema hasn’t been pushed to database.
Solution:
npm run db:pushAuthentication Issues
Session not persisting
Causes:
AUTH_SECRETnot set or changedAUTH_URLmismatch
Solutions:
- Verify
.envhasAUTH_SECRETset - Ensure
AUTH_URLmatches your actual URL - Clear browser cookies and try again
Storage Issues
Images not uploading
Local storage:
- Check
STORAGE_LOCAL_PATHdirectory exists - Verify write permissions
S3:
- Verify all S3 environment variables are set
- Check bucket permissions and CORS configuration
Realtime / WebSocket Issues
Soketi container not running
Soketi runs as a Docker container, not via PM2. Check if it’s running:
docker ps | grep soketiIf not running:
# Start existing container
docker start soketi
# Or create new container
docker run -d --name soketi --restart unless-stopped \
-p 6001:6001 \
-e SOKETI_DEFAULT_APP_ID=auktiva \
-e SOKETI_DEFAULT_APP_KEY=your-key \
-e SOKETI_DEFAULT_APP_SECRET=your-secret \
-e SOKETI_DEFAULT_APP_HOST=0.0.0.0 \
quay.io/soketi/soketi:latestWebSocket connection fails in browser
Common causes:
- Soketi not running -
docker ps | grep soketi - Wrong host -
NEXT_PUBLIC_SOKETI_HOSTmust be your public domain, notlocalhost - Credentials mismatch -
.envvalues must match Docker environment variables - Firewall - Port 6001 must be open
- TLS mismatch - If using HTTPS, set
NEXT_PUBLIC_SOKETI_USE_TLS="true"
Debug: Enable logging with REALTIME_DEBUG="true" in .env or localStorage.setItem('REALTIME_DEBUG', 'true') in browser console.
See Realtime Features for detailed troubleshooting.
PM2 Issues
”Cannot find module ‘/path/to/auktiva’” after update
Cause: PM2 caches process configurations. If the app was originally started with a different method (e.g., pm2 start /path/to/auktiva instead of using ecosystem.config.js), PM2 continues using the old cached configuration even after updates.
Symptoms:
Error: Cannot find module '/home/webapp/auktiva'
at Module._resolveFilename (node:internal/modules/cjs/loader:1420:15)
...
code: 'MODULE_NOT_FOUND'Solution:
- Delete the cached PM2 process:
pm2 delete auktiva- Navigate to your project directory:
cd /path/to/auktiva- Start fresh using the ecosystem config:
pm2 start ecosystem.config.js- Save the new configuration:
pm2 saveThis ensures PM2 uses the correct ecosystem.config.js configuration which runs npm start instead of trying to load the directory as a module.
PM2 process keeps restarting
Cause: Application crashes during startup.
Solution:
- Check the logs:
pm2 logs auktiva --lines 100-
Common causes:
- Missing environment variables
- Database connection issues
- Port already in use
-
Stop the restart loop while debugging:
pm2 stop auktivaRuntime Issues
Port 3000 already in use
Solution:
lsof -ti:3000 | xargs kill -9Getting Help
If you can’t resolve an issue:
- Check logs:
pm2 logs auktiva - Search GitHub Issues
- Create a new issue with:
- Error message
- Steps to reproduce
- Environment details