Any update? Thanks -D On Wed, Mar 11, 2015 at 6:23 PM, Dakshika Jayathilaka <daksh...@wso2.com> wrote:
> AFAIK we fixed this error some time ago. > > @Raj: Can you confirm? > > Regards, > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > On Thu, Mar 12, 2015 at 6:50 AM, david hbase <davidhb...@gmail.com> wrote: > >> Yes, It's was working, but just after reboot, admin can not login, always >> got error message as: "SyntaxError: Unexpected token: <" >> screen shot attached. >> >> Please help, Thanks >> -D >> >> On Wed, Mar 11, 2015 at 2:26 PM, david hbase <davidhb...@gmail.com> >> wrote: >> >>> Thanks, looks like working, still verifing now!!! >>> -D >>> >>> On Wed, Mar 11, 2015 at 11:43 AM, Chamila De Alwis <chami...@wso2.com> >>> wrote: >>> >>>> Hi David, >>>> >>>> On Mar 11, 2015 9:19 PM, "david hbase" <davidhb...@gmail.com> wrote: >>>> > >>>> > did the above efforts and plus : >>>> > >>>> > 5. root@049111031554:/mnt/apache-stratos-cartridge-agent-4.0.0/lib# >>>> chmod +x * >>>> > >>>> > I think there are some configurations need to be corrected, please >>>> help, Thanks >>>> > -D >>>> > >>>> > looks puppet agent start running now, but with following errors: >>>> > >>>> > [2015-03-11 15:44:26,280] WARN - SystemValidator Could not validate >>>> the system for configuration parameter : CPU >>>> > [2015-03-11 15:44:26,292] WARN - ValidationResultPrinter RAM size >>>> (MB): 2003 of the system is below the recommended minimum size :2048 >>>> > [2015-03-11 15:44:26,292] WARN - ValidationResultPrinter The default >>>> keystore (wso2carbon.jks) is currently being used. To maximize security >>>> when deploying to a production environment, configure a new keystore with a >>>> unique password in the production server profile. >>>> > [2015-03-11 15:44:26,292] WARN - ValidationResultPrinter Swap Memory >>>> size (MB): 0 of the system is below the recommended minimum size :2048 >>>> > >>>> > >>>> > [2015-03-11 15:45:10,134] INFO - LoadBalancerServiceComponent Load >>>> balancer statistics notifier thread started >>>> > [2015-03-11 15:45:10,134] INFO - LoadBalancerServiceComponent Load >>>> balancer service component is activated >>>> >>>> > [2015-03-11 15:45:10,411] ERROR - TopicSubscriber Error while >>>> subscribing to the topic: tenant >>>> > javax.jms.JMSException: Could not connect to broker URL: tcp:// >>>> 127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused >>>> > 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:701) >>>> > Caused by: java.net.ConnectException: Connection refused >>>> > at java.net.PlainSocketImpl.socketConnect(Native Method) >>>> > at >>>> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327) >>>> > at >>>> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193) >>>> > at >>>> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180) >>>> > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385) >>>> > at java.net.Socket.connect(Socket.java:546) >>>> > 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 >>>> > [2015-03-11 15:45:10,425] INFO - TopicSubscriber Will try to >>>> subscribe again in 30 sec >>>> > >>>> > >>>> >>>> You will have to specifically mention the message broker URL in the >>>> base.pp file on the puppet master. Looks like you've left it as 127.0.0.1 >>>> which in the instance is not valid. >>>> >>>> You can find this information on the related documentation[1]. >>>> >>>> [1] - >>>> https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Configuring+Puppet+Master >>>> > >>>> > On Wed, Mar 11, 2015 at 8:32 AM, david hbase <davidhb...@gmail.com> >>>> wrote: >>>> >> >>>> >> 1 .After I corrected the path as following: >>>> >> >>>> >> root@049111031554:/opt# ll >>>> >> total 62304 >>>> >> drwxr-xr-x 3 root root 4096 Mar 11 15:22 ./ >>>> >> drwxr-xr-x 23 root root 4096 Mar 11 09:01 ../ >>>> >> lrwxrwxrwx 1 root root 11 Mar 11 15:22 java -> jre1.8.0_40/ >>>> >> drwxr-xr-x 6 uucp 143 4096 Feb 11 05:38 jre1.8.0_40/ >>>> >> -rwxr-xr-x 1 root root 63786579 Mar 11 00:59 jre-8u40-linux-x64.gz* >>>> >> root@049111031554:/opt# >>>> >> >>>> >> 2 . Try to run the stratos agent and got the error as: >>>> >> root@049111031554:/opt# >>>> /mnt/apache-stratos-load-balancer-4.0.0/bin/stratos.sh >>>> >> [ERROR] CARBON is supported only on JDK 1.6 and 1.7 >>>> >> root@049111031554:/opt# >>>> >> >>>> >> 3. Installed JDK and link to /usr/bin/java >>>> >> root@049111031554:/opt# apt-get install openjdk-7-jdk >>>> >> root@049111031554:/opt# ln -s /usr java >>>> >> root@049111031554:/opt# ll >>>> >> total 62304 >>>> >> drwxr-xr-x 3 root root 4096 Mar 11 15:29 ./ >>>> >> drwxr-xr-x 23 root root 4096 Mar 11 09:01 ../ >>>> >> lrwxrwxrwx 1 root root 4 Mar 11 15:29 java -> /usr/ >>>> >> drwxr-xr-x 6 uucp 143 4096 Feb 11 05:38 jre1.8.0_40/ >>>> >> -rwxr-xr-x 1 root root 63786579 Mar 11 00:59 jre-8u40-linux-x64.gz* >>>> >> root@049111031554:/opt# >>>> >> >>>> >> 4. Try to run Stratos Agent, But got error: >>>> >> root@049111031554:/opt# >>>> /mnt/apache-stratos-cartridge-agent-4.0.0/bin/stratos.sh & >>>> >> [1] 7449 >>>> >> root@049111031554:/opt# Starting cartridge agent... >>>> >> Exception in thread "main" java.lang.NoClassDefFoundError: >>>> org/apache/stratos/cartridge/agent/Main >>>> >> Caused by: java.lang.ClassNotFoundException: >>>> org.apache.stratos.cartridge.agent.Main >>>> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:217) >>>> >> at java.security.AccessController.doPrivileged(Native Method) >>>> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:205) >>>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:323) >>>> >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) >>>> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:268) >>>> >> Could not find the main class: >>>> org.apache.stratos.cartridge.agent.Main. Program will exit. >>>> >> >>>> >> Need help, Thanks >>>> >> -D >>>> >> >>>> >> >>>> >> >>>> >> On Wed, Mar 11, 2015 at 8:18 AM, david hbase <davidhb...@gmail.com> >>>> wrote: >>>> >>> >>>> >>> Thanks for your quick help, after delete the file ( the file >>>> actually not exsit ), and rerun the puppet agent, the /opt/java still point >>>> to wrong >>>> >>> directory: >>>> >>> >>>> >>> root@049111031554:/opt# ll >>>> >>> total 62304 >>>> >>> drwxr-xr-x 3 root root 4096 Mar 11 15:16 ./ >>>> >>> drwxr-xr-x 23 root root 4096 Mar 11 09:01 ../ >>>> >>> lrwxrwxrwx 1 root root 13 Mar 11 15:16 java -> /opt/jre-8u40 >>>> >>> drwxr-xr-x 6 uucp 143 4096 Feb 11 05:38 jre1.8.0_40/ >>>> >>> -rwxr-xr-x 1 root root 63786579 Mar 11 00:59 jre-8u40-linux-x64.gz* >>>> >>> root@049111031554:/opt# >>>> >>> >>>> >>> Need your help, Thanks >>>> >>> -D >>>> >>> >>>> >>> On Wed, Mar 11, 2015 at 7:50 AM, Chamila De Alwis < >>>> chami...@wso2.com> wrote: >>>> >>>> >>>> >>>> Hi David, >>>> >>>> >>>> >>>> Please find my response inline. >>>> >>>> >>>> >>>> On Mar 11, 2015 7:55 PM, "david hbase" <davidhb...@gmail.com> >>>> wrote: >>>> >>>> > >>>> >>>> > Still not work even the puppet run is showing as successful: >>>> >>>> > >>>> >>>> > root@lblbdoma-f62:/opt# cat /tmp/puppet_log >>>> >>>> > Removing all existing certificates .. >>>> >>>> > >>>> >>>> > Node Id 049111031554.default.lb >>>> >>>> > >>>> >>>> > >>>> >>>> > Domain stratos40build05.cisco.com >>>> >>>> > >>>> >>>> > * Restarting puppet agent >>>> >>>> > ...done. >>>> >>>> > Rather than invoking init scripts through /etc/init.d, use the >>>> service(8) >>>> >>>> > utility, e.g. service hostname start >>>> >>>> > >>>> >>>> > Since the script you are attempting to invoke has been converted >>>> to an >>>> >>>> > Upstart job, you may also use the start(8) utility, e.g. start >>>> hostname >>>> >>>> > hostname stop/waiting >>>> >>>> > Info: Creating a new SSL key for >>>> 049111031554.default.lb.stratos40build05.cisco.com >>>> >>>> > Info: csr_attributes file loading from >>>> /etc/puppet/csr_attributes.yaml >>>> >>>> > Info: Creating a new SSL certificate request for >>>> 049111031554.default.lb.stratos40build05.cisco.com >>>> >>>> > Info: Certificate Request fingerprint (SHA256): >>>> B8:7C:29:2F:FB:EB:63:31:08:9F:E9:38:3D:C7:34:98:D7:E2:91:E6:09:B0:EE:9D:66:DE:74:D8:77:87:99:76 >>>> >>>> > Info: Caching certificate for >>>> 049111031554.default.lb.stratos40build05.cisco.com >>>> >>>> > Info: Caching certificate for >>>> 049111031554.default.lb.stratos40build05.cisco.com >>>> >>>> >>>> >>>> > Notice: Run of Puppet configuration client already in progress; >>>> skipping (/var/lib/puppet/state/agent_catalog_run.lock exists) >>>> >>>> >>>> >>>> Looks like the puppet run has failed. Did you build the base image >>>> yourself? Try deleting the file mentioned and eunning puppet agent as >>>> follows. >>>> >>>> >>>> >>>> sudo puppet agent --disable && sudo puppet agent --enable && sudo >>>> puppet agent -dvt >>>> >>>> >>>> >>>> > Initialization completed successfully. >>>> >>>> > >>>> >>>> >>>> >>>> > >>>> >>>> > Thanks >>>> >>>> > -D >>>> >>>> > >>>> >>>> > On Wed, Mar 11, 2015 at 2:38 AM, Chamila De Alwis < >>>> chami...@wso2.com> wrote: >>>> >>>> >> >>>> >>>> >> Hi David, >>>> >>>> >> >>>> >>>> >> When Java Puppet module installs Java, it creates a symlink >>>> "java" in the /opt dir to the jdk folder. If that is broken it can be >>>> caused by an unsuccessful puppet run. Could you check the /tmp/puppet_log >>>> for errors? >>>> >>>> >> >>>> >>>> >> >>>> >>>> >> Regards, >>>> >>>> >> Chamila de Alwis >>>> >>>> >> Software Engineer | WSO2 | +94772207163 >>>> >>>> >> Blog: code.chamiladealwis.com >>>> >>>> >> >>>> >>>> >> >>>> >>>> >> >>>> >>>> >> On Wed, Mar 11, 2015 at 2:56 PM, david hbase < >>>> davidhb...@gmail.com> wrote: >>>> >>>> >>> >>>> >>>> >>> Hi, Team >>>> >>>> >>> >>>> >>>> >>> Please help, it's urgent for the production schedule now. >>>> >>>> >>> >>>> >>>> >>> Additional confirmation required: if the following link is our >>>> Stratos 4.0 official stable link or not? >>>> >>>> >>> >>>> https://dist.apache.org/repos/dist/dev/stratos/4.0.0-rc4/apache-stratos-cartridge-agent-4.0.0.zip >>>> >>>> >>> >>>> >>>> >>> I can not make the cartridge agent working, please reference >>>> this email chain. >>>> >>>> >>> >>>> >>>> >>> Also please note, the /opt/java path is a broken path. ( ref: >>>> /mnt/apache-stratos-cartridge-agent-4.0.0/bin/stratos.sh line 53 ) >>>> >>>> >>> >>>> >>>> >>> Thanks >>>> >>>> >>> -D >>>> >>>> >>> >>>> >>>> >>> >>>> >>>> >>> On Wed, Mar 11, 2015 at 12:36 AM, david hbase < >>>> davidhb...@gmail.com> wrote: >>>> >>>> >>>> >>>> >>>> >>>> Hi, Team >>>> >>>> >>>> >>>> >>>> >>>> Tested with stratos 4.0, but the cartridge agent can be >>>> started with LB instance. >>>> >>>> >>>> Error log as following: >>>> >>>> >>>> >>>> >>>> >>>> root@lblbdoma-508:/mnt/apache-stratos-cartridge-agent-4.0.0# >>>> bin/stratos.sh >>>> >>>> >>>> Starting cartridge agent... >>>> >>>> >>>> Error: Could not find or load main class >>>> org.apache.stratos.cartridge.agent.Main >>>> >>>> >>>> >>>> >>>> >>>> Verfied the jar file is there: >>>> >>>> >>>> root@lblbdoma-508:/mnt/apache-stratos-cartridge-agent-4.0.0# >>>> ll >>>> /mnt/apache-stratos-cartridge-agent-4.0.0/lib/org.apache.stratos.cartridge.agent-4.0.0.jar >>>> >>>> >>>> -rwxr-xr-x 1 root root 0 Dec 26 16:29 >>>> /mnt/apache-stratos-cartridge-agent-4.0.0/lib/org.apache.stratos.cartridge.agent-4.0.0.jar* >>>> >>>> >>>> >>>> >>>> >>>> Please help, Thanks >>>> >>>> >>>> -D >>>> >>>> >>> >>>> >>>> >>> >>>> >>>> >> >>>> >>>> > >>>> >>> >>>> >>> >>>> >> >>>> > >>>> >>>> >>> >> >