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
Runtime 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
Last updated on