Skip to content
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

Problem: Bot cannot login, bad credentials. #1557

Closed
5 of 8 tasks
Qwerty-Space opened this issue Mar 26, 2018 · 10 comments
Closed
5 of 8 tasks

Problem: Bot cannot login, bad credentials. #1557

Qwerty-Space opened this issue Mar 26, 2018 · 10 comments
Labels
s/can't repro The issue can't be reproduced s/pebkac notourproblem.jpg

Comments

@Qwerty-Space
Copy link

Qwerty-Space commented Mar 26, 2018

musicbot.log
Please tick all applicable boxes.

  • I am using Python 3.5 or higher (run python --version on the command line)
  • I have followed the official guides to install the bot for my system
  • I have updated my dependencies to the latest version using the appropriate update_dependencies script

Which version are you using?

  • The latest master version (1.9.7)
  • The latest review version

What type of issue are you creating?

  • Bug
  • Feature request
  • Question

Description of issue

Starting MusicBot 1.9.7
Loaded autoplaylist with 2531 entries
.[INFO] launcher:
An error has occured:
  Problem:
    Bot cannot login, bad credentials.

  Solution:
    Fix your token in the options file.  Remember that each field should be on their own line.



[INFO] launcher: All done.

Steps to reproduce

  1. Run the bot with Docker command docker run -it musicbot:0.1

musicbot.log

@AutumnClove
Copy link
Member

You're using an invalid token, please make sure that a) this is a bot account b)your using token not secret and c)the token is still valid.
If you've done all this and it's still not working please regenerate your token and use the new one. If this also fails make sure you've made a copy of example_options.ini and renamed it options.ini if you've done this then make sure your showing file extension so that your not having an issue of options.ini.ini

@MattBSG MattBSG added s/pebkac notourproblem.jpg s/can't repro The issue can't be reproduced labels Mar 26, 2018
@Qwerty-Space
Copy link
Author

@AutumnClove I have done all of those things.

@Qwerty-Space
Copy link
Author

Qwerty-Space commented Mar 26, 2018

boba@blueberry:~/bots/MusicBot$ ls config/
_autoplaylist.txt  example_options.ini  example_permissions.ini  i18n  options.ini  permissions.ini

image

@AutumnClove
Copy link
Member

As far as I know bot tokens start with ND

@MattBSG
Copy link
Collaborator

MattBSG commented Mar 26, 2018

@AutumnClove There are multiple prefixes, idk if that’s one of them

@Strift
Copy link

Strift commented Mar 26, 2018

I just tried using the bot, within a docker container. I had the same error. I was already using the bot this way with a previous version, and it used to work well.

What I did:

  • Cloned this repo
  • Copied the options.ini file, and edited the Token
  • Built the docker image and ran it

I'm on Ubuntu, too.

@Qwerty-Space
Copy link
Author

ohh I think I might know the problem.
The Docker container doesn't have access to the options file. The same thing happened with Group Butler in a Docker container.

How can I give it access?

@Strift
Copy link

Strift commented Mar 27, 2018

I don't think it's the problem.

The whole directory is copied during the image build process

# Add project source
WORKDIR /usr/src/musicbot
COPY . ./

And a volume is actually mounted to map the the config directory from the hard disk

# Create volume for mapping the config
VOLUME /usr/src/musicbot/config

And by the way, my token starts with "cTRkq", even though I don't think it has something to do with the issue.

@Qwerty-Space
Copy link
Author

@Strift something similar happened with Group Butler in Docker. It copied the directory, but I had to force it to use the environment variable file in a docker-compose file.

@MattBSG
Copy link
Collaborator

MattBSG commented Jul 4, 2018

Appears resolved. If you have any further questions please feel free to reopen :)

@MattBSG MattBSG closed this as completed Jul 4, 2018
@Just-Some-Bots Just-Some-Bots locked and limited conversation to collaborators Feb 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/can't repro The issue can't be reproduced s/pebkac notourproblem.jpg
Projects
None yet
Development

No branches or pull requests

4 participants