PS. I had done something wrong with the hostname, now I'm back to
seeing the connection to the EC2 instance, but having the deployment
hang and eventually timeout.

Using the RMI debug properties sun.rmi.transport.logLevel=VERBOSE and
java.rmi.server.logCalls=true, this is all I can see on the server:

SmartFrog ready... [rootProcess:3800] Tue Sep 16 19:08:27 UTC 2008
Sep 16, 2008 7:11:10 PM sun.rmi.transport.StreamRemoteCall getInputStream
FINER: RMI TCP Connection(1)-193.1.133.1: getting input stream
Sep 16, 2008 7:11:10 PM sun.rmi.transport.Transport serviceCall
FINER: RMI TCP Connection(1)-193.1.133.1: call dispatcher
Sep 16, 2008 7:11:10 PM sun.rmi.server.UnicastServerRef logCall
FINER: RMI TCP Connection(1)-193.1.133.1: [193.1.133.1:
sun.rmi.registry.RegistryImpl[0:0:0, 0]: java.rmi.Remote
lookup(java.lang.String)]
Sep 16, 2008 7:11:10 PM sun.rmi.transport.StreamRemoteCall getOutputStream
FINER: RMI TCP Connection(1)-193.1.133.1: getting output stream



And on the daemon running on my PC, with sun.rmi.client.logCalls=true,
sun.rmi.server.logLevel=VERBOSE, sun.rmi.transport.logLevel=VERBOSE
(early messages omitted):

16-Sep-2008 20:11:10 sun.rmi.server.UnicastRef logClientCall
FINER: RMI TCP Connection(3)-193.1.133.1: outbound call:
[endpoint:[75.101.228.74:3800](remote),objID:[0:0:0, 0]] :
sun.rmi.registry.RegistryImpl_Stub[0:0:0, 0]: java.rmi.Remote
lookup(java.lang.String)
16-Sep-2008 20:11:10 sun.rmi.transport.StreamRemoteCall <init>
FINER: RMI TCP Connection(3)-193.1.133.1: write remote call header...
16-Sep-2008 20:11:10 sun.rmi.transport.StreamRemoteCall getOutputStream
FINER: RMI TCP Connection(3)-193.1.133.1: getting output stream
16-Sep-2008 20:11:10 sun.rmi.server.UnicastRef invoke
FINER: RMI TCP Connection(3)-193.1.133.1: execute call
16-Sep-2008 20:11:10 sun.rmi.transport.StreamRemoteCall getInputStream
FINER: RMI TCP Connection(3)-193.1.133.1: getting input stream
16-Sep-2008 20:11:10 sun.rmi.server.UnicastRef done
FINE: RMI TCP Connection(3)-193.1.133.1: free connection (reuse = true)
16-Sep-2008 20:11:10 sun.rmi.server.UnicastRef newCall
FINE: RMI TCP Connection(3)-193.1.133.1: get connection
16-Sep-2008 20:14:19 sun.rmi.server.UnicastRef newCall
FINE: RMI RenewClean-[ec2-75-101-228-74.compute-1.amazonaws.com:48712]:
get connection
16-Sep-2008 20:14:19 sun.rmi.server.UnicastRef invoke
FINER: RMI TCP Connection(3)-193.1.133.1: method: public abstract
org.smartfrog.sfcore.prim.Prim
org.smartfrog.sfcore.compound.Compound.sfDeployComponentDescription(java.lang.Object,org.smartfrog.sfcore.prim.Prim,org.smartfrog.sfcore.componentdescription.ComponentDescription,org.smartfrog.sfcore.common.Context)
throws 
java.rmi.RemoteException,org.smartfrog.sfcore.common.SmartFrogDeploymentException
16-Sep-2008 20:14:19 sun.rmi.server.UnicastRef logClientCall
FINER: RMI TCP Connection(3)-193.1.133.1: outbound call:
[endpoint:[ec2-75-101-228-74.compute-1.amazonaws.com:48712](remote),objID:[d5a148a:11c6c9045b8:-7fff,
324988096577243388]] :
org.smartfrog.sfcore.processcompound.ProcessCompoundImpl_Stub[d5a148a:11c6c9045b8:-7fff,
324988096577243388]: public abstract org.smartfrog.sfcore.prim.Prim
org.smartfrog.sfcore.compound.Compound.sfDeployComponentDescription(java.lang.Object,org.smartfrog.sfcore.prim.Prim,org.smartfrog.sfcore.componentdescription.ComponentDescription,org.smartfrog.sfcore.common.Context)
throws 
java.rmi.RemoteException,org.smartfrog.sfcore.common.SmartFrogDeploymentException
16-Sep-2008 20:16:10 sun.rmi.transport.StreamRemoteCall getInputStream
FINER: RMI TCP Connection(4)-193.1.133.1: getting input stream
16-Sep-2008 20:16:10 sun.rmi.transport.Transport serviceCall
FINER: RMI TCP Connection(4)-193.1.133.1: call dispatcher
16-Sep-2008 20:16:10 sun.rmi.transport.StreamRemoteCall getOutputStream
FINER: RMI TCP Connection(4)-193.1.133.1: getting output stream
2008/09/16 20:17:29:087 IST [ERROR][RMI TCP Connection(3)-193.1.133.1]
SFCORE_LOG - caught on start (HOST
tmonahan.ucd.ie:rootProcess:sim:servers)
<SmartFrogLifecycleException:: [sfStart] HOST
tmonahan.ucd.ie:rootProcess:sim:servers:workflow
    cause: SmartFrogDeploymentException: unnamed component.
SmartFrogLifecycleException:: [sfStart] Failed to start a new child
'prepare'., cause: SmartFrogDeploymentException: 'pwdServers'
component. PrimHostDeployerImpl.deploy,    cause:
java.rmi.ConnectException: Connection refused to host:
ec2-75-101-228-74.compute-1.amazonaws.com; nested exception is:
        java.net.ConnectException: Connection timed out, SmartFrog
3.12.041dev (2008-08-13 18:58:16 IST), primSFCompleteName: HOST
tmonahan.ucd.ie:rootProcess:sim:servers:workflow, primContext:
included, reference: HOST
tmonahan.ucd.ie:rootProcess:sim:servers:workflow, primContext:
included
       cause: SmartFrogLifecycleException:: [sfStart] Failed to start
a new child 'prepare'.
          cause: SmartFrogDeploymentException: 'pwdServers' component.
PrimHostDeployerImpl.deploy
             cause: java.rmi.ConnectException: Connection refused to
host: ec2-75-101-228-74.compute-1.amazonaws.com; nested exception is:
        java.net.ConnectException: Connection timed out



Olivier

On Tue, Sep 16, 2008 at 7:11 PM, Olivier Pernet <[EMAIL PROTECTED]> wrote:
> I've switched to using the hostname of my EC2 instance as the value of
> java.rmi.server.hostname, as it resolves to the internal NATed IP on
> the instance, and as the public IP from the outside.
> But now, instead of the timeout I was getting before, I have this:
> cause: SmartFrogLifecycleException:: [sfStart] Failed to start a new
> child 'prepare'.
>          cause: SmartFrogDeploymentException: 'pwdServers' component.
> PrimHostDeployerImpl.deploy
>             cause: java.rmi.ConnectException: Connection refused to
> host: ; nested exception is:
>        java.net.ConnectException: Connection refused
>
> Note the weird empty string as the hostname. However, using netstat on
> the instance I can see the connection being established. A wireshark
> on my PC shows me some traffic before the connection is closed. I can
> see the name RootProcessCompound being exchanged in the stream, but
> otherwise I don't know enough about RMI to figure out what's
> happening.
>
> Steve, haven't you tried that before ?
> Olivier
>
> On Tue, Sep 16, 2008 at 4:16 PM, Olivier Pernet <[EMAIL PROTECTED]> wrote:
>> No, it's not helping in my case: the daemon won't start when I set
>> this property to the external IP address of the instance. This makes
>> sense, because none of the instance's interfaces is bound to this IP:
>> there's NAT happening somewhere between it and the Internet.
>>
>> Olivier
>>
>> On Tue, Sep 16, 2008 at 11:37 AM, Mahrt, Helge <[EMAIL PROTECTED]> wrote:
>>> Hello Olivier,
>>>
>>> When I was using the daemon and binding it to an specific IP address (and 
>>> therefore binding RMI as well) I had to set the property 
>>> org.smartfrog.sfcore.processcompound.sfRootLocatorBindAddress. Maybe that 
>>> helps in your case.
>>>
>>>
>>> Helge Mahrt
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olivier 
>>> Pernet
>>> Sent: Monday, September 15, 2008 9:55 PM
>>> To: [email protected]
>>> Subject: [Smartfrog-users] Deploying to Amazon EC2
>>>
>>> Hi,
>>>
>>> I'm trying to deploy our system on an Amazon EC2 instance, but I'm
>>> having problems with RMI.
>>> I made sure that port 3800 is open, and I verified that I can telnet
>>> into the instance on this port.
>>> I also set the java.rmi.server.hostname property when launching the
>>> daemon on my instance, as it binds to the internal address by default.
>>> I can see the RootProcessCompound exported in the registry on the
>>> instance by using the RMI explorer plugin of my IDE.
>>> I'm still unable to deploy anything however... Any thoughts ?
>>>
>>> Olivier Pernet
>>>
>>> We are the knights who say
>>> echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Smartfrog-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/smartfrog-users
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Smartfrog-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/smartfrog-users
>>>
>>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Smartfrog-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/smartfrog-users

Reply via email to