[GE users] arco webapp issues (stuck after wiki)

stacktrayce chris.black at roche.com
Thu Jul 1 17:46:37 BST 2010


    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

I removed all traces of webconsole and halted the dbwriter (which I confirmed is working) and then followed John's very helpful script but am still seeing "You Do Not Have Access to Any Application" when logging in through a browser. I also still see the following error message in console_config_log:
1-Jul-2010 | 11:31:26 | ERROR | Web application "reporting" in application
     com.sun.grid.arco_6.2u4 not deployed, location does not exist:
     /usr/sge/default/arco/reporting

The /usr/sge/default/arco/reporting path definitely exists and contains a WEB_INF folder and such, but I am thinking it may not be properly defined as a valid path within Sun Web Console for some reason.
wcadmin list -a gives a "Must have administration privileges" error.
Arcorun cmdline works fine so all DB connectivity, dbwriter, etc are fine, it is just the web console.

Any ideas?
Chris

-----Original Message-----
From: cjf001 [mailto:john.foley at motorola.com]
Sent: Tuesday, June 29, 2010 1:30 PM
To: users at gridengine.sunsource.net
Subject: Re: [GE users] arco webapp issues (stuck after wiki)

OK, below is my step-by-step, verbatim from my "hints" file, without
any changes or additions for your case. Actually, I was a little confused
about what your case actually is - I *think* you said you were trying
to install on RHEL.....

I'm installing sge6.2u5 and the associated arco stuff on RHEL5.2.
[stuff deleted]

So, you thought this would be easy, eh ?  :)   I did too, but ended up
spending a good week on and off before getting it all to work....

[stuff deleted]

# install Sun WebConsole & Java
export JAVA_HOME=/usr/java/jdk1.6.0_20
cd /opt/sge/6.2u5_arco_files/webconsole
./setup -n

# configure and start mysql
if ! grep "default-storage-engine=innodb" /etc/my.cnf > /dev/null ; then
   cp /etc/my.cnf /etc/my.cnf.original
   sed -e '/\[mysqld\]/a \
default-storage-engine=innodb' /etc/my.cnf.original > /etc/my.cnf
fi
/usr/bin/mysql_install_db --user=mysql
service mysqld start
mysqladmin -u root password 'MySQLpw'
mysql -u root -pMySQLpw

   GRANT ALL on *.* to 'arco_write'@'localhost' identified by 'MySQLpw' with GRANT OPTION;
   GRANT ALL on *.* to 'arco_write'@'%' identified by 'MySQLpw' with GRANT OPTION;
   quit

mysql -u arco_write -pMySQLpw
   CREATE DATABASE arcodb;
   GRANT SELECT,SHOW VIEW on arcodb.* to 'arco_read'@'localhost' identified by 'MySQLpw';
   GRANT SELECT,SHOW VIEW on arcodb.* to 'arco_read'@'%' identified by 'MySQLpw';
   quit

