-
Notifications
You must be signed in to change notification settings - Fork 162
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
make run: KeyError: 'token' error #33
Comments
Thanks for reporting, and sorry you're hitting a bug. The usual cause of this problem is that you've set the environment variable but not exported it. For example:
But after;
|
I added an error message to the code that prints a more informative error in this case. |
Its strange, I only get the error while running sudo make run
If I run bin/ |
When you run sudo, you're actually starting another shell as root, which means that it comes with a whole new set of environment variables, which doesn't include the ones in your user environment. That's why limbo can't find them. I recommend that you either avoid running limbo as root or figure out how to set the environment variables such that the process will have access to them. For example, I use an upstart script to start my instance of limbo, it looks like: start on net-device-up
respawn
respawn limit 3 30
env SLACK_TOKEN=xoxb-<rest of token>
env LIMBO_LOGLEVEL=INFO
env LIMBO_LOGFILE=/var/log/limbo
exec /srv/limbo/bin/limbo |
Marking as closed, but feel free to keep asking for help, and thanks again for reporting! |
Thanks, I'll |
Sorry if this is on my end but I'm not sure why this is failing.
The make run command is failing with a KeyError: 'token' error. My ~/.bashrc file has the export line setup correctly I believe. That being said, after running make install limbo runs just fine ;)
The text was updated successfully, but these errors were encountered: