Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[traefik] No change on login after the initial deploy #1529

Open
IoannisKonstatinopoulos opened this issue Feb 21, 2025 · 1 comment
Open
Assignees

Comments

@IoannisKonstatinopoulos
Copy link

IoannisKonstatinopoulos commented Feb 21, 2025

Describe the bug
After installing the self-hosted version of CISO-assistant and creating the user for first login, we receive at first an error { detail: "Not Found" } and then multiple times the another error SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON .
The above errors are triggered every time i try to login inside, and the login screen never changes. it's like i'm just getting the error.
Same error as can be viewed below, through inspect.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://ciso.sample.dev/login?next=/'
  2. Give login credentials as created - according to documentation.
  3. Click on 'login'

Expected behavior
Login to service.

Environment (please complete the following information):

  • Device: laptop
  • OS: Fedora 41 Workstation
  • Browser: Firefox
  • Version: 135.0 (64-bit)

Additional context
Compose file used:

networks:
  traefik:
    external: true 

services:
  backend:
    image: ghcr.io/intuitem/ciso-assistant-community/backend:latest
    container_name: ciso-backend
    environment:
      - CISO_ASSISTANT_URL=https://ciso.sample.dev
      - ALLOWED_HOSTS=backend,localhost,ciso.sample.dev
      - DJANGO_DEBUG=True
      - AUTH_TOKEN_TTL=7200
    networks:
      - traefik
    volumes:
      - /opt/ciso/db:/code/db
    labels:
      traefik.enable: true
      traefik.http.routers.ciso-backend.rule: "Host(`ciso.sample.dev`) && Pathprefix(`/api/`)"
      traefik.http.routers.backend.entrypoints: websecure
      traefik.http.routers.backend.tls: true
      traefik.http.services.ciso-backend.loadbalancer.server.port: 8000
      traefik.http.middlewares.backendpathstrip.stripprefix.prefixes: /api
    restart: always
  frontend:
    image: ghcr.io/intuitem/ciso-assistant-community/frontend:latest
    container_name: ciso-frontend
    environment:
      - PUBLIC_BACKEND_API_URL=http://backend:8000/api/
      - PUBLIC_BACKEND_API_EXPOSED_URL=https://ciso.sample.dev/api/
      - PROTOCOL_HEADER=x-forwarded-proto
      - HOST_HEADER=x-forwarded-host
    networks:
      - traefik
    depends_on:
      - backend
    labels:
      traefik.enable: true
      traefik.http.routers.ciso.rule: "Host(`ciso.sample.dev`) && Pathprefix(`/`)"
      traefik.http.routers.ciso.entrypoints: websecure
      traefik.http.routers.ciso.tls: true
      traefik.http.services.ciso.loadbalancer.server.port: 3000
      traefik.http.middlewares.cisopathstrip.stripprefix.prefixes: /
    restart: unless-stopped

console-export-2025-2-21_16-54-21.txt
_ciso-frontend_logs.txt

@siddjellali
Copy link

same here

@ab-smith ab-smith changed the title Never change through login to next page after initial deploy [traefik ] No change on login after the initial deploy Feb 21, 2025
@ab-smith ab-smith changed the title [traefik ] No change on login after the initial deploy [traefik] No change on login after the initial deploy Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants