ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
5.52k stars 255 forks source link

Onboarding (set a new admin password) after every update #1881

Closed pcatlin closed 5 months ago

pcatlin commented 5 months ago

Environment

Docker

Version

0.14.6

Describe the problem

After every update since passwords were introduced, I am asked to set a new username and password to begin using homarr. Is something wrong in my docker compose file or is this a bug in the onboarding system?

The board config is there after the onboarding has been completed, so no problem there...

Thanks!

Logs

server logs:

Migrating database...
yarn run v1.22.19
$ ts-node ./migrate.ts
Done in 1.96s.
cp: cannot stat '/app/data/default.json': No such file or directory
Starting production server...

Context

my docker compose file contains just basic config:

#---------------------------------------------------------------------#
#     Homarr - A simple, yet powerful dashboard for your server.     #
#---------------------------------------------------------------------#
services:
  homarr:
    container_name: homarr
    image: ghcr.io/ajnart/homarr:latest
    restart: unless-stopped
    volumes:
      - /srv/ssd/config/homarr/configs:/app/data/configs
      - /srv/ssd/config/homarr/data:/app/data
      - /srv/ssd/config/homarr-icons:/app/public/icons
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - '7575:7575'

Please tick the boxes

github-actions[bot] commented 5 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

Meierschlumpf commented 5 months ago

Have you mounted the /data folder?

pcatlin commented 5 months ago

no, only /app/data

Meierschlumpf commented 5 months ago

You need to add it, see here:

version: '3'
#---------------------------------------------------------------------#
#     Homarr - A simple, yet powerful dashboard for your server.     #
#---------------------------------------------------------------------#
services:
  homarr:
    container_name: homarr
    image: ghcr.io/ajnart/homarr:latest
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
      - ./homarr/configs:/app/data/configs
      - ./homarr/icons:/app/public/icons
      - ./homarr/data:/data
    ports:
      - '7575:7575'
pcatlin commented 5 months ago

ah yeah, thanks. sorry about that, my fault 👍

Meierschlumpf commented 5 months ago

no problem ;)