zeromq.node icon indicating copy to clipboard operation
zeromq.node copied to clipboard

Node not starting when using zmq

Open alvarotrigo opened this issue 10 years ago • 7 comments

I'm porting my node application to another machine and I'm having troubles to start the webserver.

Whenever I add node app.js in the shell to start it, it just doesn't do anything, doesn't show any error and quit the script:

capture

The exact same version of my node application is working without troubes in other 2 machines. So I'm quite sure that the problem is no on the application itself, but in some missing software or dlls needed to run ZMQ.

Whenever I comment this line referencing ZMQ (and the related ones) the application runs as expected. It is only when I this line when the application is not able to run:

var zmq = require('zmq_rep');

What am I missing?

I'm trying to run it on Windows Server 2012 R2 Standard. 64 bits.

alvarotrigo avatar Jan 22 '15 12:01 alvarotrigo

:+1: Requires attention. Having the same issue.

mikaturunen avatar May 13 '15 12:05 mikaturunen

We've encountered the same issue. The problem can be manually fixed by running npm install in the zmq folder, which probably fixes some kind of binary incompatibility issue. The program exists when the first zmq "binary" call is made in here: https://github.com/JustinTulloss/zeromq.node/blob/master/lib/index.js#L19

EDIT: We have installed ZeroMQ 4.4. using the installer from here: http://zeromq.org/distro:microsoft-windows - perhaps this causes some kind of problem as zeromq.node seems to use the 3.x version of ZeromQ?

panuhorsmalahti avatar May 13 '15 12:05 panuhorsmalahti

The problem was that I had a compiled version of zmq which was not compatible with Windows 8. I had to compile it again... The funny thing is there was not a single error message...

alvarotrigo avatar May 13 '15 14:05 alvarotrigo

I'm using Windows Server 2008 R2. Node.js shutdowns when trying to call this function (the first native ZeroMQ function): function zmqVersion() { [native code] }

panuhorsmalahti avatar Jun 01 '15 13:06 panuhorsmalahti

This project has the DLLs embedded. Perhaps they're incompatible... I don't have a Windows box to do any testing on, but you could start looking there.

ronkorving avatar Jun 02 '15 02:06 ronkorving

Fixed by installing Microsoft Visual C++ 2010 Redistributable Package (x64).

panuhorsmalahti avatar Jun 02 '15 06:06 panuhorsmalahti

I think this should be mentioned in the documentation.

panuhorsmalahti avatar Jun 02 '15 06:06 panuhorsmalahti