I have an ubuntu server on Amazon and I'm trying to run node.js. The program has only one line:
console.log('Here I am.');
Nothing happens, and the program does not exit.
when I run ps x, I can see one [node] process in STAT D state:
751 ? D 0:04 [node]
The process cannot be stopped with sudo kill -9 751.
Before the problem, the node.js program went fine, as did my actual - much more complex - node.js program.
I even rebooted the ubuntu server and tried to run the node.js single-line test program right after the reboot. He hung and did not output anything.
node --version returns
v0.7.6-pre
Any ideas why this is happening? Is this a problem with an Amazon instance, installing node.js, or something else? nginx works fine on a single server, but node.js programs freeze as described above.
(as expected, the same code works very well on my local mac os x environment)
UPDATE: I will go back to stable version 0.6.12, but the same problem persists.
source share