travis.rb: unable to login to pro
I’m trying to encrypt some data and when I run encrypt it says I need to login. When I try to login I get this. I’m sure my username and password are correct, I’ve tried many times. Maybe I’m doing something wrong?
$ travis encrypt BLAH=blah
not logged in, please run travis login --pro
$ travis login --pro
We need your GitHub login to identify you.
This information will not be sent to Travis CI, only to api.github.com.
The password will not be displayed.
Try running with --github-token or --auto if you don't want to enter your password anyway.
Username: awesomescot
Password for awesomescot: **************************************
Validation Failed
for a full error report, run travis report --pro
$ travis report --pro
System
Ruby: Ruby 2.0.0-p598
Operating System: Ubuntu 14.04
RubyGems: RubyGems 2.4.3
CLI
Version: 1.7.5
Plugins: none
Auto-Completion: yes
Last Version Check: 2015-01-27 09:28:54 -0800
Session
API Endpoint: https://api.travis-ci.com/
Logged In: no
Verify SSL: yes
Enterprise: no
Endpoints
pro: https://api.travis-ci.com/ (current)
Last Exception
An error occurred running `travis login --pro`:
RuntimeError: Validation Failed
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/tools/github.rb:216:in `rescue in basic_auth'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/tools/github.rb:208:in `basic_auth'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/tools/github.rb:221:in `login'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/tools/github.rb:80:in `possible_tokens'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/tools/github.rb:49:in `each_token'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/tools/github.rb:36:in `with_token'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/cli/login.rb:31:in `login'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/cli/login.rb:40:in `run'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/cli/command.rb:198:in `execute'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/lib/travis/cli.rb:64:in `run'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/gems/travis-1.7.5/bin/travis:18:in `<top (required)>'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/bin/travis:23:in `load'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/bin/travis:23:in `<main>'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/bin/ruby_executable_hooks:15:in `eval'
from /home/scot/.rvm/gems/ruby-2.0.0-p598/bin/ruby_executable_hooks:15:in `<main>'
For issues with the command line tool, please visit https://github.com/travis-ci/travis.rb/issues.
For Travis CI in general, go to https://github.com/travis-ci/travis-ci/issues or email support@travis-ci.com.
Let me know if you need any more info.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 24 (7 by maintainers)
try ‘travis endpoint --pro --set-default’ … solved my problem for pro
why is this issue closed?
I was having the same issue. I ended up resolving it by deleting the
temporary token for proat https://github.com/settings/tokens. Hope this helps someone else…I am seeing the same error:
Why do I have to login as pro?
This is still happening for me. I have tried re-syncing, re-installing the gem and
--set-defaultI have 2 factor auth on, but I still get the same error if I turn it off