-
Notifications
You must be signed in to change notification settings - Fork 3
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
issue in node-6.10.2 capstan package #16
Comments
Hi, unfortunately So in your meta/package.yaml: name: demo
title: demo
author: me
require:
- node-6.10.2 # <------ require node manually like this and then in meta/run.yaml: runtime: native
config_set:
app:
bootcmd: /node /my/server.js # <------- this is what will be run
config_set_default: app Please let me know if it works! |
Hi @miha-plesko, Thanks for the reply.. I am getting the below error now after trying the above one.. $ sudo capstan run ui Aborted [backtrace] |
Thanks for replying @ukeshkumar. It seems like unikernel is now built, but it crashes when your Node.js application is run (at some point). @justinc1 could you please skim through the error if your sharp eye sees something obvious? @ukeshkumar it would be very helpful if you could share your Node.js file that crashes, so that we can reproduce. My guess is that one of npm libraries calls some system function that is not yet implemented in OSv... Did you make double sure that |
I've tested just now with the simplest case, a |
The
|
He's using our precompiled Capstan package @ukeshkumar may I ask you to perform these two steps (I'm attaching my output as well, you should get something similar): 1 - Compose unikernel $ DISABLE_KVM=true capstan package compose my-unikernel
Command line will be set based on config_set_default attribute of meta/run.yaml
Resolved runtime into: native
Importing my-unikernel...
Importing into /home/miha/.capstan/repository/my-unikernel/my-unikernel.qemu
Uploading files to /home/miha/.capstan/repository/my-unikernel/my-unikernel.qemu...
Setting cmdline: --norandom --nomount --noinit /tools/mkfs.so; /tools/cpiod.so --prefix /zfs/zfs; /zfs.so set compression=off osv
Uploading files 38 / 38 [========================] 100.00% 0s
All files uploaded
Command line set to: 'runscript /run/hello;' 2 - Run unikernel $ DISABLE_KVM=true capstan run my-unikernel
Empty command line will be set for this image
Created instance: my-unikernel
OSv v0.24-462-gd9a8771
eth0: 192.168.122.15
Hello World Please let us know if you get anything strange. |
Hi And I have tried sample hello world program in Node.js version 6.10.2, which is working. |
The application has been written in Node.js version 8.4.0 and the team told that it should works fine with 6.10.2 (with warnings). |
Hi @ukeshkumar, could you please quickly test the application locally (on your machine, not on OSv) to see if it works on 6.10.2? If it works locally, then it's probably an issue on our side (missing OSv feature or something). The "recipe" for preparing Node 6.10.2 package can be found here: https://github.com/mikelangelo-project/capstan-packages/blob/master/docker_files/recipes/node-6.10.2/build.sh. But let me try to compile 8.4.0 for you right now. |
Unfortunately there are some errors compiling node 8.4.0 and 8.9.4 package that I'm not sure how to resolve right now. Please let me know if it works on 6.10.2 locally. If it does, then we need to figure what line in your Node.js code causes the error to debug further. When I have some more time I'll try to prepare 8.9.4 package... |
Yes.. it is working locally. |
Herewith attached sample nodejs project, even that also producing same trace. It would be great if you could help me in solving the issue.. |
Thanks @ukeshkumar , I'll look into it. |
Hi @ukeshkumar, sorry for delay. I've been playing with your application today. My initial assumption was that there is some nasty npm dependency that needs to be I think the problem is somewhere in OSv code itself, not the node package or Capstan, so I've opened an issue there: cloudius-systems/osv#940 Hopefully OSv authors will be able to resolve it... |
@ukeshkumar I'm not familiar with fuse-box, but is it possible to do the bundling in advance on your host machine and only put result into unikernel? So that fuse-box wouldn't be run in unikernel at all. We're trying to debug what is causing problems to fuse-box, please see here. |
Hi,
I am trying to build image based on node-6.10.2. But by default it is taking node-4.4.5 also (for runtime node).
And while executing the the main js file, it is executing with 4.4.5 version instead of 6.10.2 version.
I have created node (symbolic link file) points to '/bin/libnode-6.10.2.so' file. I am getting the following error,
symlink /bin/libnode-6.10.2.so /home/ukesh/code/mpm-pkg/node: file exists
I am using the below,
Could you please help me to resolve this issue ?
The text was updated successfully, but these errors were encountered: