solo-io / unik

The Unikernel & MicroVM Compilation and Deployment Platform
Apache License 2.0
2.7k stars 191 forks source link

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

Open beriberikix opened 6 years ago

beriberikix commented 6 years ago

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

ilackarms commented 6 years ago

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

beriberikix commented 6 years ago

Here ya go: https://gist.github.com/beriberikix/ef4b059145c16aef4067f75822e42532

ilackarms commented 6 years ago

it looks like the instance listener is up and running

ilackarms commented 6 years ago

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

beriberikix commented 6 years ago

Happy to, not sure how to exactly :)

ilackarms commented 6 years ago

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

beriberikix commented 6 years ago

Here ya go! https://gist.github.com/beriberikix/84529280c9af58829a8399c8e5261e38

beriberikix commented 6 years ago

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

GaetanLongree commented 6 years ago

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

kstewart83 commented 6 years ago

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

rbehravesh commented 5 years ago

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

taha20181 commented 4 years ago

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