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

Scaleway Server Won't Allocate Unless Typed With Fingers B/C Of a Dumb WLS Bash Bug #833

Closed
lettucehead opened this issue Mar 16, 2018 · 2 comments · Fixed by #976
Closed
Labels

Comments

@lettucehead
Copy link

lettucehead commented Mar 16, 2018

OS / Environment (where do you run Algo on)

Linux DESKTOP 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014 x86_64 x86_64 x86_64 GNU/Linux

Cloud Provider (where do you deploy Algo to)

cloud.scaleway.com

Summary of the problem

WLS bash types ^V instead of typing copied material into the terminal.
By unintended coincidence, Scaleway setup does not show pasted material.
As a result, it's easy to wonder why ./algo keeps failing when attempting to determine if server exists. Typing in access key does make bug go away.

##############EDIT: RESOLVED ############################
This can be worked around by setting the properties of the Windows Linux Subsystem. Please note that this workaround should be added to the existing algo docs.
https://superuser.com/questions/1064813/windows-10-build-14316-ctrl-v-doesnt-work-on-bash-on-ubuntu-on-windows#1109862

Steps to reproduce the behavior

  1. ./algo
  2. Paste ur key
    2.5 feel sad
  3. ./algo
  4. Type ur key
    4.5 feel glad

Full log

(env) chaznix@DESKTOP:~/algo$ ./algo

  What provider would you like to use?
    1. DigitalOcean
    2. Amazon Lightsail
    3. Amazon EC2
    4. Microsoft Azure
    5. Google Compute Engine
    6. Scaleway
    7. OpenStack (DreamCompute optimised)
    8. Install to existing Ubuntu 16.04 server

Enter the number of your desired provider
: 6

Enter your auth token (https://www.scaleway.com/docs/generate-an-api-token/)
[pasted values will not be displayed]
[...]:

Enter your organization name (https://cloud.scaleway.com/#/billing)
[pasted values will not be displayed]
[...]:

Name the vpn server:
[algo.local]:


  What region should the server be located in?
    1.   par1           Paris
    2.   ams1           Amsterdam
Enter the number of your desired region:
[1]: 1

Do you want macOS/iOS clients to enable "VPN On Demand" when connected to cellular networks?
[y/N]:

Do you want macOS/iOS clients to enable "VPN On Demand" when connected to Wi-Fi?
[y/N]:

Do you want to install a DNS resolver on this VPN server, to block ads while surfing?
[y/N]:

Do you want each user to have their own account for SSH tunneling?
[y/N]:

Do you want the VPN to support Windows 10 or Linux Desktop clients? (enables compatible ciphers and key exchange, less secure)
[y/N]:

Do you want to retain the CA key? (required to add users in the future, but less secure)
[y/N]:

PLAY [Configure the server] ******************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Local pre-tasks] ***********************************************************************************************************************************************************************************************************
included: /home/chaznix/algo/playbooks/local.yml for localhost

TASK [Generate the SSH private key] **********************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Generate the SSH public key] ***********************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Change mode for the SSH private key] ***************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Ensure the dynamic inventory exists] ***************************************************************************************************************************************************************************************
ok: [localhost]

TASK [cloud-scaleway : Check if server exists] ***********************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "connection": "close", "content": "{\"message\": \"Authentication error\", \"type\": \"invalid_auth\"}", "content_length": "59", "content_type": "application/json", "date": "Fri, 16 Mar 2018 22:43:31 GMT", "json": {"message": "Authentication error", "type": "invalid_auth"}, "msg": "Status code was not [200]: HTTP Error 401: UNAUTHORIZED", "redirected": false, "server": "Tengine", "status": 401, "url": "https://cp-par1.scaleway.com/servers"}

TASK [cloud-scaleway : debug] ****************************************************************************************************************************************************************************************************
ok: [localhost] => {
    "fail_hint": [
        "Sorry, but something went wrong!",
        "Please check the troubleshooting guide.",
        "https://trailofbits.github.io/algo/troubleshooting.html"
    ]
}

TASK [cloud-scaleway : fail] *****************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}

PLAY RECAP ***********************************************************************************************************************************************************************************************************************
localhost                  : ok=7    changed=0    unreachable=0    failed=2

(env) chaznix@DESKTOP:~/algo$
@dguido
Copy link
Member

dguido commented Mar 25, 2018

Thanks for the tip! Can you make a PR with the extra documentation we need?

@lettucehead
Copy link
Author

sure thing - can you please look out for my resume via your Join Us page?

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

Successfully merging a pull request may close this issue.

3 participants