Closed hufman closed 9 years ago
Do you have any files under /usr/share/foreman/config/hooks/?
Yes, I have a single test hook: /usr/share/foreman/config/hooks/host/destroy/30_test
#!/bin/sh
echo >> /tmp/hooklog
date >> /tmp/hooklog
echo 'Yay it ran!' $1 Host: $2 >> /tmp/hooklog
cat >> /tmp/hooklog
Ok, move it to /usr/share/foreman/config/hooks/host/managed/destroy/30_test
Neat, that fixed it! That is a surprisingly scary error for something so minor haha! Thanks so much for the quick response!
I am using Ubuntu 14.04 and the Foreman 1.8 deb repo. I have a Foreman 1.8.2 instance that I upgraded from 1.7.2. After I install foreman_hooks, either with the deb of 0.3.7 or the latest gem of 0.3.8, Foreman crashes on any web page with the following message: