solo-io/unik

Connection refused while trying "Run your first Node.js unikernel" guide

beriberikix opened this issue ยท 12 comments

One I run unik build, it fails as I get the following:

jberi:testunik ๐Ÿš€  $ unik build --name myImage --path ./ --base rump --language nodejs --provider virtualbox
INFO[0000] running unik build                            args= base=rump force=false host=localhost:3000 language=nodejs mountPoints=[] name=myImage path=./ provider=virtualbox
INFO[0000] App packaged as tarball: /var/folders/66/97n3236x5cq00vgfcj6cdsyc0000gn/T/sources.tar.gz.817030311
 
ERRO[0000] build failed: [cmd/build.go:105] building image failed: {[client/images.go:60] request failed: {[lxhttpclient/httpclient.go:339] error performing post request: {Post http://localhost:3000/images/myImage/create?base=rump&lang=nodejs&provider=virtualbox&args=&mounts=&force=false&no_cleanup=false: dial tcp [::1]:3000: getsockopt: connection refused}}} 

I noticed that running unik daemon outputted INFO[0000] UDP Server listening on 0.0.0.0:9967, so I tried unik target --host localhost --port 9967 but same results.

My setup:
macOS High Sierra 10.3.3
VirtualBox 5.2.6 r120293
Docker 17.12.0-ce-mac49
Node v9.3.0

the unik daemon isn't running. are you sure that it's running?
if so, please paste the daemon logs here. you can get more verbose logs by running with unik daemon --debug

it looks like the instance listener is up and running

can you grab a screenshot of the instance listener vm logs?

Happy to, not sure how to exactly :)

open up virtualbox -> click on the instance listener vm (VboxInstanceListener) -> show
then take a screenshit (e.g. with printscreen).

Was the gist what you needed? Anything I can provide to help diagnose?

Encountering the same issue following the Java guide, any updates? :/

Same problem here (tried same troubleshooting steps including changing the port to 9967 because I saw the same messages with the unik daemon)

unik master branch 56aac9e
MacOS X 10.13.3
NodeJS 8.4.0
NPM 5.3.0
VirtualBox 5.2.8

I have the same problem! Has anyone managed to resolve the issue ?

Once i run my express code on goormide, it constantly shows 'Connection refused', can anyone help me resolve it?