...
To check if Crowd is up, in web browser go to the appropriate URL as defined above.
You should see Crowd log-in page. If not then ssh in to xxx-crowd.sagebase.org as ec2-user, using the standard key for 'platform' owned ec2 instances, PlatformKeyPairEast
At the unix prompt:
ps -efwww | grep java
Should show one java process, if not
cd /usr/local/atlassian-crowd-2.2.7/
./start_crowd.sh
Now verify that the log-in page appears in your web browser.
If crowd is running and you feel the need to 'bounce' the server, make sure to stop crowd before running "start_crowd.sh". To do this, run
./stop_crowd.sh
from /usr/local/atlasssian-crowd-2.2.7/. Use the aforementioned "ps -ef..." command to make sure no Crowd java process is running. If necessary, 'kill' lingering instances before running "start_crowd.sh". It's important not to have multiple instances of the java process runnning.sudo reboot
The machine should restart keeping the existing elastic ip.
Changing Crowd Database URL
In order to change the database URL used by crowd, you will need to edit one of the configuration files:
Attempting to change the database url for Crowd
- ssh into prod-crowd
- Made a copy of the config file:
- cp /var/crowd-home/crowd.cfg.xml /var/crowd-home/crowd.cfg-old.xml
- changed /var/crowd-home/crowd.cfg.xml:
- from: <property name="hibernate.connection.url">jdbc:mysql://<old_db_host>/crowd_prod?autoReconnect=true&characterEncoding=utf8&useUnicode=true</property>
- to: <property name="hibernate.connection.url">jdbc:mysql://<new_db_host>/crowd_prod?autoReconnect=true&characterEncoding=utf8&useUnicode=true</propert>
- Reboot the crowd machine:
- sudo reboot
- sudo reboot