jagrosh/MusicBot

[Bug Report] Issues downgrading bot on NSSM

Closed this issue · 1 comments

Bug Description

NSSM is unable to run bot as background service on versions below 4.0

Both NSSM and java runtimes shown to be running in background processes within task manager and services.msc, but bot remains offline and unresponsive on discord

Steps to Reproduce

  1. Install NSSM service via Admin CMD line
  2. Specify Path to C:\Program Files\Java\jdk-17\bin\java.exe
  3. Specify Startup directory to \JMusicBot-0.3.9.jar file location
  4. Specify Argument to -jar "\JMusicBot-0.3.9.jar file"
  5. Specify service name
  6. Exec nssm start

Expected Result

Expected bot to come online and respond to commands, to no avail.

Debug Output

Windows 10 Pro 22H2
JMusicBot-0.4.0, 0.3.9, 0.3.8

Additional Info

Solutions tried

  1. Clean installation of bot config and developer app
  2. Changing of Java Path to C:\Program Files\Java\jre-1.8\bin\java.exe and C:\Program Files\Eclipse Adoptium\jre-11.0.22.7-hotspot\bin\java.exe
  3. Using different versions of NSSM
  4. Using different version of JMusicBot.jar

NSSM Logs produce no errors upon service start, stop and restart
Bot .jar files function normally when executed manually

Checklist

Running versions other than latest is not supported