Closed ChrisMcKee closed 6 years ago
Hi @ChrisMcKee,
Did you have a StackStorm instance already setup and running and the appropriate plugin configuration included in config.py
when you attempted to install the plugin?
In the effort to debug what might be causing the plugin to fail, would you mind installing the plugin manually rather than through the bot command?
Activate the virtualenv (if you're setup is using one)
$ activate ~/errbot/bin/activate
Change to the plugin directory (make it if it doesn't exist)
$ cd ~/errbot/data/plugin/fmnisme
Clone the repo.
$ git clone https://github.com/fmnisme/err-stackstorm.git
Install plugin requirements
$ cd err-stackstorm; pip install -r requirements.txt
Restart errbot
$ cd ~/errbot; errbot
Thanks, I'll give that a go! I'd dug into various other GitHub issues and tried manually installing various packages so I'll salt-the-earth
Great, let me know how you get on with that. If it works (or at least gives a useful back trace) then I'll see how best to handle this case, either document it or find a way for the error message to be more meaningful when the installation fails.
Thanks; that appeared to work bar a few doc issues. In st2,py the default configs https://github.com/fmnisme/err-stackstorm/blob/master/st2.py#L30-L35 vs the config causes bad routing to the api.
Computer says nooo. See logs for details:
404 Client Error: Not Found for url: https://192.168.72.128/api/v1/v1/actionalias/help
I can see my requests getting to StackStorm now from errbot but its a bit of a blackhole at present (says it'll perform the command, never feeds back the result). Closer though.
Not sure why it wouldn't install from the bot then; but it seems ok direct.
I did have to add in
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
as the logs were just streaming noise with cert verification turned off.
I suspect the actual exception being cause during !repo install ...
isn't getting raised all the way to the top calling function, so we were just seeing a generalised message ImportError: No module named 'sseclient'
. I'll test out a few ideas to improve the installation process, thanks for reporting it.
The url looks like it's got 1 too many v1
s. Did you have a look at the troubleshooting section of the plugin docs? Would you be able to join the StackStorm Slack community to discuss your setup directly? http://stackstorm.com/community-signup
I copied the paths from the st2.py file to correct the api paths (hence it sorta working now) I'll re-run it all again tomorrow; I discovered an annoying issue with VMWare/Ubuntu wiping state when my laptops in sleep so I've been stuck in a loop of starting from scratch 😁
Thanks for the help and the link; I'll post any question in there. 👍
Ubuntu 16.04 LTS
Having had no luck getting setup I decided to try this again on a clean machine without using virtualenv.
sudo apt-get install python-pip git python3-pip build-essentials cmake libffi-dev
sudo pip3 install errbot
mkdir errbot && cd errbot && errbot --init
pip3 install "errbot[slack]"
errbot
I ran the install plugin command and failed with the following output.
Output
From Log file