devops-works/binenv

Unable to read distributions error="unable to fetch distributions: Get \"https://raw.githubusercontent.com/devops-works/binenv/master/distributions/distributions.yaml\": proxyconnect

kenni-shin opened this issue · 6 comments

Is there any way don't check or skip distributions.yaml file if have offline system without internet access?

Hello @kenni-shin
Can you tell me what command you are executing and what you are trying to achieve ?

Im trying use downloaded binaries in .binenv in docker without .cache/binenv and .config/binenv. Just thinking is there any way to skip fetchDistributions like with env variable or something.

There is no need for the network to be up to use already installed binaries:

$ ping -c1 8.8.8.8
ping: connect: Network is unreachable
$ which yq
/home/user/.binenv/yq
$ yq -V
yq (https://github.com/mikefarah/yq/) version 4.25.1

Very strange ill getting this on binary launch and ill coped only .binenv folder.

2024-02-07T21:26:38Z INF updating distribution list
2024-02-07T21:27:08Z ERR unable to read distributions error="unable to fetch distributions: Get \"[https://raw.githubusercontent.com/devops-works/binenv/master/distributions/distributions.yaml\](https://raw.githubusercontent.com/devops-works/binenv/master/distributions/distributions.yaml/)": proxyconnect tcp: dial tcp 192.168.1.1:8888: i/o timeout"
Error: Process completed with exit code 1.

can you paste the command you are running please ?

I tried to make docker image with preinstalled binaries with command binenv install -l, but coped only /root/.binenv dir.
So when have tried to execute binary directly like /root/.binenv/sops and got this error.
Solving this problem coping /.config/binenv and .cache/binenv.
We can close this issue ill think.