Also, Do you know how can we configure the ValidationResultPrinter RAM size
(MB), ValidationResultPrinter Swap Memory size, and  SystemValidator CPU?

Got errors as:

[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

I am updating to JDK now.

Thanks
-D


On Wed, Mar 11, 2015 at 10:45 AM, Lahiru Sandaruwan <[email protected]>
wrote:

> Hi,
>
> I would recommend using Oracle JDK(not JRE) 1.7.
>
> Thanks.
>
> On Wed, Mar 11, 2015 at 9:02 PM, david hbase <[email protected]> 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 <[email protected]>
>> 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 <[email protected]>
>>> wrote:
>>>
>>>> Hi David,
>>>>
>>>> Please find my response inline.
>>>>
>>>> On Mar 11, 2015 7:55 PM, "david hbase" <[email protected]> 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 <[email protected]>
>>>> 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 <[email protected]>
>>>> 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 <[email protected]>
>>>> 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
>>>> >>>
>>>> >>>
>>>> >>
>>>> >
>>>>
>>>
>>>
>>
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: [email protected] blog: http://lahiruwrites.blogspot.com/
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>

Reply via email to