i copy and the problem still
echo "Starting cartridge agent..."
script_path="$( cd -P "$( dirname "$SOURCE" )" && pwd )/`dirname $0`"
lib_path=${script_path}/../lib/
class_path=`echo ${lib_path}/*.jar | tr ' ' ':'`
properties="-Dmb.ip=172.31.25.28
-Dmb.port=61616
-Dmb_url=tcp://172.31.25.28:61616
-Dlisten.address=localhost
-Dthrift.receiver.ip=172.31.25.28
-Dthrift.receiver.port=7611
-Djndi.properties.template.file.path=${script_path}/../conf/templates/jndi.properties.template
-Djndi.properties.dir=${script_path}/../conf
-Dlog4j.properties.file.path=${script_path}/../conf/log4j.properties
-Dextensions.dir=${script_path}/../extensions
-Dparam.file.path=${script_path}/../payload/launch-params
-Dcep.stats.publisher.enabled=true
-Djavax.net.ssl.trustStore=CERT-TRUSTSTORE
-Djavax.net.ssl.trustStorePassword=wso2carbon
-Denable.artifact.update=true
-Dartifact.update.interval=10
-Denable.data.publisher=true
-Dmonitoring.server.ip=MONITORING-SERVER-IP
-Dmonitoring.server.port=MONITORING-SERVER-PORT
-Dmonitoring.server.secure.port=MONITORING-SERVER-SECURE-PORT
-Dmonitoring.server.admin.username=MONITORING-SERVER-ADMIN-USERNAME
-Dmonitoring.server.admin.password=MONITORING-SERVER-ADMIN-PASSWORD
-DAPP_PATH=APP-PATH"
# Uncomment below line to enable remote debugging
#debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
java -cp "${class_path}" ${properties} ${debug}
org.apache.stratos.cartridge.agent.Main
Thanks
2014-08-21 3:14 GMT-03:00 Nirmal Fernando <[email protected]>:
> Hi,
>
> You need to add the correct mb_url in Agent's stratos.sh file's system
> properties section.
>
>
> On Thu, Aug 21, 2014 at 11:26 AM, Ignacio Ayuste <
> [email protected]> wrote:
>
>> Hi guys, im using EC2 with one instance with docker and stratos, i
>> created and instance with centos and then install the puppet agent, then i
>> copy the cartbrige agent and try to start and give me this error:
>>
>> log4j:WARN No appenders could be found for logger
>> (org.apache.stratos.cartridge.
>> agent.Main).
>> log4j:WARN Please initialize the log4j system properly.
>> [2014-08-21 05:47:01,290] ERROR - [CartridgeAgentConfiguration] Commits
>> enabled
>> payload parameter is not found
>> [2014-08-21 05:47:01,293] INFO - [CartridgeAgentConfiguration] Cartridge
>> agent
>> configuration initialized
>> [2014-08-21 05:47:01,360] INFO - [CartridgeAgent] Cartridge agent started
>> [2014-08-21 05:47:01,497] INFO - [CartridgeAgent] Instance notifier
>> event messa
>> ge receiver thread started
>> [2014-08-21 05:47:01,538] INFO - [InstanceNotifierEventMessageDelegator]
>> Instan
>> ce notifier event message delegator started
>> SLF4J: Class path contains multiple SLF4J bindings.
>> SLF4J: Found binding in
>> [jar:file:/root/apache-stratos-cartridge-agent-4.0.0-SNA
>>
>> PSHOT/lib/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: Found binding in
>> [jar:file:/root/apache-stratos-cartridge-agent-4.0.0-SNA
>>
>> PSHOT/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
>> explanation.
>> [2014-08-21 05:47:01,819] INFO - [CartridgeAgent] Tenant event message
>> receiver
>> thread started
>> [2014-08-21 05:47:01,824] INFO - [TenantEventMessageDelegator] Tenant
>> event mes
>> sage delegator started
>> [2014-08-21 05:47:07,637] WARN - [FailoverTransport] Failed to connect
>> to [tcp:
>> //localhost:61616] after: 10 attempt(s) continuing to retry.
>> [2014-08-21 05:47:07,638] WARN - [FailoverTransport] Failed to connect
>> to [tcp:
>> //localhost:61616] after: 10 attempt(s) continuing to retry.
>>
>> the problem is the localhost, i change the jndi.properties file and also
>> the script but always throw me localhost. i attached the script and
>> property file as an evidence.
>>
>> any idea why is happening this?
>>
>> Thanks
>> Ignacio
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>