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 #129

Open chenxudong2020 opened 10 months ago

chenxudong2020 commented 10 months ago

After executing the container startup using the following command, the log error is as follows

image

docker run -p 9999:80 --name mycamera \ -e AGENT_USERNAME=xxx\ -e AGENT_PASSWORD=xxx \ -e AGENT_TIMEZONE=GMT+8 \ -v $(pwd)/agent/config:/home/agent/data/config \ -v $(pwd)/agent/recordings:/home/agent/data/recordings \ -d --restart=always kerberos/agent:latest

cedricve commented 10 months ago

hey @chenxudong2020 did you copy the config.json? Review here: https://github.com/kerberos-io/agent/tree/master/deployments/docker#attach-a-volume

chenxudong2020 commented 10 months ago

I couldn't find this file, so I didn't copy it either. Your answer has already been found. Thank you

chenxudong2020 commented 10 months ago

According to your steps, you added config.json and restarted the container with an error message

image The underlying system is synology 7.2 system kernel, which is 4.4

cedricve commented 9 months ago

Looks like the timezone isn't set correctly.

HugoDL commented 3 months ago

I had the same problem running on Docker. To fix it, I created the config.json file using this one as an example: config.json