CONSTANT restarting
Kore-Development opened this issue · comments
Issue Description:
Constantly restarts the container
Docker Run Command:
export LANCACHE_IP=`hostname -I | cut -d' ' -f1`
docker run --restart unless-stopped --name lancache -v /cache/data:/data/cache -v /cache/logs:/data/logs -p 80:80 lancachenet/monolithic:latest
docker run --restart unless-stopped --name lancache-dns -p 53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=$LANCACHE_IP lancachenet/lancache-dns:latest
docker run --restart unless-stopped --name lancache-sniproxy -p 443:443 lancachenet/sniproxy:latest
echo Please configure your dhcp server to serve dns as $HOST_IP
Docker Container Output:
No errors
I have never used Docker.
and going to http://54.39.252.122/ comes up with HTTP error 508
What's the output of docker logs lancache-dns
Also, what do you think is at 54.39.252.122 because a 508 is not a cache error, that's coming from the source server
_ _ _
| | | | | |
___| |_ ___ __ _ _ __ ___ ___ __ _ ___| |__ ___ _ __ ___| |_
/ __| __/ _ \/ _` | '_ ` _ \ / __/ _` |/ __| '_ \ / _ \ | '_ \ / _ \ __|
\__ \ || __/ (_| | | | | | | (_| (_| | (__| | | | __/_| | | | __/ |_
|___/\__\___|\__,_|_| |_| |_|\___\__,_|\___|_| |_|\___(_)_| |_|\___|\__|
If you are using USE_GENERIC_CACHE then you must set LANCACHE_IP
Repeated
You cache container didn't manage to find the ip of your cache.
What's the output of hostname -I | cut -d' ' -f1
and hostname -I
Do all the machines on your network have a public IP?
Is this machine inside your network, you can't have a cache box external to the network
Assuming this is an internal cache however:
For some reason LANCACHE_IP wasn't set when you ran the commands. My guess is you forgot the export line
docker stop lancache-dns
docker rm lancache-dns
docker run --restart unless-stopped --name lancache-dns -p 53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=54.39.252.122 lancachenet/lancache-dns:latest
Should get you up and running
Do all the machines on your network have a public IP?
Is this machine inside your network, you can't have a cache box external to the networkAssuming this is an internal cache however:
For some reason LANCACHE_IP wasn't set when you ran the commands. My guess is you forgot the export line
docker stop lancache-dns docker rm lancache-dns docker run --restart unless-stopped --name lancache-dns -p 53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=54.39.252.122 lancachenet/lancache-dns:latest
Should get you up and running
this helped me. Thanks