Uptime-Kuma-Web-API icon indicating copy to clipboard operation
Uptime-Kuma-Web-API copied to clipboard

Unable to authenticate

Open midikeyboard opened this issue 9 months ago • 4 comments

Currently im unable to authenticate. ive recreated the user. checked permissions and logs. just returns faulty credentials at all times.

image

i have tried the credentials listed in the compose file (admin + my pass) and the credentials for the webui. neither work.

midikeyboard avatar May 02 '24 08:05 midikeyboard

i removed the credentials when posting this comment.


services:
  uptime-kuma:
    image: louislam/uptime-kuma:latest
    container_name: kuma
    volumes:
      - ./uptime-kuma-data:/app/data
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 3000:3001
    restart: unless-stopped
    environment:
      - UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=true
  api:
    container_name: backend
    image: medaziz11/uptimekuma_restapi:latest
    volumes:
      - api:/db:rwx
    restart: unless-stopped
    environment:
      - KUMA_SERVER=
      - KUMA_USERNAME=
      - KUMA_PASSWORD=
      - ADMIN_PASSWORD=
    depends_on:
      - uptime-kuma
    ports:
      - "8001:8000"
  watchtower:
    container_name: watchtower
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
    image: containrrr/watchtower
    restart: unless-stopped
    environment:
      - WATCHTOWER_CLEANUP=true
      - WATCHTOWER_SCHEDULE=0 0 4 * *```

midikeyboard avatar May 02 '24 08:05 midikeyboard

when authenticating with the credentials listed above i receive this response:

{
    "detail": {
        "message": "Incorrect Kuma credentials"
    }
}

when using the webui credentials i receive:

{
    "detail": {
        "message": "Incorrect username or password"
    }
}

midikeyboard avatar May 02 '24 08:05 midikeyboard

the request hangs for about 5 - 10 seconds when entering the correct credentials. it still present me with incorrect credentials message.

when i use the wrong password on purpose the request closes in 232ms.

midikeyboard avatar May 14 '24 07:05 midikeyboard

I found out in this isssue #66 that you have to delete the volume to reset the credentials

ItsMeRomian avatar Sep 01 '24 14:09 ItsMeRomian