-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Misconfiguration of sources.list on lxc container #41
Comments
So the values in the sources.list are set to the host cacher within the container, correct? |
It means if we left '01-vagabond-proxy' on container then '/etc/apt/sources.list' should be like this: |
Okay, I have it replicated and see what's going on. The $MIRROR is provided to |
Is there a workaround for this? |
@rayrod2030 Sorry, the long weekend has me playing catchup. @alff just kicked a PR to the backing cookbook (chrisroberts/chef-vagabond#5) that I'll be merging shortly and reworking slightly so it can support containers pre and post lxc cookbook latest. |
@alff's PR is merged in the cookbook dev branch. If you are running on the current Thanks @alff ! |
@chrisroberts thank you my friend! |
I have tried stopping/deleting my existing lxc container and then running vagabond init again and I'm still seeing the same error. I've tried reinstalling the gem and it's pulling and installing the latest vagabond develop commit. How can I check that it's pulling the latest chef-vagabond cookbook code? Is it cached somewhere while vagabond runs? |
Yes, it's cached in |
Yeah, i prefer to completely erase of '/tmp/vagabond' before re-provision with newest internal cookbooks. |
Well full removal would mean loss of some state information stored there. |
Brilliant that did it! Thanks @chrisroberts and @alff |
Hi @chrisroberts,
i'm using 'develop' branch (47a657b) and trying to 'init' vagabond environment. It fails when container start command 'apt-get update' with error like:
"STDERR: W: Failed to fetch http://10.0.3.1:3142/archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/Packages 403 URL seems to be made for proxy but contains apt-cacher-ng port. Inconsistent apt configuration?"
After some diging i've found that apt-proxy settings on client is doubled.
According to this
https://www.unix-ag.uni-kl.de/~bloch/acng/html/config-servquick.html#config-client
for correct work we have to set up proxy settings by sources.list or apt.conf.d but not both variants at same time. In default container i see both variants and that why it won't work.
Host and guest os is ubuntu 12.04.
The text was updated successfully, but these errors were encountered: