Coder Social home page Coder Social logo

Setup issues about err-stackstorm HOT 6 CLOSED

ChrisMcKee avatar ChrisMcKee commented on July 20, 2024
Setup issues

from err-stackstorm.

Comments (6)

nzlosh avatar nzlosh commented on July 20, 2024 1

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

from err-stackstorm.

ChrisMcKee avatar ChrisMcKee commented on July 20, 2024

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

from err-stackstorm.

nzlosh avatar nzlosh commented on July 20, 2024

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.

from err-stackstorm.

ChrisMcKee avatar ChrisMcKee commented on July 20, 2024

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.

from err-stackstorm.

nzlosh avatar nzlosh commented on July 20, 2024

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 v1s. 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

from err-stackstorm.

ChrisMcKee avatar ChrisMcKee commented on July 20, 2024

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. 👍

from err-stackstorm.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.