Details
-
Bug
-
Resolution: Done
-
Major
-
fuse-esb-7.0.2
-
None
-
None
-
%
Description
When trying to install PATCH-3, we have a problem using:
./client -u smx -p smx patch:install PATCH-3
Essentially the patch begins to install but then hangs. Further discussions seem to indicate a problem with with the ssh client restarting.
Test Case Steps:
wildflower:bin sjavurek$ ./client -u smx -p smx patch:list
[name] [installed] [description]
PATCH-3 false null
wildflower:bin sjavurek$ ./client -u smx -p smx patch:install PATCH-3
The second command just hangs. ESB never shuts down and I can see in the log that it appears to be shutting down:
17:26:10,940 | DEBUG | NioProcessor-5 | NamespacePlugins | 106 - org.springframework.osgi.extender - 1.2.1 | Removing handler Apache Karaf :: Admin :: Command (org.apache.karaf.admin.command) 17:26:10,940 | DEBUG | lixDispatchQueue | command | 30 - org.apache.karaf.admin.command - 2.2.5.fuse-70-097 | BundleEvent STOPPED 17:26:10,941 | DEBUG | NioProcessor-5 | Activator | 141 - org.apache.camel.camel-core - 2.9.0.fuse-70-097 | Bundle stopped: org.apache.karaf.shell.ssh 17:26:10,941 | DEBUG | NioProcessor-5 | BlueprintExtender | 10 - org.apache.aries.blueprint - 0.3.1.fuse-70-097 | Destroying BlueprintContainer for bundle org.apache.karaf.shell.ssh 17:26:10,941 | DEBUG | NioProcessor-5 | BlueprintEventDispatcher | 10 - org.apache.aries.blueprint - 0.3.1.fuse-70-097 | Sending blueprint container event BlueprintEvent[type=DESTROYING] for bundle org.apache.karaf.shell.ssh 17:26:10,942 | DEBUG | nt Dispatcher: 1 | BlueprintListener | 39 - org.apache.karaf.shell.osgi - 2.2.5.fuse-70-097 | Blueprint app state changed to Destroying for bundle 23 17:26:10,942 | DEBUG | NioProcessor-5 | ssh | 23 - org.apache.karaf.shell.ssh - 2.2.5.fuse-70-097 | ServiceEvent UNREGISTERING 17:26:10,943 | DEBUG | NioProcessor-5 | ServiceRecipe | 10 - org.apache.aries.blueprint - 0.3.1.fuse-70-097 | Unregistering service shell-2 17:26:10,943 | DEBUG | NioProcessor-5 | ServiceRecipe | 10 - org.apache.aries.blueprint - 0.3.1.fuse-70-097 | Calling listeners for service unregistration 17:26:10,944 | DEBUG | NioProcessor-5 | ssh | 23 - org.apache.karaf.shell.ssh - 2.2.5.fuse-70-097 | ServiceEvent UNREGISTERING 17:26:10,945 | DEBUG | NioProcessor-5 | ServiceRecipe | 10 - org.apache.aries.blueprint - 0.3.1.fuse-70-097 | Unregistering service shell-4 17:26:10,945 | DEBUG | NioProcessor-5 | ServiceRecipe | 10 - org.apache.aries.blueprint - 0.3.1.fuse-70-097 | Calling listeners for service unregistration 17:26:10,945 | DEBUG | NioProcessor-5 | ssh | 23 - org.apache.karaf.shell.ssh - 2.2.5.fuse-70-097 | ServiceEvent UNREGISTERING 17:26:10,948 | INFO | NioProcessor-5 | ServerSession | 26 - sshd-core - 0.5.0 | Closing session 17:26:10,948 | DEBUG | NioProcessor-5 | ServerSession | 26 - sshd-core - 0.5.0 | Closing channel 0 17:26:10,948 | INFO | NioProcessor-5 | ChannelSession | 26 - sshd-core - 0.5.0 | Send SSH_MSG_CHANNEL_CLOSE on channel 0
From here the install process just hangs and servicemix is unreachable:
wildflower:bin sjavurek$ ./client -u smx -p smx Failed to get the session.
I've also attached the log.
Workaround Ideas
Would be to open the session and install the patch, however, that is manual and in automated fashion not feasible. Fabric is another alternative but for this issue we need an automated, non fabric solution.
Susan