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

inspec compliance login fails #689

Closed
mhedgpeth opened this issue Apr 28, 2016 · 6 comments
Closed

inspec compliance login fails #689

mhedgpeth opened this issue Apr 28, 2016 · 6 comments

Comments

@mhedgpeth
Copy link

Description

I am unable to log in with inspec compliance login

InSpec and Platform Version

0.19.3 (latest)

Replication Case

Run the following command:

inspec compliance login https://myurl.centralus.cloudapp.azure.com --user myuser --password mypassword

Possible Solutions

I wonder if this has something to do with the server https not working. I tried adding the --insecure flag and got the same results.

Stacktrace

Please include the stacktrace output or link to a gist of it, if there is one.

C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.19.3/lib/bundles/inspec-compliance/api.rb:21:in `leg
acy_login_post': undefined method `send_request' for Compliance::API:Class (NoMethodError)
        from C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.19.3/lib/bundles/inspec-compliance/cli.
rb:206:in `login_legacy'
        from C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.19.3/lib/bundles/inspec-compliance/cli.
rb:36:in `login'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_comma
nd'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:235:in `block in subcommand'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_comma
nd'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
        from C:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/gems/inspec-0.19.3/bin/inspec:9:in `<top (required)>'

        from c:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/bin/inspec:22:in `load'
        from c:/Users/mh185122/AppData/Local/chefdk/gem/ruby/2.1.0/bin/inspec:22:in `<main>'
@srenatus
Copy link
Contributor

Which version of compliance do you use? While this looks like a real bug in the backwards-compatibility of inspec-compliance, using the old auth way hints at a not-quite-recent Compliance version...

@mhedgpeth
Copy link
Author

I downloaded it and loaded it last night. The auth method could be my
ignorance; where can I read more about the new auth?

On Thu, Apr 28, 2016, 06:41 Stephan Renatus notifications@github.com
wrote:

Which version of compliance do you use? While this looks like a real bug
in the backwards-compatibility of inspec-compliance, using the old auth way
hints at a not-quite-recent Compliance version...


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#689 (comment)

@chris-rock
Copy link
Contributor

@mhedgpeth I know we have some bugs there. I am already in the process of fixing the bug...

@mhedgpeth
Copy link
Author

Fantastic, I'm looking forward to seeing it working 👍

@chris-rock
Copy link
Contributor

fixed in #695

@mhedgpeth
Copy link
Author

Verified that this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants