kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
691 stars 85 forks source link

Config file is not found ./data/config/config.json #103

Closed seth100 closed 1 year ago

seth100 commented 1 year ago

Hi,

I'm using the following docker-compose.yml file on my Raspberry Pi 4:

version: '3.9'

services:
  kerberos_agent1:
    image: "kerberos/agent:latest"
    ports:
      - "8080:80"
    env_file:
      - ./.env
    volumes:
      - /home/raspberry/kerberos/config:/home/agent/data/config
      - /home/raspberry/kerberos/recordings:/home/agent/data/recordings

and when I run docker compose up I get:

kerberos_agent1_eufy  | {"level":"error","msg":"Config file is not found ./data/config/config.json, trying again in 5s.","time":"2023-06-02T12:17:47+02:00"}

so it seems to be a permission related error.

I tried to run on the host the following commands (that were suggested on another issue):

# tried also 777
sudo chmod -R 755 kerberos
sudo chown 100:101 -R kerberos

but no luck!

How can I fix that? Thanks for your work!

cedricve commented 1 year ago

hello @seth100, do you have a config.json file in that directory /home/raspberry/kerberos/config ?

cedricve commented 1 year ago

@seth100 feel free to reopen..