agent icon indicating copy to clipboard operation
agent copied to clipboard

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

Open happytrudy opened this issue 2 years ago • 5 comments

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

happytrudy avatar Nov 29 '23 02:11 happytrudy

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

cedricve avatar Dec 03 '23 21:12 cedricve

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

happytrudy avatar Dec 04 '23 05:12 happytrudy

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

happytrudy avatar Dec 04 '23 08:12 happytrudy

Looks like the timezone isn't set correctly.

cedricve avatar Dec 29 '23 08:12 cedricve

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

HugoDL avatar Jun 20 '24 12:06 HugoDL