Skip to content

NodeJS hang on user input #79

@SorenEricMent

Description

@SorenEricMent

I was working on adding node and gnupg to run.yaml with this commit unikraft/app-elfloader#33 where I run into the problem: NodeJS is able to launch and start the shell, but it hangs on user input.
The -enable-kvm -cpu host script patch is used

By hang: the shell appeared as

Booting from ROM..1: Set IPv4 address 172.44.0.2 mask 255.255.255.0 gw 172.44.0.1
en1: Added
en1: Interface is up
Powered by
o.   .o       _ _               __ _
Oo   Oo  ___ (_) | __ __  __ _ ' _) :_
oO   oO ' _ `| | |/ /  _)' _` | |_|  _)
oOo oOO| | | | |   (| | | (_) |  _) :_
 OoOoO ._, ._:_:_,\_._,  .__,_:_, \___)
             Prometheus 0.14.0~018fe1a4
Welcome to Node.js v18.15.0.
Type ".help" for more information.
> 
Error: Could not get the home directory.
REPL session history will not be persisted.
> 

But not responding to any user input

run.yaml used:

  - name: node
    rootfs: ../dynamic-apps/node
    command: /bin/node
    memory: 512
    networking: True

Command used:
./scripts/build/make-qemu-x86_64-9pfs.sh
./scripts/run/qemu-x86_64-9pfs-node.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions