-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Bug description
I'm working in GitHub Codespace and I can't signup or login to SigNoz. Even after configuring an admin profile in the official Docker Compose deployment, I'm always redirected to the signup page, even when trying to create a new account or login.
Root cause identified: The SigNoz React frontend has hardcoded logic that checks for user existence and redirects to /signup regardless of whether an admin user is actually created in the backend database. This creates an infinite redirect loop where:
- Admin user exists in SQLite DB (verified via API)
- JWT authentication works (API returns valid tokens)
- But React app ignores this and redirects to
/signupon every page load
Expected behavior
Users should be able to login with valid credentials (admin@local/admin123) and access the SigNoz dashboard without being redirected to the signup page. The frontend should respect the authentication state from the backend API.
How to reproduce
- Deploy SigNoz OSS using official Docker Compose in GitHub Codespace
- Create admin user via the init endpoint or signup flow
- Try to login with valid credentials
- Expected: Dashboard loads. Actual: Redirected to /signup page
Version information
- SigNoz version: latest (v0.x from official docker-compose)
- Browser version: Chrome/Edge (tested in GitHub Codespace)
- Your OS and version: Linux (Ubuntu 24.04 LTS in Codespace)
- Your CPU Architecture: AMD64
Additional context
Workaround implemented: Created custom login UI at /login with pre-filled credentials that:
- Bypasses the React redirect issue by serving HTML directly from nginx
- Authenticates via
/api/v1/loginendpoint (which works perfectly) - Stores JWT tokens in localStorage
- Redirects to
/servicesafter successful login
This proves the API backend is functioning correctly; the issue is purely with the React frontend's routing logic.
Environment: GitHub Codespace with Docker Compose streaming setup, ClickHouse backend, Kafka event bus.