# configure reporting
source /sim/sge/*2u5/common/settings.sh
export JAVA_HOME=/usr/java/jdk1.6.0_20
cp /opt/sge/6.2u5_arco_files/mysql-connector-java-5.1.12-bin.jar /opt/sge/6.2u5/reporting/WEB-INF/lib/
cd /opt/sge/6.2u5/reporting
./inst_reporting
#    CLUSTER_NAME=MotoLV_1
#    DB_URL=jdbc:mysql://localhost:3306/arcodb
#    DB_USER=arco_read
#    SPOOL_DIR=/var/spool/arco
#    APPL_USERS=sgeadm cjf001
chmod +x /var/opt/webconsole/domains/console/conf/wcstart
chmod +x /var/opt/webconsole/domains/console/conf/wcstop

echo "ENABLE=yes
arco_app_dir=/opt/sge/6.2u5/cell.amsg.6.2u5/arco/reporting
java.home=/usr/java/jdk1.6.0_20
arco_logging_level=INFO
arco_config_file=/opt/sge/6.2u5/cell.amsg.6.2u5/arco/reporting/config.xml" \
> /etc/opt/webconsole/console/service.properties

mkdir /etc/opt/webconsole/console/prereg/com.sun.grid.arco_6.2u5
echo "system=false
debug=0
context=reporting
type=webapp
location=/opt/sge/6.2u5/cell.amsg.6.2u5/arco/reporting" \
> /etc/opt/webconsole/console/prereg/com.sun.grid.arco_6.2u5/reporting.reg

smcwebserver restart

# check webconsole running by going to https://lxdelt1:6789



############ install for sge/sge-dbwriter host ############
############       (SGE master server)         ############

# install sge
# (this is part of the node build)

# install Java
# (this is part of the node build)

# configure sge (make cell directory globally accessible)
# (from notes in the rpm postinstall script)
service sgemaster.MotoLV_1 stop
cd /opt/sge/6.2u5
rm -rf /tmp/bcommands
echo '#!/bin/bash ' > /tmp/bcommands
echo 'mv cell.amsg.6.2u5 cell.amsg.6.2u5.original'  >> /tmp/bcommands
echo 'ln -s /sim/sge/cell.amsg.6.2u5 cell.amsg.6.2u5' >> /tmp/bcommands
echo "find cell.amsg.6.2u5.original -type f | cut -d '/' -f 2- | while read filename ; do " >> /tmp/bcommands
echo '  chmod +w cell.amsg.6.2u5/$filename'  >> /tmp/bcommands
echo '  cp -rp cell.amsg.6.2u5.original/$filename  cell.amsg.6.2u5/$filename' >> /tmp/bcommands
echo "done"                                      >> /tmp/bcommands
chmod 755 /tmp/bcommands
su -c /tmp/bcommands sgeadm
service sgemaster.MotoLV_1 start


# configure sge (import configuration from existing version)
# (from notes in the rpm postinstall script)
source /sim/sge/*2u5/common/settings.sh
cd /opt/sge/6.2u5/util/upgrade_modules
./load_sge_config.sh /admin/ttt/sge_config


# install arco files
cd /opt/sge/6.2u5
tar -xf /opt/sge/6.2u5_arco_files/ge-6.2u5-arco.tar

# configure SGE for arco
source /sim/sge/*2u5/common/settings.sh
qconf -mconf
  # change the "reporting_params" line to be:
  # reporting_params             accounting=true reporting=true \
  #                           flush_time=00:00:15 joblog=true sharelog=00:00:00
qconf -me global
  # change the "report_variables" line to be:
  # report_variables      cpu,np_load_avg,mem_free,virtual_free

# configure dbwriter
export JAVA_HOME=/usr/java/jre1.6.0_20
cp /opt/sge/6.2u5_arco_files/mysql-connector-java-5.1.12-bin.jar /opt/sge/6.2u5/dbwriter/lib/
su -c "rm -rf /opt/sge/6.2u5/cell.amsg.6.2u5/spool/dbwriter/dbwriter.pid" sgeadm
cd /opt/sge/6.2u5/dbwriter
./inst_dbwriter
#        SGE_ROOT=/opt/sge/6.2u5
#        SGE_CELL=cell.amsg.6.2u5
#       JAVA_HOME=/usr/java/jre1.6.0_20 (1.6.0_20)
#          DB_URL=jdbc:mysql://lxadml2:3306/arcodb
#         DB_USER=arco_write
#       READ_USER=arco_read
#        INTERVAL=60
#       SPOOL_DIR=/opt/sge/6.2u5/cell.amsg.6.2u5/spool/dbwriter
#    DERIVED_FILE=/opt/sge/6.2u5/dbwriter/database/mysql/dbwriter.xml
#     DEBUG_LEVEL=INFO






# (to test the database, run these commands from the db server:
# mysql -u root p
#  <enter password : MySQLpw
# use arcodb
# SHOW TABLE STATUS;
#  <should return a bunch of stuff, and the engine should be "InnoDB">
#







stacktrayce wrote:
> John, thanks for the quick reply; I would be interested in your step-by-step for reference, I am considering splitting the web front-end from the dbwriter host in the future.
>
In /var/log/webconsole/console/console_config_log I see:
> 29-Jun-2010 | 10:48:14 | ERROR | Web application "reporting" in application
>       com.sun.grid.arco_6.2u4 not deployed, location does not exist:
>       /usr/sge/default/arco/reporting
> 29-Jun-2010 | 10:48:14 | INFO  | The console instance "console" is starting in
>       user mode.
>
> The /usr/sge/default/arco/reporting path definitely exists but I am thinking it may not be properly defined as a valid path within Sun Web Console.
>
> Best,
> Chris
>
> -----Original Message-----
> From: cjf001 [mailto:john.foley at motorola.com]
> Sent: Tuesday, June 29, 2010 10:18 AM
> To: users at gridengine.sunsource.net
> Subject: Re: [GE users] arco webapp issues (stuck after wiki)
>
> Chris -
>
> I recently got this working on rhel (5.2) and sge 6.2u5 - the thing that ended up
> helping me was this :
>
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=239628
>
> which is a part of this thread:
>
> http://gridengine.sunsource.net/ds/viewMessage.do?dsMessageId=238802&dsForumId=38
>
> I'd take a look at these to see if they help. I also have my step-by-step
> available - it's a little specific for my situation, as I wanted the sql
> server and webconsole server on a separate machine from the sge master,
> but it might be helpful, too. Let me know if you need it.
>
>      John
>
>
> stacktrayce wrote:
>>
>>
>> I have been trying to deploy the webapp portion of arco on a rhel server
>> without luck. The dbwriter install appears fine but I?m not sure, the
>> few tables I check only have one row.
>>
>> I see the error ?Must have administration privileges to execute this
>> command.? During the wcadmin commands. I have followed the wiki page
>> http://wikis.sun.com/display/GridEngine/ARCo+Troubleshooting
>>
>> And created the /etc/opt/webconsole/console/server.properties and
>> console/prereg/com.sun.grid.arco_6.2u4 (we are running 6.2u4).
>>
>> I hard-coded $SGE_ROOT and also tried adding a java.home entry in
>> server.properties all with no success.
>>
>> I have also edited the install script to dump the commands that are
>> failing so I can easily try them again:
>>
>> /usr/sbin/wcadmin deploy -a com.sun.grid.arco_6.2u4 -x reporting
>> /usr/sge/default/arco/reporting
>>
>> /usr/sbin/wcadmin add -p -a com.sun.grid.arco_6.2u4
>> arco_config_file=/usr/sge/default/arco/reporting/config.xml
>>
>> /usr/sbin/wcadmin add -p -a com.sun.grid.arco_6.2u4 arco_logging_level=INFO
>>
>> /usr/sbin/wcadmin add -p -a com.sun.grid.arco_6.2u4
>> arco_app_dir=/usr/sge/default/arco/reporting
>>
>> The smcwebserver runs fine and I can log in, I just don?t see any apps
>> for any user. I?ve added users to the config.xml.
>>
>> If anyone has any ideas on this I?d be grateful; I believe I?m in a
>> similar state with the last comment on the Arco+Troubleshooting wiki page.
>>
>> I am also open to deploying this in rhel apache tomcat if someone has
>> had success with that.
>>
>> Best,
>>
>> Chris
>>
>
>
>



--
###########################################################################
# John Foley                          # Location:  IL93-E1-21S            #
# IT & Systems Administration         # Maildrop:  IL93-E1-35O            #
# Antenna & Mechanical Simulation Grp #    Email: john.foley at motorola.com #
# Motorola, Inc. -  Mobile Devices    #    Phone: (847) 523-8719          #
# 600 North US Highway 45             #      Fax: (847) 523-5767          #
# Libertyville, IL. 60048  (USA)      #     Cell: (847) 460-8719          #
###########################################################################
               (this email sent using SeaMonkey on Windows)

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=264975

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=265490

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list