Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Connection Refused on first run #46

Closed
subwolf opened this issue Jan 21, 2017 · 2 comments
Closed

Connection Refused on first run #46

subwolf opened this issue Jan 21, 2017 · 2 comments
Assignees
Labels

Comments

@subwolf
Copy link

subwolf commented Jan 21, 2017

Package Versions

Replace the values below using the output from storjshare --version.

  * daemon: 2.1.0, core: 6.0.14, protocol: 1.1.0

Replace the values below using the output from node --version.

7.4.0

Expected Behavior

First start, trying to fetch status of any nodes running with storjshare status.

Actual Behavior

root@subwolf-nas:~# storjshare status 

  * daemon is not running, starting...
stream.js:74
      throw er; // Unhandled stream error in pipe.
      ^

Error: connect ECONNREFUSED 127.0.0.1:45015
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
root@subwolf-nas:~# 
root@subwolf-nas:~# 
root@subwolf-nas:~# storjshare status 

┌─────────────────────────────────────────────┬──────────┬──────────┬──────────┬──────────┬──────────┐
│ Share                                       │ Status   │ Uptime   │ Restarts │ Peers    │ Shared   │
└─────────────────────────────────────────────┴──────────┴──────────┴──────────┴──────────┴──────────┘
root@subwolf-nas:~# 

Works fine after the first try. Maybe wait a a bit longer if the daemon is not running?

@CJClaude
Copy link

CJClaude commented Jan 21, 2017

Also seeing this. Tried issuing a killall, tried waiting a few minutes:

storj@rackserv ~ $ storjshare load

  • daemon is not running, starting...
    stream.js:74
    throw er; // Unhandled stream error in pipe.
    ^

Error: connect ECONNREFUSED 127.0.0.1:45015
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)

Waited 20 minutes and things now appear to be loading.

@44203 44203 added the bug label Jan 23, 2017
@44203 44203 mentioned this issue Feb 6, 2017
@44203 44203 self-assigned this Feb 6, 2017
@44203 44203 closed this as completed in #62 Feb 6, 2017
@44203 44203 removed the needs review label Feb 6, 2017
@JeromeGillard
Copy link

Still encountering in v2.3.0.

root@JGI02:~# storjshare load

  • daemon is not running, starting...
    stream.js:74
    throw er; // Unhandled stream error in pipe.
    ^

Error: connect ECONNREFUSED 127.0.0.1:45015
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
root@JGI02:~# storjshare load

  • snapshot /root/.config/storjshare/snapshot loaded
    root@JGI02:~# storjshare status

┌─────────────────────────────────────────────┬──────────┬──────────┬──────────┬──────────┬──────────┐
│ Share │ Status │ Uptime │ Restarts │ Peers │ Shared │
├─────────────────────────────────────────────┼──────────┼──────────┼──────────┼──────────┼──────────┤
│ f5782db1fc5d8c55c758d1dd95e6bb8d08dd6fb9 │ running │ 32s │ 0 │ 2 │ 7.32GB │
│ → /root/.storjshare │ │ │ │ │ (1%) │
└─────────────────────────────────────────────┴──────────┴──────────┴──────────┴──────────┴──────────┘
root@JGI02:~# storjshare --version

  • daemon: 2.3.0, core: 6.1.2, protocol: 1.1.0
    root@JGI02:~#

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

No branches or pull requests

4 participants