The open source self-hosted error catcher
Errbit is a tool for collecting and managing errors from other applications. It is Airbrake (formerly known as Hoptoad) API compliant, so if you are already using Airbrake, you can just point hoptoad_notifier at your Errbit server.
Errbit may be a good fit for you if:
- Your exceptions may contain sensitive data that you don't want sitting on someone else's server
- Your application is behind a firewall
- You'd like to brand your error catcher
- You want to add customer features to your error catcher
- You're crazy and love managing servers
If this doesn't sound like you, you should probably stick with Airbrake. The Thoughtbot guys offer great support for it and it is much more worry-free. They have a free package and even offer a "Airbrake behind your firewall" solution.
There is a demo available at http://errbit-demo.herokuapp.com/
Email: demo@errbit-demo.herokuapp.com Password: password
Note: This app is intended for people with experience deploying and maintining Rails applications. If you're uncomfortable with any step below then Errbit is not for you. Checkout Airbrake from the guys over at Thoughtbot, which Errbit is based on.
Set your local box or server(Ubuntu):
-
Install MongoDB. Follow the directions here, then:
apt-get update apt-get install mongodb
-
Install libxml and libcurl
apt-get install libxml2 libxml2-dev libxslt-dev libcurl4-openssl-dev
-
Install Bundler
gem install bundler
Running Locally:
-
Install dependencies
bundle install
-
Bootstrap Errbit. This will copy over config.yml and also seed the database.
rake errbit:bootstrap
-
Update the config.yml and mongoid.yml files with information about your environment
-
Start Server
script/rails server
Deploying:
-
Bootstrap Errbit. This will copy over config.yml and also seed the database.
rake errbit:bootstrap
-
Update the deploy.rb file with information about your server
-
Setup server and deploy
cap deploy:setup deploy
Deploying to Heroku:
-
Clone the repository
git clone http://github.com/jdpace/errbit.git
-
Create & configure for Heroku
gem install heroku heroku create example-errbit --stack cedar heroku addons:add mongohq:free heroku addons:add sendgrid:free heroku config:add HEROKU=true heroku config:add ERRBIT_HOST=some-hostname.example.com heroku config:add ERRBIT_EMAIL_FROM=example@example.com git push heroku master
-
Seed the DB (NOTE: No bootstrap task is used on Heroku!)
heroku run rake db:seed
-
Enjoy!
Configuring LDAP authentication:
-
In
config/config.yml
, setuser_has_username
totrue
-
Follow the instructions at https://github.com/cschiewek/devise_ldap_authenticatable to set up the devise_ldap_authenticatable gem.
-
If you are authenticating by
username
, you will need to set the user's email after authentication. You can do this by adding the following lines toapp/models/user.rb
:before_save :set_ldap_email def set_ldap_email self.email = Devise::LdapAdapter.get_ldap_param(self.username, "mail") end
Note: When upgrading Errbit, please run:
1. git pull origin master ( assuming origin is the github.com/jdpace/errbit repo )
2. rake db:migrate
If we change the way that data is stored, this will run any migrations to bring your database up to date.
Lighthouseapp Integration
- Account is the name of your subdomain, i.e. litcafe for project at http://litcafe.lighthouseapp.com/projects/73466-face/overview
- Errbit uses token-based authentication. Get your API Token or visit http://help.lighthouseapp.com/kb/api/how-do-i-get-an-api-token to learn how to get it.
- Project id is number identifier of your project, i.e. 73466 for project at http://litcafe.lighthouseapp.com/projects/73466-face/overview
Redmine Integration
- Account is the host of your redmine installation, i.e. http://redmine.org
- Errbit uses token-based authentication. Get your API Key or visit http://www.redmine.org/projects/redmine/wiki/Rest_api#Authentication to learn how to get it.
- Project id is an identifier of your project, i.e. chilliproject for project at http://www.redmine.org/projects/chilliproject
Pivotal Tracker Integration
- Errbit uses token-based authentication. Get your API Key or visit http://www.pivotaltracker.com/help/api to learn how to get it.
- Project id is an identifier of your project, i.e. 24324 for project at http://www.pivotaltracker.com/projects/24324
Thoughtworks Mingle Integration
- Account is the host of your mingle installation. i.e. https://mingle.example.com note: You should use SSL if possible.
- Errbit uses 'sign-in name' & password authentication. You may want to set up an errbit user with limited rights.
- Project id is the identifier of your project, i.e. awesomeapp for project at https://mingle.example.com/projects/awesomeapp
- Card properties are comma separated key value pairs. You must specify a 'card_type', but anything else is optional. i.e. card_type = Defect, status = Open, priority = Essential
There is a central Errbit instance running on heroku at http://errbit-central.heroku.com. Your Errbit instance will send it's errors there by default. If you are running vanilla Errbit, it would be really helpful if you could leave these settings unchanged. However, if you fork Errbit and are making lots of changes, please do point your errors back to your own instance of Errbit.
- Add ability for watchers to be configured for types of notifications they should receive
- Michael Parenteau - For rocking the Errbit design and providing a great user experience.
- Nick Recobra aka oruen - Nick is Errbit's first core contributor. He's been working hard at making Errbit more awesome.
- Relevance - For giving me Open-source Fridays to work on Errbit and all my awesome co-workers for giving feedback and inspiration.
- Thoughtbot - For being great open-source advocates and setting the bar with Airbrake.
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Copyright (c) 2010 Jared Pace. See LICENSE for details.