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

[Bug Report] Running as a service trough NSSM doesn't work #1522

Open
3 tasks done
adriaN7812 opened this issue Mar 22, 2024 · 4 comments
Open
3 tasks done

[Bug Report] Running as a service trough NSSM doesn't work #1522

adriaN7812 opened this issue Mar 22, 2024 · 4 comments

Comments

@adriaN7812
Copy link

Bug Description

image

Steps to Reproduce

Did all the steps from the instuctions

Expected Result

Expected to work

Debug Output

.

Additional Info

No response

Checklist

@jagrosh
Copy link
Owner

jagrosh commented Mar 22, 2024

Do you have Java 11 installed, and is it the default Java version?

@adriaN7812
Copy link
Author

Do you have Java 11 installed, and is it the default Java version?
image
And considering the bot works without it being a service i didnt think that could be the issue

@fossmanbill
Copy link

Can you type "nssm edit JMusicBot" and show a screenshot from there?

@digitalcontemplation
Copy link

I have searched for similar issues on the issues page

I had the same issue before and found this to be my solution:

chilux00 commented on Oct 29, 2023

  • Run nssm edit JMusicBot to bring up the GUI for editing the service. You should see three editable text fields pop up.
  • For the first field, "Path", set this to the path of your java.exe. This is probably in your program files so you can find it in your C:\ drive.
  • For the second field "Startup Directory", set this to the path of the working directory folder (i.e the folder where your JMusicBot file is), something like C:\Users<User Name>\Documents<Folder Name>
  • For the last field "Arguments", you want to append -jar and set it to the exact path of your music bot .jar file, so something like -jar C:\Users<User Name>\Documents<Folder Name>\JMusicBot-0.3.9.jar. If you've renamed your .jar file, change this accordingly.

#1444 (comment)

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

4 participants