-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Unauthorized #33
Comments
I receive this error from the get-go of a hubot start.
Also tried |
@pixelrebel Is the username/password that you've passed to Hubot is valid and works via either the CLI or WebUI? |
@jfryman Oops. I didn't do that step, in the past I had auth disabled. How to I pass the credentials to hubot? Can I set an environment variable in hubot.conf? What's a secure method? |
The best way to sent environment variables is either in the process supervisor that you are using to manage Hubot, or the entry script ( |
It looks like this is the same issue as #45. I will make sure this "limitation" gets noted in the readme for now. |
This one was fixed some time ago. |
Why would I receive this error using just the Stack Storm in a Docker container and following the quick tutorial, I have logged in at the web interface and in the CLI...? |
@sphinxs Can you point me to the quick tutorial you used? There are a few "quick tutorials" of StackStorm around. If you are running ST2 as one-microservice-per-container, then I suspect that your st2chatops container is not configured properly. Check the If you are running all ST2 microservices in a single container, then check that the st2chatops microservice is configured correctly in |
The tutorial was this one. I'm running as a single container. Here's the log about the key you have informed me @blag : root@228b8cf12449:/# cat /opt/stackstorm/chatops/st2chatops.env | grep ST2_API_KEY
export ST2_API_KEY="${ST2_API_KEY}"
# (Uncomment ST2_AUTH_URL, ST2_AUTH_USERNAME, ST2_AUTH_PASSWORD and comment out ST2_API_KEY) I searched the key in the documentation and found this, I'm confused, if they are at the same host I still need to set the key just like |
I get how it works watching the StackStorm 101 (v0.12) |
Okay, just keep in mind that that tutorial is over four years old at this point, and is running StackStorm 0.12. The last released version of StackStorm was 3.1, so there's been quite a few changes since then and things may not work the same way. And hubot-stackstorm in particular has seen some huge refactoring lately. I don't really know how one would (properly) run Atom in a container, and I'm pretty sure that would cause further issues for you. Either way, it's outside the scope of this issue, but if you really would like to find the answer, you can try asking in Docker's own community. Running StackStorm in Docker is difficult, so for pack development, I would highly recommend running it in a Vagrant container using this repository: That will remove one large layer of configuration complication (eg: Docker) for you, just make sure you read and follow the README for that repository. It will install and configure ST2 for you, although you will need to add your Slack token to The README for st2vagrant also has directions for how to configure a shared volume between the host and the ST2 VM, so you can modify the pack on your host (in Atom!) and test it out in the VM. Our documentation on packs themselves is here: And our guide to creating and contributing packs is here: You can also search for free, pre-existing packs on StackStorm Exchange: Hopefully some of those are useful to you so you don't have to reinvent any wheels. 😄 Lastly, instead of necromancing a long-resolved GitHub issue, you may find better support by asking in our forum, or especially in our Slack community. If you need more individualized support, you can contact Extreme Sales by filling out the form on this page: |
Running it on production with authentication enabled. At start it works ok, but after some period of time when trying to run chatops command I get:
Version:
hubot-stackstorm
0.2.1
Log:
Seems something related to expired tokens,
because after restarting hubot it returns back to normal.
The text was updated successfully, but these errors were encountered: