Skip to Content
For DevelopersFAQ & Troubleshooting

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:generate

Setup 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/tty

Database Issues

”Unable to connect to database”

SQLite:

  • Check the path in DATABASE_URL is correct
  • Ensure the directory exists and is writable

Turso:

  • Verify DATABASE_URL format: libsql://your-db.turso.io
  • Check DATABASE_AUTH_TOKEN is set and valid

”Table does not exist”

Cause: Schema hasn’t been pushed to database.

Solution:

npm run db:push

Authentication Issues

Session not persisting

Causes:

  • AUTH_SECRET not set or changed
  • AUTH_URL mismatch

Solutions:

  1. Verify .env has AUTH_SECRET set
  2. Ensure AUTH_URL matches your actual URL
  3. Clear browser cookies and try again

Storage Issues

Images not uploading

Local storage:

  • Check STORAGE_LOCAL_PATH directory 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 soketi

If 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:latest

WebSocket connection fails in browser

Common causes:

  1. Soketi not running - docker ps | grep soketi
  2. Wrong host - NEXT_PUBLIC_SOKETI_HOST must be your public domain, not localhost
  3. Credentials mismatch - .env values must match Docker environment variables
  4. Firewall - Port 6001 must be open
  5. 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:

  1. Delete the cached PM2 process:
pm2 delete auktiva
  1. Navigate to your project directory:
cd /path/to/auktiva
  1. Start fresh using the ecosystem config:
pm2 start ecosystem.config.js
  1. Save the new configuration:
pm2 save

This 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:

  1. Check the logs:
pm2 logs auktiva --lines 100
  1. Common causes:

    • Missing environment variables
    • Database connection issues
    • Port already in use
  2. Stop the restart loop while debugging:

pm2 stop auktiva

Runtime Issues

Port 3000 already in use

Solution:

lsof -ti:3000 | xargs kill -9

Getting Help

If you can’t resolve an issue:

  1. Check logs: pm2 logs auktiva
  2. Search GitHub Issues 
  3. Create a new issue with:
    • Error message
    • Steps to reproduce
    • Environment details
Last updated on