CloudMan Troubleshooting

CloudMan Logo

The following documentation can help you troubleshoot problems that you might have with your cloud system. For additional help with this system, you can search the mailing list archives, help forum, IRC channel log, or post a question to any of those venues.

Log files

Log files are available for problem diagnosis. Each launched instance (master or worker) will have their respective logs in the same locations, which are as follows:

Log pathDescription
/var/log/cloudman/cm_autorun.logAs an instance starts, this is the first CloudMan-related log file that gets created. The bootstrap script /usr/bin/cm_autorun.py logs here as it will initiate the cluster startup process by processing instance user data, downloading and invoking cm_boot.py script (see below). The mentioned script is automatically invoked by an upstart job (at launch level 2, 3, 4, or 5), as defined in /etc/init/cloudman.conf.
/var/log/cloudman/cm_boot.logThis log file contains the output from /tmp/cm/cm_boot.py script as it prepares the instance for CloudMan, starts the web server, downloads CloudMan (from the cluster's bucket or the default bucket) and then launches the CloudMan application.
/var/log/cloudman/cloudman.logThis is the main CloudMan application log file and it contains all the logging output as the application runs. The contents of this file are also available from the CloudMan Admin page. The main log file is automatically rotated by logrotate to keep the file of manageable size. The logrotate definition is stored at /etc/logrotate.d/cloudman (as defined in the corresponding Ansible role) and the rotated files will be available in the CloudMan application's runtime directory, /mnt/cm.
/mnt/galaxy/galaxy-app/main.logThis is the main Galaxy application log file. It is also available from the CloudMan Admin page.
Note that the CloudMan application log file locations have changed with the Mid 2015 release; for the locations of log files on older instances, see [this page](http://cloudman.irb.hr/blog/2013/03/06/cloudman-startup-procedure/).
For log files of individual services running within the system, see the page specific to the [particular service](/cloudman/services/).

Connect to Galaxy database

Your cloud cluster is configured with a PostgreSQL database for use by Galaxy. By default, the database is stored in /mnt/galaxy/db and is available on port 5950. To connect to the database, switch to the galaxy system user and connect to it with the following command: psql -p 5950