Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix SERVICE_PAUSED error on starting nssm server

Tags:

nssm

So I need to run a custom server. It worked on other machines, but not on mine (all of them are on Windows).

My input:

nssm start custom-server

Error message:

custom-server: Unexpected status SERVICE_PAUSED in response to START control.

I tried to re-start it, but got the same message.

like image 532
Alex Tumanov Avatar asked Aug 12 '16 17:08

Alex Tumanov


People also ask

What is Nssm service?

Non-Sucking Service Manager (NSSM) is a service helper program that assists in installing an application as a service, monitoring the application`s state and handling failures as it runs. This technology logs its progress to the system Event Log so users can understand why an application isn`t behaving normally.


1 Answers

Use the following instructions to change I/O redirects:

nssm set [SERVICE_NAME] AppStdout [APP_PATH_INSTALL]\logs\service.log
nssm set [SERVICE_NAME] AppStderr [APP_PATH_INSTALL]\logs\service-error.log

Check the service log files to find the failure.

In my case, the failure was caused by a dependency on Python libraries.

like image 180
André Luiz Mendonça Avatar answered Sep 26 '22 23:09

André Luiz Mendonça