lancachenet / lancache-dns

DNS Docker service for a lancache.
https://hub.docker.com/r/lancachenet/lancache-dns/
MIT License
282 stars 74 forks source link

CONSTANT restarting #83

Closed Kore-Development closed 4 years ago

Kore-Development commented 5 years ago

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.

Kore-Development commented 5 years ago

and going to http://54.39.252.122/ comes up with HTTP error 508

VibroAxe commented 5 years ago

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

Kore-Development commented 5 years ago

@VibroAxe

     _                                      _                       _   
    | |                                    | |                     | |  
 ___| |_ ___  __ _ _ __ ___   ___ __ _  ___| |__   ___   _ __   ___| |_ 
/ __| __/ _ \/ _` | '_ ` _ \ / __/ _` |/ __| '_ \ / _ \ | '_ \ / _ \ __|
\__ \ ||  __/ (_| | | | | | | (_| (_| | (__| | | |  __/_| | | |  __/ |_ 
|___/\__\___|\__,_|_| |_| |_|\___\__,_|\___|_| |_|\___(_)_| |_|\___|\__|

If you are using USE_GENERIC_CACHE then you must set LANCACHE_IP

Repeated

VibroAxe commented 5 years ago

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

Kore-Development commented 5 years ago

@VibroAxe image

VibroAxe commented 5 years ago

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

kraveir0 commented 4 years ago

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

this helped me. Thanks

HerrSammyDE commented 4 weeks ago

I had the same problem.

The log then said that 53:53/udp is already in use. This is also correct, from the Debian server itself.

How can I change this? It is an external server and has no internal network to the other server

astrolox commented 3 weeks ago

@HerrSammyDE I think the solution to your problem is to stop the dns server which Debian is running for you. Logically you only need one dns server, it's either this one or that one.

Also just because the symptom is the same (constant restarting) doesn't mean the cause is the same. Locking thread.