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 refused while trying "Run your first Node.js unikernel" guide #152

Open
beriberikix opened this issue Jan 27, 2018 · 12 comments
Open

Comments

@beriberikix
Copy link
Contributor

beriberikix commented Jan 27, 2018

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
Copy link
Member

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
Copy link
Contributor Author

@ilackarms
Copy link
Member

it looks like the instance listener is up and running

@ilackarms
Copy link
Member

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

@beriberikix
Copy link
Contributor Author

Happy to, not sure how to exactly :)

@ilackarms
Copy link
Member

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

@beriberikix
Copy link
Contributor Author

@beriberikix
Copy link
Contributor Author

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

@GaetanLongree
Copy link

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

@kstewart83
Copy link

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
Copy link

rbehravesh commented Jan 11, 2019

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

@taha20181
Copy link

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

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

6 participants