timers.js - ECONNRESET after list.close() - iisnode , iis7,5 , windows serwer 2008 r2

132 views
Skip to first unread message

lukasz...@gmail.com

unread,
Jan 22, 2015, 2:51:39 AM1/22/15
to jsre...@googlegroups.com
Hi 
I'm new in iis node.js area and I' couldn't make jsreport running however  I was able to find where the application crash. There wasn't any information in log files.
I found that application crashes after list.close (line 134)

unfortunatelly console do not show anything besides:
...
"Runtime.getProperties failed.
ReferenceError: frame_index is not defined"
Error: read ECONNRESET
Check there is no other debugger client attached to port 5858.

I have the newest node.js version for windows.

I will be grateful for help. 

Jan Blaha

unread,
Jan 22, 2015, 8:25:39 AM1/22/15
to jsre...@googlegroups.com
Unfortunately the error you provided comes from a node.js core library and doesn't say anything to me.

Have you followed the steps for installing jsreport on iis provided here?
http://jsreport.net/downloads

Is this just a problem of jsreport? / Are you able to run any simple node.js app in your iis?

Please note that jsreport has currently some issues with attached debugger, so please don't try to attach debugger into it.

Just for the record I have just tried installing jsreport into iisnode running on Windows Server 2012 and it worked.

Łukasz Kiedrowski

unread,
Jan 22, 2015, 8:40:05 AM1/22/15
to jsre...@googlegroups.com
Hi, 
thanks for answer. I followed those instructions at each point. The error was also without debug.
My onyl changes was adding  <iisnode 
nodeProcessCommandLine="&quot;%programfiles%\nodejs\node.exe&quot;"
loggingEnabled="true"


/>
and renaming index.js to server.js

I will check other js aps.

Jan Blaha

unread,
Jan 22, 2015, 8:44:22 AM1/22/15
to jsre...@googlegroups.com
Why did you rename index.js to the server.js?

Step 5 in the installation step
node node_modules/jsreport --init

This should create server.js in the root application folder which starts jsreport.

Łukasz Kiedrowski

unread,
Jan 22, 2015, 8:47:26 AM1/22/15
to jsre...@googlegroups.com
I've tested example iisnode helloword app and it seems to work:
"Hello, world! [helloworld sample; iisnode version is 0.2.16, node version is v0.10.35]"

when running jsreport server I got:

my net framework version on server is 4.0

Jan Blaha

unread,
Jan 22, 2015, 8:58:21 AM1/22/15
to jsre...@googlegroups.com
- please respond to the renaming index.js I mentioned in the previous post
- make sure jsreport is running in iis as a separate website
- make sure that app pool user has full control access to the jsreport app folder. (the username looks usually like IIS AppPool\app-pool-name)

Łukasz Kiedrowski

unread,
Jan 22, 2015, 9:01:51 AM1/22/15
to jsre...@googlegroups.com
ok. My fault. but the file server.js wasn't created in node_modules/jsreport directory however output says it was (there is only package.json)
"
C:\Program Files\nodejs>node node_modules/jsreport --init
Should be empty: []
Creating server.js, config.js and package.json
Done
"


Jan Blaha

unread,
Jan 22, 2015, 9:09:11 AM1/22/15
to jsre...@googlegroups.com
Ah. I should update the message, it is misleading. It should create these files in the working directory, in your case in C:\Program Files\nodejs
package.json
server.js
prod.config.json

Then you run server.js to start the app and all the data and logs are stored at the app level. The node_modules/jsreport directory is npm package you can for example later update without touching your application files.

lukasjakin

unread,
Jan 22, 2015, 9:16:26 AM1/22/15
to jsre...@googlegroups.com
- make sure jsreport is running in iis as a separate website - yes it is
- make sure that app pool user has full control access to the jsreport app folder. (the username looks usually like IIS AppPool\app-pool-name) - yes I bind dedicated pool(net version 4.0, managed pipeline mode: Integrated ?) with full permissions to jsreport directory

lukasjakin

unread,
Jan 22, 2015, 9:26:33 AM1/22/15
to jsre...@googlegroups.com
ok I've changed webpage root dir from "nodejs/node_modules/jsreport" to "nodejs/" and it is working now. Thanks a lot! 

Jan Blaha

unread,
Jan 22, 2015, 9:32:10 AM1/22/15
to jsre...@googlegroups.com
Great!
Reply all
Reply to author
Forward
0 new messages