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

Unable to shutdown windows service #6552

Closed
sitty opened this issue Aug 11, 2016 · 6 comments
Closed

Unable to shutdown windows service #6552

sitty opened this issue Aug 11, 2016 · 6 comments
Assignees
Labels

Comments

@sitty
Copy link

sitty commented Aug 11, 2016

OrientDB Version, operating system, or hardware.

OrientDB Community 2.2.6

Operating System

Windows 7

I installed OrientDB as a windows service based on the instructions. I can start the service fine but I'm unable to stop the service from windows services console or the prunmgr console. When I try to stop the service I see the following in the orient-server.log.
2016-08-11 11:28:13:815 INFO Received shutdown command from the remote client /127.0.0.1:55730 [ONetworkProtocolBinary]
2016-08-11 11:28:13:830 SEVER Authentication error of remote client /127.0.0.1:55730: shutdown is aborted. [ONetworkProtocolBinary]

I'm able to shutdown the process by running the shutdown.bat.

@sitty sitty changed the title Unable to shutdown windows server Unable to shutdown windows service Aug 11, 2016
@sagarmaniar
Copy link

@robfrank @lvca any update on the issue..? thanks!

@robfrank
Copy link
Contributor

When you run the shutdown.bat manually, do you provide the OrientDB server's password?
I don't have a windows box/VM where to test, but configuring the shutdown of service proving the password can be a solution

@sitty
Copy link
Author

sitty commented Aug 15, 2016

Yes when I use shutdown.bat I use -p password param. I tried passing the same argument for shutdown in the service but it doesnt seem to be working.

@sagarmaniar
Copy link

@robfrank @lvca should this be marked as bug? Any resolution to this?

@lvca lvca added the bug label Sep 23, 2016
@G4br13l3 G4br13l3 removed their assignment Dec 28, 2016
@marek-stoj
Copy link
Contributor

marek-stoj commented Apr 7, 2017

Per the Apache Commons Daemon documentation (https://commons.apache.org/proper/commons-daemon/procrun.html) you can use the StopParams argument when installing the service. Something along these lines worked for me:

OrientDBGraph.exe //IS ... --StopClass=com.orientechnologies.orient.server.OServerShutdownMain --StopParams=-p ++StopParams=password ...

@likemusic
Copy link

Pull request to fix this issue - orientechnologies/orientdb-docs#304

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

No branches or pull requests

9 participants