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

[windows] The CLI doesn't work at all on Windows with command that require an input from the user #734

Closed
brandon-welsch opened this issue Jun 20, 2022 · 5 comments

Comments

@brandon-welsch
Copy link
Member

brandon-welsch commented Jun 20, 2022

Log:

$ scalingo login
        Trying login with SSH
 !      SSH Connection failed.
        Trying login with user/password:

        Username or email: [REDACTED]
        Password:   ! Fail to login (1/3): fail to read the password on stdin: The handle is invalid

        Username or email: interrupt catched, abording

And the command doesn't display anything with mysql-console for example.

Seems related to 99designs/aws-vault#772

Need to test this fix: 99designs/aws-vault#113

A customer had this issue: https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/3379738/conversations/12375700071636
Contact them when this is fixed

@brandon-welsch
Copy link
Member Author

From Windows with the Git Bash shell:

Brandon@Scalingo MINGW64 ~
$ scalingo.exe login
       Trying login with SSH…
 !     SSH connection failed.
       Trying login with user/password:

       Username or email: [REDACTED]
       Password:  !     Fail to login (1/3): fail to read the password on stdin: Descripteur non valide

       Username or email:
       Username or email:
       Username or email: interrupt catched, aborting…

@johnsudaar
Copy link
Contributor

johnsudaar commented Jul 29, 2022

Related to SRE-573

@EtienneM
Copy link
Member

EtienneM commented Aug 29, 2022

Another impacted customer: https://app.intercom.com/a/inbox/w4oogu7s/inbox/shared/all/conversation/12375700080025

The CLI hangs forever after typing the apps-info command:

$ DEBUG=1 scalingo apps-info
[DEBUG]2022/08/29 12:25:49 [Regions] Get the list of regions to fill the cache
[DEBUG]2022/08/29 12:25:49 [API] POST https://auth.scalingo.com/v1/tokens/exchange
[DEBUG]2022/08/29 12:25:49 User Agent: Scalingo CLI v1.24.1
[DEBUG]2022/08/29 12:25:49 Headers: map[User-Agent:[Scalingo CLI v1.24.1]]
[DEBUG]2022/08/29 12:25:49 Params: map[]
[DEBUG]2022/08/29 12:25:50 Request ID: 71d15a3d-8ac3-43ba-a671-f5ebf1f57f9c
[DEBUG]2022/08/29 12:25:50 Duration: 223.5301ms
[DEBUG]2022/08/29 12:25:50 [API] GET https://auth.scalingo.com/v1/regions?
[DEBUG]2022/08/29 12:25:50 User Agent: Scalingo CLI v1.24.1
[DEBUG]2022/08/29 12:25:50 Headers: map[User-Agent:[Scalingo CLI v1.24.1]]
[DEBUG]2022/08/29 12:25:50 Params: map[]
[DEBUG]2022/08/29 12:25:50 Request ID: 95779a3c-9b7d-4845-8e59-d2a221f546eb
[DEBUG]2022/08/29 12:25:50 Duration: 129.4052ms
[DEBUG]2022/08/29 12:25:50 {"regions":[{"name":"osc-fr1","display_name":"Paris - Outscale","api":"[https://api.osc-fr1.scalingo.com","database_api":"https://db-api.osc-fr1.scalingo.com","dashboard":"https://dashboard.scalingo.com","ssh":"ssh.osc-fr1.scalingo.com:22","default":true](https://api.osc-fr1.scalingo.com%22,%22database_api%22:%22https://db-api.osc-fr1.scalingo.com%22,%22dashboard%22:%22https://dashboard.scalingo.com%22,%22ssh%22:%22ssh.osc-fr1.scalingo.com:22%22,%22default%22:true)}]}
interrupt catched, aborting…

@EtienneM
Copy link
Member

EtienneM commented Oct 5, 2022

This will be fixed for the next release including the fix in #806. Probably 1.26.0.

@EtienneM EtienneM closed this as completed Oct 5, 2022
@EtienneM
Copy link
Member

EtienneM commented Oct 7, 2022

FYI the fix from 99designs/aws-vault#113 has been implemented in the PR #705:

https://github.com/Scalingo/cli/pull/705/files#diff-40837a1735f9474e15525ba28f225c256a9ab77d7c5f1fce60caa79e7a33243bR13

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

No branches or pull requests

3 participants