Mantis - Resin
Viewing Issue Advanced Details
4602 minor always 06-07-11 10:16 06-08-11 09:58
rickHigh  
ferg  
normal  
closed  
fixed  
none    
none 4.0.19  
0004602: Remote deploy failing with latest snapshot
$ /usr/local/resin/bin/resin.sh -root-directory /var/www -conf /etc/resin/resin.xml -log-directory /var/log/resin/ -server triad1 deploy /mnt/hgfs/rick/resinCFG/site-template.war
com.caucho.bam.BamException: HmtpClient[http://192.168.1.202:8080/hmtp,NullActor[HmtpClient@http://192.168.1.202:8080/hmtp]] [^] resin-system-auth-key does not match the server's value
    at com.caucho.hmtp.HmtpClient.loginImpl(HmtpClient.java:203)
    at com.caucho.hmtp.HmtpClient.connect(HmtpClient.java:123)
    at com.caucho.server.admin.DeployClient.<init>(DeployClient.java:117)
    at com.caucho.server.admin.WebAppDeployClient.<init>(WebAppDeployClient.java:66)
    at com.caucho.boot.AbstractRepositoryCommand.getDeployClient(AbstractRepositoryCommand.java:107)
    at com.caucho.boot.DeployCommand.doCommand(DeployCommand.java:46)
    at com.caucho.boot.ResinBoot.start(ResinBoot.java:337)
    at com.caucho.boot.ResinBoot.main(ResinBoot.java:362)

user@ubuntu:~$ /usr/local/resin/bin/resin.sh -root-directory /var/www -conf /etc/resin/resin.xml -log-directory /var/log/resin/ -server triad1 version
Resin Professional 4.0.s110606 (built Mon, 06 Jun 2011 02:19:18 EDT)

Notes
(0005296)
rickHigh   
06-07-11 20:58   
$ /usr/local/resin/bin/resin.sh -conf /etc/resin/resin.xml -server app deploy -user resin -password resin /mnt/hgfs/rick/examples/jsf/jsf-quickstart/facelets-solutions/site_template/target/site-template.war
com.caucho.config.ConfigRuntimeException: java.io.IOException: Cannot create directory: /usr/local/resin/watchdog-data
    at com.caucho.config.ConfigException.create(ConfigException.java:168)
    at com.caucho.env.service.ResinSystem.configureRoot(ResinSystem.java:170)
    at com.caucho.env.service.ResinSystem.<init>(ResinSystem.java:157)
    at com.caucho.boot.ResinBoot.<init>(ResinBoot.java:124)
    at com.caucho.boot.ResinBoot.main(ResinBoot.java:360)
Caused by: java.io.IOException: Cannot create directory: /usr/local/resin/watchdog-data
    at com.caucho.vfs.FilePath.mkdirs(FilePath.java:493)
    at com.caucho.env.service.RootDirectorySystem.<init>(RootDirectorySystem.java:69)
    at com.caucho.env.service.RootDirectorySystem.createAndAddService(RootDirectorySystem.java:85)
    at com.caucho.env.service.ResinSystem.configureRoot(ResinSystem.java:168)
    ... 3 more
user@ubuntu:/var/log/resin$ /usr/local/resin/bin/resin.sh -conf /etc/resin/resin.xml -server app version
Resin Professional 4.0.s110607 (built Tue, 07 Jun 2011 08:27:36 PDT)
(0005297)
rickHigh   
06-07-11 23:11   
It worked with the username and password.

$ /usr/local/resin/bin/resin.sh -root-directory /var/www -conf /etc/resin/resin.xml -server app deploy -user resin -password resin /mnt/hgfs/rick/examples/jsf/jsf-quickstart/facelets-solutions/site_template/target/site-template.war
Deployed production/webapp/default/site-template from /mnt/hgfs/rick/examples/jsf/jsf-quickstart/facelets-solutions/site_template/target/site-template.war to http://127.0.0.1:8080/hmtp [^]
(0005298)
rickHigh   
06-07-11 23:13   
I added an auth key and it works with that too.
(0005299)
rickHigh   
06-07-11 23:14   
$ /usr/local/resin/bin/resin.sh -root-directory /var/www -conf /etc/resin/resin.xml -server app deploy /mnt/hgfs/rick/examples/jsf/jsf-quickstart/facelets-solutions/site_template/target/site-template.war
Deployed production/webapp/default/site-template from /mnt/hgfs/rick/examples/jsf/jsf-quickstart/facelets-solutions/site_template/target/site-template.war to http://127.0.0.1:8080/hmtp [^]
(0005302)
ferg   
06-08-11 09:58   
cloud/1291