Skip to content
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

Could not start service #100

Open
trielgit opened this issue Apr 12, 2024 · 1 comment
Open

Could not start service #100

trielgit opened this issue Apr 12, 2024 · 1 comment

Comments

@trielgit
Copy link

Could not start service. Windows server 2016, japanise.
I have it on 3 other mashines (2 Windows Server 2022, japanise and local pc win 10, russian). Have any idea?

State: Stopped
Status: OK
Started: False
Start Mode: Auto
Service Type: Own Process
Start Name: NT AUTHORITY\LocalService
Changing service user account..
Starting service..
Could not start service: Unknown Failure
発生場所 E:\Projects_Utils\pm2 service install\src\windows\setup-service.ps1:182 文字:5

  • throw "Could not start service: $message"
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Could not start service: Unknown Failure:String) [], RuntimeException
    • FullyQualifiedErrorId : Could not start service: Unknown Failure
@Firegarden
Copy link

It's because the service is running as "local service". If you check the event viewer -> system you will see an error "PM2 service is market as an interactive service. However, the system is configured to not allow interactive services."

The way we fix this is to change the windows service to run as "local system" by changing the "log on" of the service to be "Local System account" and then try restart the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants