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 > >>> > >>> > >> > > >