Skip to content
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

connection error at installation #2358

Closed
bussiere opened this issue Feb 18, 2016 · 5 comments
Closed

connection error at installation #2358

bussiere opened this issue Feb 18, 2016 · 5 comments

Comments

@bussiere
Copy link

bussiere@kusanagi:~/.gvm/pkgsets/go1.6/global/src/github.com/ipfs/go-ipfs$ make toolkit_upgrade
go get -u github.com/whyrusleeping/gx
go get -u github.com/whyrusleeping/gx-go
bussiere@kusanagi:~/.gvm/pkgsets/go1.6/global/src/github.com/ipfs/go-ipfs$ make install
gx --verbose install --global
installing package: go-ipfs-0.4.0
  - QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV not found locally, fetching into /home/bussiere/.gvm/pkgsets/go1.6/global/src/gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV
  - QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt not found locally, fetching into /home/bussiere/.gvm/pkgsets/go1.6/global/src/gx/ipfs/QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt
  - fetching QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV via ipfs api
  - fetching QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt via ipfs api
  - QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn not found locally, fetching into /home/bussiere/.gvm/pkgsets/go1.6/global/src/gx/ipfs/QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn
  - fetching QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn via ipfs api
  - Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH not found locally, fetching into /home/bussiere/.gvm/pkgsets/go1.6/global/src/gx/ipfs/Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH
  - QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T not found locally, fetching into /home/bussiere/.gvm/pkgsets/go1.6/global/src/gx/ipfs/QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T
  - fetching QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T via ipfs api
  - fetching Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH via ipfs api
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn after a second...
  - QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4 not found locally, fetching into /home/bussiere/.gvm/pkgsets/go1.6/global/src/gx/ipfs/QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt after a second...
  - fetching QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4 via ipfs api
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4 after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4 after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
retrying fetch Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH after a second...
retrying fetch QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV after a second...
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: [1 / 6 ] parallel fetch: failed to fetch package: QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T: Post http://127.0.0.1:5001/api/v0/get?arg=QmYvsG72GsfLgUeSojXArjnU6L4Wmwk7wuAxtNLuyXcc1T&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: [2 / 6 ] parallel fetch: failed to fetch package: QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn: Post http://127.0.0.1:5001/api/v0/get?arg=QmQopLATEYMNg7dVqZRNDfeE2S1yKy8zrRh5xnYiuqeZBn&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH&stream-channels=true&encoding=json&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: [3 / 6 ] parallel fetch: failed to fetch package: Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH: Post http://127.0.0.1:5001/api/v0/get?arg=Qmazh5oNUVsDZTs2g59rq8aYQqwpss8tcUWQzor5sCCEuH&stream-channels=true&encoding=json&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: [4 / 6 ] parallel fetch: failed to fetch package: QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4: Post http://127.0.0.1:5001/api/v0/get?arg=QmUBogf4nUefBjmYjn6jfsfPJRkmDGSeMhNj4usRKq69f4&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: [5 / 6 ] parallel fetch: failed to fetch package: QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt: Post http://127.0.0.1:5001/api/v0/get?arg=QmZy2y8t9zQH2a1b8q2ZSLKp17ATuJoCNxxyMFG5qFExpt&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: from shell.Get():  Post http://127.0.0.1:5001/api/v0/get?arg=QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused
ERROR: [6 / 6 ] parallel fetch: failed to fetch package: QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV: Post http://127.0.0.1:5001/api/v0/get?arg=QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV&encoding=json&stream-channels=true&: dial tcp 127.0.0.1:5001: getsockopt: connection refused

regards and thanks

@whyrusleeping
Copy link
Member

looks like it tried to use your local daemon, but your local daemon wasnt online... a quick fix is to make sure your daemon isnt running and then rm ~/.ipfs/api, then try again

@ghost
Copy link

ghost commented Feb 18, 2016

Yeah if you kill the daemon, the ~/.ipfs/api file is left behind and gx will see it and use the API specified within. Remove it and it should work.

@chriscool
Copy link
Contributor

Could it be possible to configure gx so that it tries another daemon if it fails with the first one?
Also maybe gx could fail faster in case of "connection refused" instead of retrying the same address and port.

@bussiere
Copy link
Author

i had to clean up .ipfs from a past installation my bad and thanks

@whyrusleeping
Copy link
Member

@chriscool good idea, i'll have it run a check to make sure the endpoint it selects is actually up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants