-
Notifications
You must be signed in to change notification settings - Fork 0
TROUBLESHOOTING
AutoBotSolutions edited this page Apr 29, 2026
·
1 revision
Common issues and solutions for NEXUS Support System.
Symptoms:
- Error: "EACCES" permission denied
- Error: "Cannot find module"
- Installation hangs indefinitely
Solutions:
-
Permission Issues
sudo chown -R $(whoami) ~/.npm sudo chown -R $(whoami) /usr/local/lib/node_modules
-
Clear npm cache
npm cache clean --force
-
Delete node_modules and reinstall
rm -rf node_modules package-lock.json npm install
Symptoms:
- Error: "MongoNetworkError"
- Error: "Connection timeout"
- Application hangs on startup
Solutions:
-
Verify MongoDB is running
sudo systemctl status mongod sudo systemctl start mongod
-
Check MongoDB URI in .env
MONGODB_URI=mongodb://localhost:27017/nexus-support
-
Test connection manually
mongo mongodb://localhost:27017/nexus-support
Symptoms:
- Error: "EADDRINUSE: address already in use :::3000"
Solutions:
-
Change port in .env
PORT=3001
-
Kill process using the port
lsof -i :3000 kill -9 <PID>
Solutions:
-
Create collections manually
mongo > use nexus-support > db.createCollection('tickets')
-
Verify database name in connection string
Solutions:
-
Check for existing documents
mongo > use nexus-support > db.tickets.find({ ticketId: "TCK-ABC123" })
-
Drop and recreate index
> db.tickets.dropIndex({ ticketId: 1 })
Solutions:
- Verify route is registered in server.js
- Check URL path spelling
- Verify server is running on correct port
Symptoms:
- Browser console shows CORS errors
- Requests blocked by CORS policy
Solutions:
- Check CORS configuration in server.js
- Add origin to allowed origins
- For development, allow all origins temporarily
Symptoms:
- Webhooks not processing
- No tickets created from GitHub issues
Solutions:
-
Verify webhook URL is publicly accessible
- Use ngrok for local testing:
ngrok http 3000
- Use ngrok for local testing:
-
Check webhook secret matches
- Verify in GitHub repository settings
- Verify in .env file
-
Review GitHub webhook delivery logs
- Go to repository Settings → Webhooks
- Check recent deliveries
-
Check server logs for errors
pm2 logs nexus
Symptoms:
- Error: "API rate limit exceeded"
- Cannot sync tickets to GitHub
Solutions:
- Wait for rate limit reset (typically 1 hour)
- Use authenticated requests (higher limits)
- Implement rate limiting handling
- Use GitHub Pro for higher limits
Symptoms:
- Error: "Invalid token"
- Cannot access protected endpoints
Solutions:
- Verify JWT_SECRET is set in .env
-
Check token is being sent correctly
- Header:
Authorization: Bearer <token>
- Header:
- Verify token hasn't expired (default: 7 days)
- Regenerate token by logging in again
Solutions:
- Verify bcryptjs is installed
- Check password field in User model
Solutions:
- Check browser console for errors
- Verify API_BASE URL is correct
- Check CORS configuration
- Verify server is running
Solutions:
- Clear browser cache
- Check static file serving in server.js
- Verify file paths are correct
Solutions:
- Add database indexes
- Implement pagination
- Enable response compression
- Use caching for frequently accessed data
Solutions:
- Check for memory leaks
- Implement connection pooling
- Limit concurrent requests
- Use PM2 clustering
If issues persist:
- Check server logs:
pm2 logs nexus - Review MongoDB logs
- Check GitHub webhook delivery logs
- Review this documentation
- Check GitHub Issues
- Contact support team