Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

alert plugins are not loaded #36

Open
marvinthepa opened this issue Apr 8, 2016 · 1 comment
Open

alert plugins are not loaded #36

marvinthepa opened this issue Apr 8, 2016 · 1 comment

Comments

@marvinthepa
Copy link

I was trying to install https://github.com/vikingco/cabot-alert-victorops. I followed the steps outlined in the Readme (adapted to the container):

  1. Enter the cabot virtual environment.
  2. Run pip install cabot-alert-victorops (in Dockerfile instead)
  3. Add cabot_alert_victorops to the installed apps in settings.py (instead: ENV CABOT_PLUGINS_ENABLED=cabot_alert_hipchat,cabot_alert_twilio,cabot_alert_email,cabot_alert_victorops)
  4. Run manage.py syncdb (not necessary, run in run.sh)
  5. Set VICTOROPS_URL and VICTOROPS_API_KEY environment variables (again in Dockerfile)
  6. Restart Cabot (not necessary, is started later anyway)

However, the plugin is never loaded.

Using some very troublesome println-debugging, I managed to figure out that the plugin file is imported, but the class is not registered to AlertPlugin.__subclasses__().

Adding the plugin works flawlessly in the development Vagrant box.

@shoonoise
Copy link
Owner

Try to docker-compose build --no-cache && docker-compose up -d
Also better way use cabot_env file for envs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants