Skip to content

[BUG] MFA Error Login error TypeError: Cannot read properties of undefined (reading 'msg') #123

@tempaone

Description

@tempaone

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When i try to login via reverse proxy it gives me an error as its prompting me to but in a mfa code but there is no fied to do it,
error

Login error
TypeError: Cannot read properties of undefined (reading 'msg')

very werid as on my other instances i dont get a MFA code so not sure why.

Expected Behavior

When click sign in, a mfa field to appear to add the code.

Steps To Reproduce

have MFA on and try to sign in via domain name.

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

# Use root/example as user/password credentials
version: '3'

services:
  unifi-network-application:
    image: "lscr.io/linuxserver/unifi-network-application:latest"
    container_name: "unifi-network-application"
    depends_on:
      - mongo-unifi
    environment:
      - "PGID=${ID}"
      - "PUID=${ID}"
      - "TZ=${TZ}"
      - "MONGO_USER=unifi"
      - "MONGO_PASS=sharingiscaring223"
      - "MONGO_HOST=mongodb-unifi"
      - "MONGO_PORT=27017"
      - "MONGO_DBNAME=unifidb"
      - "MEM_LIMIT=1024"
      - "MEM_STARTUP=1024"
    volumes:
      - "${APPFOLDER}/unifi-network-application:/config:rw"
    ports:
      - 8443:8443
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
      - 1900:1900/udp
      - 8843:8843
      - 8880:8880
      - 6789:6789
      - 5514:5514/udp
    restart: unless-stopped
    networks:
      - ${DOCKERNETWORK}
    security_opt:
      - "${SECURITYOPS}:${SECURITYOPSSET}"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=proxy"
      - "dockupdater.enable=true"
      - "traefik.http.routers.unifi-network-application-rtr.entrypoints=https"
      - "traefik.http.routers.unifi-network-application-rtr.rule=Host(`unifi-network-application.${DOMAIN}`)"
      - "traefik.http.routers.unifi-network-application-rtr.tls=true"
      - "traefik.http.routers.unifi-network-application-rtr.tls.certresolver=dns-cloudflare"
      - "traefik.http.routers.unifi-network-application-rtr.middlewares=chain-authelia@file"
      - "traefik.http.routers.unifi-network-application-rtr.service=unifi-network-application-svc"
      - "traefik.http.services.unifi-network-application-svc.loadbalancer.server.port=8443"
      - "traefik.http.services.unifi-network-application-svc.loadbalancer.server.scheme=https"

  mongo-unifi:
    image: "mongo:4.4.24"
    container_name: "mongodb-unifi"
    ports:
      - "${PORTBLOCK}:27017:27017"
    environment:
      - "PGID=${ID}"
      - "PUID=${ID}"
      - "TZ=${TZ}"
    volumes:
      - "${APPFOLDER}/mongo-unifi/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro"
      - "${APPFOLDER}/mongo-unifi/mongo_db:/data/db"
      - "${APPFOLDER}/mongo-unifi/config:/data/configdb"
    restart: "${RESTARTAPP}"
    command: 
      mongod --port 27017
    networks:
      - ${DOCKERNETWORK}
  
networks:
  proxy:
    driver: bridge
    external: true

Container logs

[migrations] started

[migrations] no migrations found

───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗

      ██║     ██╔════╝██║██╔═══██╗

      ██║     ███████╗██║██║   ██║

      ██║     ╚════██║██║██║   ██║

      ███████╗███████║██║╚██████╔╝

      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io

───────────────────────────────────────

To support LSIO projects visit:

https://www.linuxserver.io/donate/

───────────────────────────────────────

GID/UID

───────────────────────────────────────

User UID:    1000

User GID:    1000

───────────────────────────────────────

Linuxserver.io version: 8.6.9-ls70

Build-date: 2024-12-03T17:37:44+00:00

───────────────────────────────────────

    

[custom-init] No custom files found, skipping...

[ls.io-init] done.

:0 Permanent error code on allocate request: 420 - . This was after receiving a valid nonce

:0 TURN instance failed: TURN id:   3; fd: 220 0.0.0.0:36275 -> 141.101.90.1:3478 (all_interfaces) DTLS id:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions