Git Product home page Git Product logo

Comments (6)

Joshua-Anderson avatar Joshua-Anderson commented on June 22, 2024 1

Found the source of the bug: https://github.com/deis/controller-sdk-go/blob/master/auth/auth.go#L105

if err != nil && !deis.IsErrAPIMismatch(reqErr) {
        return "", reqErr
}

should actually be

if reqErr != nil && !deis.IsErrAPIMismatch(reqErr) {
        return "", reqErr
}

Once I get CI working for this repository I'll PR a fix for this.

from controller-sdk-go.

Joshua-Anderson avatar Joshua-Anderson commented on June 22, 2024

Was able to reproduce.

deis auth:regenerate works properly when logged in, but panics if you have an invalid token.

I'll investigate this.
In the meantime @seanknox, logging in again before running deis auth:regenerate should fix the problem.

from controller-sdk-go.

seanknox avatar seanknox commented on June 22, 2024

Thanks @Joshua-Anderson, logging in again does take care of it.

from controller-sdk-go.

fdasoghe avatar fdasoghe commented on June 22, 2024

Hello.
I'm experiencing same issue, so I'm waiting for the fix :o)
In the meantime, I'm not sure how to use the suggested workaround. If I logout (with deis auth:logout) and then login again, with deis auth:login http://deis.10.3.0.182.nip.io, I get this error:
Error: Unable to log in with provided credentials.
Of course I'm double-sure provided credentials were correct.

In order to avoid the issue, I must re-register a new user but of course I loose access to previous apps (and login to old users doesn't work anymore).

Does anyone have any help, please?

Thanks in advance,
Fabio

from controller-sdk-go.

Joshua-Anderson avatar Joshua-Anderson commented on June 22, 2024

@think01 If you would like to talk to someone to help debug this, I'm happy to help in the deis community slack channel. If you're using minio for your data storage (the default option), I suspect it was restarted, resulting in the loss of all data on your cluster. This would explain why you are no longer able to log in because your cluster state would have been entirely reset.

from controller-sdk-go.

fdasoghe avatar fdasoghe commented on June 22, 2024

Thank you @Joshua-Anderson!
Anyway, I had this problem with:

coreos-kubernetes (with kubernetes 1.3.4)
vagrant 1.8.5

It disappeared using kubernetes 1.3.5 (without CoreOs, as per the official Deis tutorial) and Vagrant 1.8.3 (there's a regression in Vagrant: hashicorp/vagrant#5186).

from controller-sdk-go.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.