Mantis - Resin
Viewing Issue Advanced Details
5656 minor always 02-13-14 16:11 02-20-14 20:22
alex  
alex  
normal  
closed 4.0.38  
fixed  
none    
none 4.0.39  
0005656: review disable-soft command, check timeout error
- issuing the command to app-0 requesting disable-soft of app-1 does not work (check if it should)

rep by Sarah Gillespie
Resinctl disable --server app-0 correctly disables loadbalancing to app-0, resinctl disable app-0 disables web-0 for some reason, that's fine, just something we need to be aware of.

However, running resinctl disable-soft app-0 on a resin never seems to complete, it times out with this error message:

null
com.caucho.config.ConfigException
   at com.caucho.boot.AbstractScalingCommand.getScalingClient(AbstractScalingCommand.java:106)
   at com.caucho.boot.DisableSoftCommand.doCommand(DisableSoftCommand.java:57)
   at com.caucho.boot.AbstractBootCommand.doCommand(AbstractBootCommand.java:123)
   at com.caucho.boot.ResinBoot.start(ResinBoot.java:292)
   at com.caucho.boot.ResinBoot.main(ResinBoot.java:349)
Caused by: java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
   at com.caucho.boot.AbstractScalingCommand.getScalingClient(AbstractScalingCommand.java:99)
   ... 4 more
Caused by: com.caucho.bam.TimeoutException: QueryFutureImpl[to=null,from=hmux://192.168.80.226:80,payload=NonceQuery[,1392307558546]] [^] query timeout 120000ms for NonceQuery[,1392307558546] {to:null}
   at com.caucho.bam.query.QueryManager$QueryFutureImpl.get(QueryManager.java:416)
   at com.caucho.bam.actor.AbstractActorSender.query(AbstractActorSender.java:193)
   at com.caucho.bam.actor.AbstractActorSender.query(AbstractActorSender.java:169)
   at com.caucho.server.cluster.HmuxClient.authenticate(HmuxClient.java:326)
   at com.caucho.server.cluster.HmuxClient.openStream(HmuxClient.java:287)
   at com.caucho.server.cluster.HmuxClient.connect(HmuxClient.java:225)
   at com.caucho.cloud.elastic.ElasticCloudClient.connect(ElasticCloudClient.java:78)
   at com.caucho.cloud.elastic.ElasticCloudClient.<init>(ElasticCloudClient.java:72)
   ... 9 more

Notes
(0006406)
alex   
02-20-14 20:22   
server/680c