Ca va ENCORE parler de bits!

2014-04-12  |  Tips 'n' Tricks  |  administration sentry system

Sentry is a realtime errors manager for connected application that help to know easily which problem are recurrent in a software. This opensource project present a very light web interface to track errors efficiently and freely.


First, you have to install nodejs. Following, a repository to get script to do it :

$> git clone
$> cd nodeautoinstall
$> sudo python ./

Next, install python PIP libraries

$> sudo apt-get install python-pip python-dev build-essential 
$> sudo pip install --upgrade pip 
$> sudo pip install --upgrade virtualenv

Now we can start to install Sentry

$> git clone
$> cd sentry
#> make
#> ./ build
#> ./ install

At this point, you can now use 'sentry' as shell command. With this binary, we will generate the configuration file for the manager.

#> sentry init /etc/

The configuration file have to be edited to set your domain parameters :


And create the administrator account.

#> sentry --config=/etc/ createsuperuser

Let's run the Sentry app!

#> sentry --config=/etc/ start

Open your browser and configure your first project. Once done, you will be redirected to a sample page where you will find your public and secret key to connect to new project.

Sample application

captureMessage('hello world!');

// record exception
try {
    throw new Exception('Uh oh!');
catch (Exception $e) {

$error_handler = new Raven_ErrorHandler($client);

// Register error handler callbacks
set_error_handler(array($error_handler, 'handleError'));
set_exception_handler(array($error_handler, 'handleException'));

Get the Raven-php library on github at


Sentry quick start page
Sentry homepage


Share this article :

blog comments powered by Disqus

© 2012-2017 Ca va ENCORE parler de bits! All Rights Reserved.