Mantis - Resin
Viewing Issue Advanced Details
5001 minor always 03-26-12 23:55 06-14-12 19:02
rickHigh  
ferg  
normal  
closed  
fixed  
none    
none 4.0.28  
0005001: Timeout for deploy to Amazon instance
resinctl deploy --name blog --address 23.21.195.83 --port 8080 --user admin --password roofoo target/blog-0.1.0.BUILD-SNAPSHOT.war

causes a timeout:


com.caucho.bam.TimeoutException: QueryFutureImpl[to=deploy@resin.caucho,from=HmtpClient@http://23.21.195.83:8080/hmtp,payload=DeployCommitListQuery[]] [^] query timeout DeployCommitListQuery[] {to:deploy@resin.caucho}

The problem seems to be the 20 MB war file.

Getting a deployment list is fine...


resinctl deploy-list --address 23.21.195.83 --port 8080 --user admin --password roofoo rick@ubuntu:~/roo4027/blog$



Notes
(0005782)
rickHigh   
05-25-12 12:37   
~/example/target$ ./deploy.sh
java.lang.IllegalStateException: future timeout
    at com.caucho.bam.query.QueryFutureCallback.get(QueryFutureCallback.java:103)
    at com.caucho.bam.proxy.BamProxyHandler$QueryCall.invoke(BamProxyHandler.java:157)
    at com.caucho.bam.proxy.BamProxyHandler.invoke(BamProxyHandler.java:114)
    at $Proxy25.getCommitList(Unknown Source)
    at com.caucho.server.deploy.DeployClient.getCommitList(DeployClient.java:388)
    at com.caucho.server.deploy.DeployClient.deployJar(DeployClient.java:351)
    at com.caucho.server.deploy.DeployClient.commitArchive(DeployClient.java:203)
    at com.caucho.boot.DeployCommand.doCommand(DeployCommand.java:133)
    at com.caucho.boot.AbstractRepositoryCommand.doCommand(AbstractRepositoryCommand.java:70)
    at com.caucho.boot.AbstractBootCommand.doCommand(AbstractBootCommand.java:125)
    at com.caucho.boot.ResinBoot.start(ResinBoot.java:250)
    at com.caucho.boot.ResinBoot.main(ResinBoot.java:306)


This is against a snapshot from yesterday. (May 24th, 2012)

I had some EC2 Security group misconfiguration that I had to figure out before I got to this.

$ cat deploy.sh
resinctl deploy --address 23.21.195.83 --port 8080 --user admin --password roofoo bigwar.war

Smaller deploys still work....


$ ./deploy.sh
Deployed production/webapp/default/h from h.war to http://23.21.195.83:8080/hmtp [^]

$ resinctl deploy-list --address 23.21.195.83 --port 8080 --user admin --password roofoo
production/webapp/default/h

$ cat deploy.sh
resinctl deploy --address 23.21.195.83 --port 8080 --user admin --password roofoo h.war

The bigwar.war is very big.

$ ls -l bigwar.war
-rw-rw-r-- 1 rick rick 19308502 2011-12-01 14:45 bigwar.war
(0005783)
rickHigh   
05-25-12 12:37   
~/example/target$ ./deploy.sh
java.lang.IllegalStateException: future timeout
    at com.caucho.bam.query.QueryFutureCallback.get(QueryFutureCallback.java:103)
    at com.caucho.bam.proxy.BamProxyHandler$QueryCall.invoke(BamProxyHandler.java:157)
    at com.caucho.bam.proxy.BamProxyHandler.invoke(BamProxyHandler.java:114)
    at $Proxy25.getCommitList(Unknown Source)
    at com.caucho.server.deploy.DeployClient.getCommitList(DeployClient.java:388)
    at com.caucho.server.deploy.DeployClient.deployJar(DeployClient.java:351)
    at com.caucho.server.deploy.DeployClient.commitArchive(DeployClient.java:203)
    at com.caucho.boot.DeployCommand.doCommand(DeployCommand.java:133)
    at com.caucho.boot.AbstractRepositoryCommand.doCommand(AbstractRepositoryCommand.java:70)
    at com.caucho.boot.AbstractBootCommand.doCommand(AbstractBootCommand.java:125)
    at com.caucho.boot.ResinBoot.start(ResinBoot.java:250)
    at com.caucho.boot.ResinBoot.main(ResinBoot.java:306)


This is against a snapshot from yesterday.

I had some EC2 Security group misconfiguration that I had to figure out before I got to this.

$ cat deploy.sh
resinctl deploy --address 23.21.195.83 --port 8080 --user admin --password roofoo bigwar.war

Smaller deploys still work....


$ ./deploy.sh
Deployed production/webapp/default/h from h.war to http://23.21.195.83:8080/hmtp [^]

$ resinctl deploy-list --address 23.21.195.83 --port 8080 --user admin --password roofoo
production/webapp/default/h

$ cat deploy.sh
resinctl deploy --address 23.21.195.83 --port 8080 --user admin --password roofoo h.war

The bigwar.war is very big.

$ ls -l bigwar.war
-rw-rw-r-- 1 rick rick 19308502 2011-12-01 14:45 bigwar.war