You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2016/04/18 14:28:25 UTC

[jira] [Comment Edited] (KARAF-4499) Can't start a crashed server on Windows

    [ https://issues.apache.org/jira/browse/KARAF-4499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15245556#comment-15245556 ] 

Andrea Cosentino edited comment on KARAF-4499 at 4/18/16 12:27 PM:
-------------------------------------------------------------------

Since a Server crash is something outside of the control of Karaf, you can do something like this:

{code}
> .\admin.bat start root
{code}

In this way you'll overwrite the pid in instance.properties and will be able to connect to karaf instance with client.bat script.

In case of crash the instance.properties won't be cleaned, this is why you're unable to start karaf once again. The workaround can be the one described above, but I guess the check on running root instance is important.

What do you think about, [~jb@nanthrax.net] ?


was (Author: ancosen):
Since a Windows crash is something outside of the control of Karaf, you can do something like this:

{code}
> .\admin.bat start root
{code}

In this way you'll overwrite the pid in instance.properties and will be able to connect to karaf instance with client.bat script.

In case of crash the instance.properties won't be cleaned, this is why you're unable to start karaf once again. The workaround can be the one described above, but I guess the check on running root instance is important.

What do you think about, [~jb@nanthrax.net] ?

> Can't start a crashed server on Windows
> ---------------------------------------
>
>                 Key: KARAF-4499
>                 URL: https://issues.apache.org/jira/browse/KARAF-4499
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>         Environment: Windows 10
>            Reporter: Tom Jenkinson
>
> On Windows if a server crashes karaf.bat does not allow me to start the server again. I have tracked this to an algorithm in the file that checks for the PID and sets a variable, on Windows (10 at least) to be able to overwrite the variable you need to use a slightly different notation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)