-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Install Command Successful but no Service is Installed #380
Comments
I'd suggest replacing the |
Tried this. No luck. Still think something to do with this even with the |
Does the app run without node-windows on the impacted system? Also, is this Windows 10, 11, or a server edition? Microsoft has created a lot of problems over the last few weeks for Win 10 users. A quick search suggests some of their updates may manifest in kernelbase.dll errors like the one you're seeing. Does your app attempt to access any hardware on the user system, such as a camera, microphone, etc? |
Well, we are just hosting highcharts-export-server. So, shouldn't be using camera, mic, etc. Our server is (which I have no control over): OS Name: Microsoft Windows Server 2019 Standard Executing the same value as
I discovered a few things in trying to see if I could run
Here are the results from installing my service after the adjusting for these issues: Questions:
I don't know which runtime this is referring to, but maybe you have some ideas?
|
nodeOptions provides a way to pass node flags to the executable. See the options here. Also, you can ditch the
The last option is due to an old version of winsw with a modern .NET installation. Unfortunately, I never had time to update to a newer build of winsw. As time progressed, I realized it would be better to create our own wrapper (I prototyped one in Go but never released) than try to continue shoehorning into winsw. So, that is the ultimate plan, but I've not had time to pursue that. Some of these other issues may be causing the kernelbase.dll. There's not a clear way to tell because that dll is so generic. If you have any problems with the proxy, most servers respect the Hope that helps. |
Do you think there is anything I should do to try and resolve framework mismatches of winsw? Or you think that error message is a red herring? |
You could try an older version of .NET to see if it resolves the mismatch warning, but it really shouldn't matter. I don't know what "additional configuration" .NET is looking for. I wish I had more to offer in the way of troubleshooting. node-windows is very old at this point and edge cases are popping up (especially with how volatile Microsoft has been lately with updates). I'd originally planned to rewrite this project, but we have some ideas around far more robust tooling for creating/building/distributing apps that I think are a better use of the time. That could be a ways down the road though. In the meantime, if you keep running into issues with node-windows (especially if the .NET/winsw mismatch is a blocker), it might be worth looking into a Single Executable App. |
I think this was an issue with mix match .NET runtime version.
Try to update the file /node_modules/node-windows/bin/winsw/winsw.exe.config with the below
|
@khoale012000 Thanks for the suggestion (and probable solution), but read below for more info. @coreybutler So I resolved the issue. Bottom line was, I needed updated version of Failing server (note server info of Windows Server 2019): So, I believe my options to resolve the problem were:
After using my forked code/winsw.exe (2.12) it worked. |
One last question. The |
I have the following 'standard' service.js code (made some 'ugly' single liners to shorten code snippet).
When I install the service it reports success that the service has started, but it is not present in the Services snap-in, but service commands seem to behave as if all is ok.
Command flow
node service.js --install
- Reports service is running.telnet 127.0.0.1 10447
- Reports that it is unable to connect (proving that nothing is listening.node service.js --stop
- Reports that service stopped.node service.js --start
- Reports that service started.node service.js --uninstall
- Reports successful uninstall.node service.js --uninstall
- Run it a second time and reports that the service can not be found, implying that it was found and running in previous command.Here are screen shots of the flow:
Things I Tried:
D:\btr.services\HighchartsExportServer\node_modules\highcharts-export-server\bin\daemon
, so I granted full permissions to the user logging in toD:\btr.services\HighchartsExportServer\
and then when I ran--install
it correctly created the file, but still same results as above.svc.on('invalidinstallation', () => console.log('The service was unable to install.'));
(after already granting full permissions above) and never received this log.svc.on('error', e => console.log('Error:', e.message));
and never recived this log.daemon.js start
it looks like I should get some sort of error if I try starting the service vianode service.js --start
multiple times but I'm not getting any log there. Only the successful 'start' event.allowServiceLogon: true
(not really understanding what it would accomplish) in my service configuration and it didn't have an effect.Given this information, any ideas of how to continue my debugging efforts of getting this working?
The text was updated successfully, but these errors were encountered: