Moving Grafana from one Docker Server to another - huge problems

Hello!

I am currently in the process of migrating from my synology based homelab setup to proxmox and currently i am fighting with issues for hours that i seem not to be able to solve on my own.

I copied my docker-compose.yml to my new server and tried to compose up -d to set up grafana but it does not work. The issues seems to be the bind mount since there is no data written at all. this occurs when there is no folder (docker creates it) but also when i create the folder first.

When I copied the content of the folder from the old server (grafana.db and a bunch of other folders) it works but i am not able to log in with my previous password (admin - pw).

i took a look at the db with a sqlite browser and tried to reset the password but my approaches did not succeed so far.

i also tried 777 on the grafana folder in case of some weird permission issues but this also did not help.

Do you have any other ideas?

yml:

  grafana:
    image: grafana/grafana:latest
    container_name: Grafana
    ports:
      - 3010:3000
    networks:
      - logging-network
    environment:
      GF_AUTH_ANONYMOUS_ENABLED: 'true'
      GF_SECURITY_ALLOW_EMBEDDING: 'true'
    volumes:
      - ./grafana:/var/lib/grafana
    restart: always

see if this works for you?

1 Like

Thank you!
The Link did not help too much but at the bottom there was a suggestion for another thread that helped me: New Docker Install with persistent storage, Permission problem - #20 by jameshueston
Indeed grafana wasn’t able to write to the folder i manually created.
I added the user-id to the docker-compose.yml and now it works!
Thanks a lot! That took way longer than it had to :wink:

1 Like