Closed HumanJHawkins closed 4 years ago
Don't detach it and look at the log.
We need the container logs
docker logs lancache
should be the secret sauce
Sorry for the delay... Originally I thought my logs were empty, but your secret sauce did the trick. The logs showed a different issue... Related to cache size, the documentation (main page here and at dockerhub) says "They accept the standard nginx notation for sizes (k/m/g/t) and durations (m/h/d)". It turns out "t" (or at least "1t") is an invalid size... Up through "g" only perhaps.
I spent a fair bit of time trying to find NGINX documentation to support this, but never found a list of the acceptable units. I think the safe thing would be to just remove the "t" from the documentation.
Relevant bit from the log was:
nginx: [emerg] invalid max_size value "max_size=1t" in /etc/nginx/conf.d/20_proxy_cache_path.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed
Thanks much.
Hello,
Please can you set the CACHE_DISK_SIZE environment variable to 1000g (rather than 1t) and try again?
You will likely need to 'docker stop
Cheers!
B.
Sorry to have been unclear. I did that and it worked. So this is just a documentation issue. I can make a pull request with a fix for the README.md file, but the same documentation is also copied to the main page at dockerhub. So I hesitated to do so, lest the instructions get updated on only one of two spots.
If you would be so kind as to do a PR we then copy it into docker hub. Thanks for the offer
Done. Thanks.
Verified fixed.
Describe the issue you are having
Suspect these two issues may be related so posting together. Symptoms/Issues:
(See "Output of containers" for the container and ports list.)
How are you running the container(s)?
DNS Configuration
Output of container(s)