Sentry on DotCloud

Sentry is a realtime event logging and aggregation platform written in Python. It collects error logs including stack traces and local vars from applications and sends out email notifications. It also has client libraries for Django, JavaScript, Java and a couple more.


DotCloud is a managed application hosting that provides a wide range of services (web servers, databases, caching, etc.) and makes it trivial to deploy applications.

This small project helps you to run Sentry and fits in a DotCloud's Free Plan making it an affordable platform for tracking errors in your applications.


First you need to sign up for DotCloud account and install their command-line client. Windows users may be interested in DotCloudWin which does not require Cygwin installation.

Getting the Code

Clone the project repository and cd into the new directory:

git clone git://
cd sentry-on-dotcloud


Before you deploy the code it is recommended to make a couple adjustments in the configuration files.

Set random SECRET_KEY value in the file. You can use the included script or the following Python snippet to generate a random key:

import random
chars = "abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)"
print "".join([random.choice(chars) for i in range(50)])


Use the DotCloud CLI client to create a new project called sentry and to push the application and configuration files:

dotcloud create sentry
dotcloud push sentry .

The url of the new application instance can be found using:

dotcloud url sentry

After you log in with the default credentials (admin/password) it is strongly recommended to change your admin user password and email.

Other Resources

Article "Sentry on DotCloud" was published on May 13, 2012 and tagged under dotcloud and sentry. You can it if you like or leave a comment below.

Next article: Django on Heroku: installing NodeJS and Less for static assets compilation

Previous article: Installing VirtualBox Guest Additions on Ubuntu Server