cli icon indicating copy to clipboard operation
cli copied to clipboard

keep getting "the daemon is not active" even after running hyp daemon start

Open resession opened this issue 2 years ago • 18 comments

restarted computer, reinstalled hypercore-cli but i still keep getting "the daemon is not active", any ideas to fix this?

resession avatar Sep 06 '21 01:09 resession

Encountering the same issue on two machines. Debian Buster and Windows 10 both running Node.js 16.9.1. I am not encountering this on a third Debian Buster instance running Node 16.9.1, where the daemon starts and is seeding.

PS C:\Users\metanomial> hyp daemon start
Hyperspace daemon started
Mirroring daemon started
Daemon is running.
PS C:\Users\metanomial> hyp daemon status
Daemon not active

metanomial avatar Sep 19 '21 10:09 metanomial

I'm seeing this as well on macOS 11.5.2, node 16.9.1. A workaround for me was to install hyperspace directly npm i hyperspace -g and run the daemon directly in the foreground using $ hyperspace

Actually, that fixed hyp daemon status but other commands, hyp info, hyp create drive, still report The daemon is not active.

cablehead avatar Sep 30 '21 16:09 cablehead

I am having this same issue. I can't create hyperdrives.

Octalbyte avatar Dec 01 '21 18:12 Octalbyte

I guess this has something to do with the address not being hole-punchable? First terminal: image Second one: image When I tried to hyp create drive, hyp daemon start or hyp daemon status first terminal would log: Remote client opened Remote client closed

Octalbyte avatar Dec 01 '21 18:12 Octalbyte

I also had this problem, but downgraded node to v14 and then it worked. Unsure if that was related, but that was something that changed that made it work. Could be worth trying out at least.

ralphtheninja avatar Dec 09 '21 17:12 ralphtheninja

I am having this same issue. I can't create hyperdrives.

$ hyp daemon start
Hyperspace daemon started
Mirroring daemon started
Daemon is running.
$ hyp daemon status
Daemon not active
$ node -v 
v17.2.0

felixdrp avatar Dec 13 '21 20:12 felixdrp

It would be nice if some of you could try downgrading node to version 14 and see if that helps you.

ralphtheninja avatar Dec 13 '21 22:12 ralphtheninja

I cloned the git repo to troubleshoot this issue.

It prints The daemon is not active when running anything other than hyp daemon or hyp beam because hyper.setup() fails:

https://github.com/hypercore-protocol/cli/blob/cd56bb6074b03733aece8b6a8716b8dd90f8ee4d/bin/hyp.js#L104-L114

Which fails because it fails to connect to either hyperspace or the mirroring service:

https://github.com/hypercore-protocol/cli/blob/cd56bb6074b03733aece8b6a8716b8dd90f8ee4d/lib/hyper/index.js#L15-L18

So far, I got it working by simply:

$ npm i -g hyperspace hyperspace-mirroring-service
$ hyperspace
$ hyperspace-mirroring-service

Now it works:

$ hyp info --live
No hypers active.

specious avatar Jan 01 '22 19:01 specious

Same here, node v16.13.1, macos 12.1. It should be "auto-connecting", right?

Also BeakerBrowser couldn't connect to hyper:// addresses either, not sure if it's related or not.

alexindigo avatar Jan 09 '22 03:01 alexindigo

Check out PR #57 and see if it works.

specious avatar Jan 09 '22 03:01 specious

was on node 17, downgraded to 14 and it worked

robindiddams avatar Jan 11 '22 15:01 robindiddams

Check out PR #57 and see if it works.

worked for me :+1:

UnknownCypher avatar Feb 07 '22 18:02 UnknownCypher

Linux with node v16.13.2 does not work, either. Same behaviour.

dwehrmann avatar Feb 22 '22 13:02 dwehrmann

Downgraded to Nodejs v14 after all these comments. Still getting the same response.

$ hyp daemon start
Hyperspace daemon started
Mirroring daemon started
Daemon is running.
$ hyp info --live
The daemon is not active. Please run:

  hyp daemon start

marvinpoo avatar Mar 04 '22 14:03 marvinpoo

If someone could look at PR #57 that would be very helpful.

@pfrazee, could you take a moment?

specious avatar Mar 04 '22 18:03 specious

@specious I'm sorry, I really can't -- I'm engaged with a new job rn, I have to punt this to the hypercore team

pfrazee avatar Mar 04 '22 20:03 pfrazee

If someone could look at PR #57 that would be very helpful.

@pfrazee, could you take a moment?

This hotfix seems to solve the problem. Thank you!

marvinpoo avatar Mar 07 '22 10:03 marvinpoo

Solves it :tada:

luandro avatar Mar 10 '22 18:03 luandro