travis.rb icon indicating copy to clipboard operation
travis.rb copied to clipboard

Validation Failed

Open larryxiao625 opened this issue 8 years ago • 7 comments

Last Exception

An error occurred running `travis setup --org`:
    RuntimeError: Validation Failed
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/tools/github.rb:216:in `rescue in basic_auth'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/tools/github.rb:208:in`basic_auth'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/tools/github.rb:221:in `login'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/tools/github.rb:80:in`possible_tokens'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/tools/github.rb:49:in `each_token'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/tools/github.rb:36:in`with_token'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/setup/releases.rb:12:in `block in run'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/setup/service.rb:61:in`block in deploy'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/setup/service.rb:52:in `configure'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/setup/service.rb:60:in`deploy'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/setup/releases.rb:11:in `run'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/setup.rb:55:in`run'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli/command.rb:198:in `execute'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/lib/travis/cli.rb:64:in`run'
        from /Library/Ruby/Gems/2.0.0/gems/travis-1.8.2/bin/travis:18:in `<top (required)>'
        from /usr/local/bin/travis:23:in`load'
        from /usr/local/bin/travis:23:in `<main>'

**# System information**
System
Ruby:                     Ruby 2.0.0-p648
Operating System:         Mac OS X 10.11.5
RubyGems:                 RubyGems 2.0.14.1

CLI
Version:                  1.8.2
Plugins:                  none
Auto-Completion:          yes
Last Version Check:       2016-04-30 08:34:29 +0800

Session
API Endpoint:             https://api.travis-ci.org/
Logged In:                no
Verify SSL:               yes
Enterprise:               no

Endpoints
org:                      https://api.travis-ci.org/ (current)

larryxiao625 avatar Apr 30 '16 00:04 larryxiao625

I get the same error when running travis setup releases.

derekparker avatar May 29 '16 20:05 derekparker

Duplicate of Issue #359

davemachado avatar Jun 09 '16 04:06 davemachado

I get the same problem on Fedora-23:

mldt:graphviz (master)$ travis login 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: ellson Password for ellson: **************** Successfully logged in as ellson! mldt:graphviz (master)$ travis setup releases --force Username: ellson Password for ellson: **************** Validation Failed for a full error report, run travis report --org mldt:graphviz (master)$

ellson avatar Jul 09 '16 22:07 ellson

Problem is apparently fixed in the latest pre-release of travis. which may be 1.8.3 but "travis version" doesn't think so:

$ gem install travis --pre Successfully installed travis-1.8.3.travis.745.4 Parsing documentation for travis-1.8.3.travis.745.4 Done installing documentation for travis after 1 seconds 1 gem installed $ travis version 1.8.2

ellson avatar Jul 10 '16 01:07 ellson

any update on the pre-release? I'm not familiar with Travis' pre-release work.

On Sat, Jul 9, 2016 at 9:53 PM, John Ellson [email protected] wrote:

Problem is apparently fixed in the latest pre-release of travis. which may be 1.8.3 but "travis version" doesn't think so:

$ gem install travis --pre Successfully installed travis-1.8.3.travis.745.4 Parsing documentation for travis-1.8.3.travis.745.4 Done installing documentation for travis after 1 seconds 1 gem installed $ travis version 1.8.2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/travis-ci/travis.rb/issues/394#issuecomment-231566065, or mute the thread https://github.com/notifications/unsubscribe/AObwpdOhebu4hyyBj0al14GrDlvgnAhmks5qUFCOgaJpZM4ITSGP .

davemachado avatar Jul 10 '16 03:07 davemachado

All I know is that I found the reference to the pre-release here:

  https://github.com/travis-ci/travis.rb#installation

On 07/09/2016 11:05 PM, Dave Machado wrote:

any update on the pre-release? I'm not familiar with Travis' pre-release work.

On Sat, Jul 9, 2016 at 9:53 PM, John Ellson [email protected] wrote:

Problem is apparently fixed in the latest pre-release of travis. which may be 1.8.3 but "travis version" doesn't think so:

$ gem install travis --pre Successfully installed travis-1.8.3.travis.745.4 Parsing documentation for travis-1.8.3.travis.745.4 Done installing documentation for travis after 1 seconds 1 gem installed $ travis version 1.8.2

— You are receiving this because you commented. Reply to this email directly, view it on GitHub

https://github.com/travis-ci/travis.rb/issues/394#issuecomment-231566065, or mute the thread

https://github.com/notifications/unsubscribe/AObwpdOhebu4hyyBj0al14GrDlvgnAhmks5qUFCOgaJpZM4ITSGP .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/travis-ci/travis.rb/issues/394#issuecomment-231568066, or mute the thread https://github.com/notifications/unsubscribe/ABcTPRVgCkIF67tI6m8fPAHCWdaGJWUkks5qUGGUgaJpZM4ITSGP.

ellson avatar Jul 10 '16 09:07 ellson

Can sometimes get travis setup releases to "complete," but nothing actually gets set up. Reading through the above reference does not assure me that this issue is resolved in next pre-release.

davemachado avatar Jul 13 '16 18:07 davemachado