grouper-users - [grouper-users] manage grouper services with grouperInstaller
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: " Mailing List" <>
- Subject: [grouper-users] manage grouper services with grouperInstaller
- Date: Tue, 6 Dec 2016 22:25:13 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:JCnssBAF7ysaMmSPyCsdUyQJP3N1i/DPJgcQr6AfoPdwSPX/r8bcNUDSrc9gkEXOFd2CrakV0KyL6+u/BCQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5b75+NhW7oRneusQUgYZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLuhSwaNTA27XvXh9RwgqxFvRyhuxJxzY3VYI6JO/VzZbnScc8GSWdbQspdSzJND4WhZIUPFeoBOuNYopHzq1UMrRq/BBejBPn3xjRVmHL23bc60+U6EQ3IwQctGNcOv2jUrNT1NaYdT/q1wbLJzTXYc/xawyr96JDWfRAnp/GAR6x/ftfMyUQ2EQ7Ok1ueqYvgPzyP1+QNtXCW7+tmVeKzlWEnsQdxrSazxssykIXGmJ8ayk3C+C5kw4g1PcW1RFBhbtK4DZddsjyWO5ZrTs4nTWFltzo2xqEDtJO5YicHx5AqyhvaZvCZb4SF4wrvWPufLDtknn5ofK+ziwys/US9zuDwTNS43VRLoydDj9LCrGoC1wbJ5ciCUvZ9/lmu2TKI1w3L8u9JPUc6mbbVJpI4zLA+kZQevV3EHiDthkr6lqiWdlg4+uez7OTnf7PmqYKGO49skAH+NbguldKjDuQkMwgOWG6b9f671L3+4U35RLJKjvo1kqXDrJ/aIsEbqra4Aw9TzIkj9w6yAym839gEgHUKKU9JdA+ag4XsNVHDL+z0Aeu6jlmujjhmyPTLM7jkD5nTMnTOka/tfbNn5E5dzAozw8pf55VRCrwZJfL8Rk/xtdzZDxAnKQy52OfnCM5h2Y8ERGKPGrGWMKXUsVOS+O0gPvSMaJcPuDnhM/gl++LujXghlF8SZ6mp2oYXaGimEfR8OkmZfGHsjckbEWcRpQc+SO3qiEaeUT5IeXq+RaM85jcnCI24F4fDQJ6igKCf0CuhAJJZe31GWRiwFiKieJ+DRu8BcmePOcJ7iRQFU6SsUYksyUvouQPng59uL+7V/CJQkZP4yJI9s+LJkgwq+CYxEt+QyXqlTmdok3kOSiNsmq1zvBou5E2E1P0yo+1KGMYXr9hJSAYhf9aIyud6GsL/QCrAZdzPVU6rRNPgDD0sGIFii+QSalpwTo3xxivI2DCnVucY
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
When people get up and running, they run the installer, then they don’t know or they forget what to do to start/stop tomcat, the database (only hsql), and the loader. Now the latest grouperInstaller can help manage those things and print
out commands so you can know what they are. Note, this is generally a quick start function as opposed to a production function… https://bugs.internet2.edu/jira/browse/GRP-1435 grouper installer should start hsql and loader in a new nohup process on linux
https://bugs.internet2.edu/jira/browse/GRP-1422 add tasks in installer to manage tomcat, grouperDaemon, database https://spaces.internet2.edu/display/Grouper/Grouper+installer+admin+tool Example with hsql database: java –jar grouperInstaller.jar Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation, 'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]:
admin What admin action do you want to do (manage, upgradeTask)? :
manage Enter in the Grouper install directory (note: better if no spaces or special chars):
C:/temp/temp/grouperInstaller What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
database What database action do you want to perform? stop, start, restart, status? :
status grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper Trying query: SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS Database could not be connected to from Java. Perhaps it is down or there is a network problem? Do you want to see the stacktrace from the connection error? (t|f) [f]:
Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
database What database action do you want to perform? stop, start, restart, status? :
start grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper Starting DB with command: C:\dev_inst\java7\bin\java -cp C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\lib\jdbcSamples\hsqldb.jar org.hsqldb.Server -database.0 file:C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\grouper -dbname.0
grouper -port 9001 Success: database is up, connection successful. Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
database What database action do you want to perform? stop, start, restart, status? :
status grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper Trying query: SELECT 1 FROM INFORMATION_SCHEMA.SYSTEM_USERS Database is up and connection from Java successful. Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
database What database action do you want to perform? stop, start, restart, status? :
stop grouper.hibernate.properties read from: C:\temp\temp\grouperInstaller\grouper.apiBinary-2.3.0\conf\grouper.hibernate.properties Database URL (hibernate.connection.url from grouper.hibernate.properties) is: jdbc:hsqldb:hsql://localhost:9001/grouper Shutting down HSQL before starting it by sending the SQL: SHUTDOWN Success: database is down. Press <enter> to continue or type 'exit' to end: exit Example with tomcat: java –jar grouperInstaller.jar Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation, 'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]:
admin What admin action do you want to do (manage, upgradeTask)? :
manage Enter in the Grouper install directory (note: better if no spaces or special chars) :
C:/temp/temp/grouperInstaller What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
tomcat What tomcat action do you want to perform? stop, start, restart, status? :
start Enter the default IP address for checking ports (just hit enter to accept the default unless on a machine with no network, might want to change to 127.0.0.1): [0.0.0.0]:
################################## Tomcat start with command (note you need CATALINA_HOME and JAVA_HOME set): C:\temp\temp\grouperInstaller\apache-tomcat-6.0.35\bin\startup.bat End tomcat start (note: logs are in C:\temp\temp\grouperInstaller\apache-tomcat-6.0.35\logs) ################################## Should we check ports to see if tomcat was able to start (t|f)? [t]:
Waiting for tomcat to start... Tomcat listening on port: 8700 Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
tomcat What tomcat action do you want to perform? stop, start, restart, status? :
status Enter the default IP address for checking ports (just hit enter to accept the default unless on a machine with no network, might want to change to 127.0.0.1): [0.0.0.0]:
Tomcat is running. It is detected to be listening on port: 8700 Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
tomcat What tomcat action do you want to perform? stop, start, restart, status? :
stop Enter the default IP address for checking ports (just hit enter to accept the default unless on a machine with no network, might want to change to 127.0.0.1): [0.0.0.0]: ################################## Tomcat stop with command (note you need CATALINA_HOME and JAVA_HOME set): C:\temp\temp\grouperInstaller\apache-tomcat-6.0.35\bin\shutdown.bat End tomcat stop (note: logs are in C:\temp\temp\grouperInstaller\apache-tomcat-6.0.35\logs) ################################## Should we check ports to see if tomcat was able to stop (t|f)? [t]:
Waiting for tomcat to stop... Tomcat not listening on port: 8700 Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
tomcat What tomcat action do you want to perform? stop, start, restart, status? :
status Enter the default IP address for checking ports (just hit enter to accept the default unless on a machine with no network, might want to change to 127.0.0.1): [0.0.0.0]:
Tomcat is stopped. It is not detected to be listening on port: 8700 Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? : Example with loader: [appadmin@i2midev1 grouperInstaller]$
java -jar grouperInstaller.jar Do you want to 'install' a new installation of grouper, 'upgrade' an existing installation, 'patch' an existing installation, 'admin' utilities, or 'createPatch' for Grouper developers (enter: 'install', 'upgrade', 'patch', 'admin', 'createPatch' or blank for the default) [install]:
admin What admin action do you want to do (manage, upgradeTask)? :
manage Enter in the Grouper install directory (note: better if no spaces or special chars) [/tmp/grouperInstaller]:
What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
grouperDaemon What grouperDaemon action do you want to perform? stop, start, restart, status? :
status In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki). If you have a service configured please enter name or <enter> to continue without a service:
Using shell command: bash Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep" Grouper loader is running, here is the process output: appadmin 1900 1 0 22:06 pts/0 00:00:00 /bin/sh /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
grouperDaemon What grouperDaemon action do you want to perform? stop, start, restart, status? :
stop In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki). If you have a service configured please enter name or <enter> to continue without a service:
Stopping the grouper daemon is not an exact science, be careful! This script will find the process id of the daemon and kill it. Make it is correct! Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep" The command to kill the daemon is: /bin/kill -KILL 1900 Found pid 1900, do you want this script to kill it? (t|f) [t]:
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep" Cannot find the grouper daemon process, it is not running Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
grouperDaemon What grouperDaemon action do you want to perform? stop, start, restart, status? :
status In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki). If you have a service configured please enter name or <enter> to continue without a service:
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep" Cannot find the grouper daemon process, it is not running Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
grouperDaemon What grouperDaemon action do you want to perform? stop, start, restart, status? :
start In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki). If you have a service configured please enter name or <enter> to continue without a service:
################################## Starting the Grouper loader (daemons): bash -c "nohup /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader > /dev/null 2>&1 &" End starting the Grouper loader (daemons) ################################## Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep" Grouper loader is running, here is the process output: appadmin 2920 1 0 22:13 pts/0 00:00:00 /bin/sh /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader Press <enter> to continue or type 'exit' to end: What do you want to manage (logs, services, back, exit)? :
services What service do you want to manage? database, tomcat, grouperDaemon? :
grouperDaemon What grouperDaemon action do you want to perform? stop, start, restart, status? :
status In unix you should have a /etc/init.d or launchctl script which manages the grouper daemon (see details on wiki). If you have a service configured please enter name or <enter> to continue without a service:
Finding the grouper daemon process with: bash -c "/bin/ps -ef | /bin/grep /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh | /bin/grep -- -loader | /bin/grep -v grep" Grouper loader is running, here is the process output: appadmin 2920 1 0 22:13 pts/0 00:00:00 /bin/sh /tmp/grouperInstaller/grouper.apiBinary-2.3.0/bin/gsh.sh -loader Press <enter> to continue or type 'exit' to end:
exit [appadmin@i2midev1 grouperInstaller]$ |
- [grouper-users] manage grouper services with grouperInstaller, Hyzer, Chris, 12/06/2016
Archive powered by MHonArc 2.6.19.