Skip to content

Unable to login from github Codespace dns exposition #9959

@MChrys

Description

@MChrys

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:

  1. Admin user exists in SQLite DB (verified via API)
  2. JWT authentication works (API returns valid tokens)
  3. But React app ignores this and redirects to /signup on 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

  1. Deploy SigNoz OSS using official Docker Compose in GitHub Codespace
  2. Create admin user via the init endpoint or signup flow
  3. Try to login with valid credentials
  4. 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/login endpoint (which works perfectly)
  • Stores JWT tokens in localStorage
  • Redirects to /services after 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions