Hi Asiri,

I think this is because of the EC2 security group that you have configured
in your instance. Have you opened the ports required by Stratos and
ActiveMQ (Message Broker)?

Thanks.


On Thu, Jul 31, 2014 at 11:11 PM, Asiri Liyana Arachchi <asiriw...@gmail.com
> wrote:

> Output of curl -iv https://ip:9443/console :
>
> * Hostname was NOT found in DNS cache
> *   Trying 54.191.61.79...
> * connect to 54.191.61.79 port 9443 failed: Connection timed out
> * Failed to connect to 54.191.61.79 port 9443: Connection timed out
> * Closing connection 0
>
> Wanted to know whether the setup.conf is correctly configured. I revoked
> EC2 credentials and the identity. Thanks for the warning.
>
> First I tried giving the ip in which mb is being installed (same ip ) in
> the setup.conf . But then it gives this error [1] .Log file is attached.
> After changing it to 127.0.0.1 error seems to be resolved.
>
>
> [1] :
>
> TID: [0] [STRATOS] [2014-07-31 17:36:13,687] ERROR
> {org.apache.stratos.messaging.broker.subscribe.TopicSubscriber} -  Error
> while subscribing to the topic: summarized-health-stats
> {org.apache.stratos.messaging.broker.subscribe.TopicSubscriber}
> javax.jms.JMSException: Could not connect to broker URL: tcp://
> 54.191.61.79:61616. Reason: java.net.SocketTimeoutException: connect
> timed out
> at
> org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
>  at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:358)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:303)
>  at
> org.apache.activemq.ActiveMQConnectionFactory.createTopicConnection(ActiveMQConnectionFactory.java:277)
> at
> org.apache.stratos.messaging.broker.connect.TopicConnector.init(TopicConnector.java:68)
>  at
> org.apache.stratos.messaging.broker.subscribe.TopicSubscriber.doSubscribe(TopicSubscriber.java:63)
> at
> org.apache.stratos.messaging.broker.subscribe.TopicSubscriber.run(TopicSubscriber.java:116)
>  at java.lang.Thread.run(Thread.java:745)
> Caused by: java.net.SocketTimeoutException: connect timed out
> at java.net.PlainSocketImpl.socketConnect(Native Method)
>  at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
> at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>  at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>  at java.net.Socket.connect(Socket.java:579)
> at
> org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:501)
>  at
> org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:464)
> at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
>  at
> org.apache.activemq.transport.AbstractInactivityMonitor.start(AbstractInactivityMonitor.java:138)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>  at
> org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
> at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
>  at
> org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
> at
> org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:338)
>  ... 6 more
> TID: [0] [STRATOS] [2014-07-31 17:36:13,701] ERROR
> {org.apache.stratos.messaging.broker.subscribe.TopicSubscriber} -  Error
> while subscribing to the topic: topology
> {org.apache.stratos.messaging.broker.subscribe.TopicSubscriber}
>
>
>
>
>
>
>
>
> On Thu, Jul 31, 2014 at 10:49 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi Asiri,
>>
>> What exactly is the error that you get? Can you post the output of the
>> following
>>
>> curl -iv https://ip:9443/console
>>
>>
>> *IMPORTANT* - Please revoke your EC2 credentials and identity from AWS
>> that you have shared publicly on the list (if the setup.conf credentials
>> are valid).
>>
>> Also you need to specify a accessible MB IP in setup.conf. Local IP
>> 127.0.0.1 will not be accessible for cartridge instances. But this cannot
>> be the reason for your issue.
>>
>> Thanks.
>>
>>
>>
>>
>>
>> On Thu, Jul 31, 2014 at 9:17 PM, Asiri Liyana Arachchi <
>> asiriw...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to start stratos on an ec2 instance.
>>>
>>>
>>>
>>> I'va attached the log file here with.
>>> Everything seems fine except this error
>>>
>>>  ERROR {org.wso2.stratos.identity.saml2.sso.mgt.ui.Util} -  The
>>> configuration element 'TenantRegistrationPage' not found in
>>> '/opt/stratos/apache-stratos-default/repository/conf/sso-idp-config.xml'
>>> {org.wso2.stratos.identity.saml2.sso.mgt.ui.Util}
>>> TID: [0] [STRATOS] [2014-07-31 12:58:45,108]  INFO
>>> {org.wso2.carbon.core.transports.http.HttpsTransportListener} -  HTTPS port
>>>       : 9443 {org.wso2.carbon.core.transports.http.HttpsTransportListener}
>>>
>>> Once I try these urls neither of them work.
>>>
>>> https://stratos.apache.org:9443/console
>>> https://ip:9443/console
>>>
>>> Here [1] the same error is mentioned but no further detail except
>>> suggesting it might be because of the distribution.
>>>
>>> The stratos pack which I used was the one I built from source. So used
>>> the pack downloaded from here [2] and tried again.
>>> But result was the same.
>>>
>>> /opt/stratos-installer/conf/setup.conf is also attached here with.
>>>
>>> Appreciate if somebody can help me on this.
>>>
>>>
>>>
>>> [1]:
>>> https://www.mail-archive.com/dev%40stratos.incubator.apache.org/msg06782.html
>>> [2]:http://www.gtlib.gatech.edu/pub/apache/stratos/4.0.0/
>>>
>>> ​
>>>
>>> Regards,
>>> Asiri
>>>
>>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> Software Engineer
>> WSO2 Inc.
>> http://wso2.com
>>
>> Phone: +94 77 64 154 38
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>


-- 
Akila Ravihansa Perera
Software Engineer
WSO2 Inc.
http://wso2.com

Phone: +94 77 64 154 38
Blog: http://ravihansa3000.blogspot.com

Reply via email to