Skip to content

Running OpenQuake

bwyss edited this page Mar 23, 2011 · 6 revisions

There are three services needed to run OpenQuake: Redis, RabbitMQ and Celery.

Skip this step if you are using Ubuntu. Otherwise open a new terminal, and type:

sudo redis-server

Skip this step if you are using Ubuntu. Otherwise open a new terminal, and type:

sudo rabbitmq-server

To start Celery, you must be inside your OpenQuake directory. Open a new terminal, and type:

cd /to/your/openquake/dir/
celeryd

You should see something like:

[...]
[...]
WARNING:celery:celery@YOUR_HOSTNAME has started.

In case you see [these errors](http://pastebin.ubuntu.com/566580/) when running celeryd as a non-root user please make sure the permissions for /dev/shm are set as follows:

sudo chmod 01777 /dev/shm/
ls -ld /dev/shm/
drwxrwxrwt 2 root root 40 2011-02-13 11:03 /dev/shm/

We can now run the test suite, with:

cd /to/your/openquake/dir/
python run_tests.py

Or a smoke test, with:

cd /to/your/openquake/dir/
python bin/openquake --config_file=smoketests/simplecase/config.gem  --debug=debug

Ok, so now you have successfully installed OpenQuake, you have run the smocktests and everything is in order, you might be asking now what? You may want to begin to modify the config.gem file to add your own data to be used in the calculation, or change the bounding box of the calculation area. We are currently in the process of creating a user manual that will be a complete guide to using OpenQuake.
Further assistance you can get help through our mailing list or on irc.freenode.net (freenode network) at #openquake.
Please help us improve the process, if you have any suggestion that could improve this documentation contact us at [email protected]

Back to Wiki Home

Back to Installation

Clone this wiki locally