Troubleshooting
Resolution guides for common deployment, runtime, authentication, and integration errors.
Common Issues & Resolutions
1. OTP Verification / SMS Dispatch Failures
- Symptom: Verification SMS code is not delivered or Twilio logs an API gateway error.
- Resolution:
- Check your
.envparameters inside the backend folder. Ensure Twilio keys (TWILIO_ACCOUNT_SID,TWILIO_AUTH_TOKEN) are active. - If Twilio's balance is low or rate limits are hit, check if the system successfully falls back to Resend / SMTP email verification.
- Check your
2. database migration lock errors
- Symptom: Node backend crashes with lock violation error during migrations.
- Resolution:
- Run the SQL recovery command targeting the Knex lock table to release active migration locks:
UPDATE knex_migrations_lock SET is_locked = 0;
3. Hydration Mismatch Warnings in Browser
- Symptom: Browser console logs hydration mismatches when loading docs or layouts.
- Resolution:
- Verify that the
suppressHydrationWarningattribute is defined on the root<html>tag insideapp/layout.tsx. - Ensure theme-dependent elements (like
ThemeToggle) only render icons and values after checking the Reactmountedlifecycle hook.
- Verify that the
4. Redis connection exceptions
- Symptom: Express API backend prints
Redis connection failedand tasks queue crashes. - Resolution:
- Check if the Redis docker service is active (
docker ps). If needed, restart the container:
docker restart hubnest-redis - Check if the Redis docker service is active (