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

Lando pull not working WSL2 #44

Closed
Sizuji opened this issue Dec 4, 2022 · 1 comment
Closed

Lando pull not working WSL2 #44

Sizuji opened this issue Dec 4, 2022 · 1 comment

Comments

@Sizuji
Copy link

Sizuji commented Dec 4, 2022

Platform
Windows 11
WSL2 Ubuntu 20.04.5 LTS

I am trying to execute lando pull and getting this result

lando -v pull --database=dev --code=none --files=none
lando 04:02:28 INFO ==> loading app APP_NAME from config files 0=/home/user/Projects/PROJECT_NAME/.lando.yml
? Choose a Pantheon account PANTHEON_EMAIL
lando 04:02:30 INFO ==> loading app APP_NAME from config files 0=/home/user/Projects/PROJECT_NAME/.lando.yml
Attempting to login via terminus...
 [notice] Logging in via machine token.
 [error]  HTTP request has failed with error "Maximum retry attempts reached".
 [error]  Could not find a saved token identified by .
 [error]  Please visit the dashboard to generate a machine token:
https://dashboard.pantheon.io/machine-token/create/PANTHEON_USER_ID

Tried to authorize via terminus auth:login in container (lando ssh):

[notice] Logging in via machine token.
[info] #### REQUEST ####
Headers: {"User-Agent":"Terminus/3.0.7 (php_version=7.4.33&script=/usr/local/bin/terminus)","Accept":"application/json","Content-Type":"application/json","Content-Length":85}
URI: https://terminus.pantheon.io:443/api/authorize/machine-token
Method: POST
Body: {"machine_token":"**HIDDEN**","client":"terminus"}
[warning] HTTP request POST https://terminus.pantheon.io/api/authorize/machine-token has failed: Connection refused for URI https://terminus.pantheon.io/api/authorize/machine-token
[warning] Retrying POST https://terminus.pantheon.io/api/authorize/machine-token 1 out of 5 (reason: Connection refused for URI https://terminus.pantheon.io/api/authorize/machine-token)
[warning] Retrying POST https://terminus.pantheon.io/api/authorize/machine-token 2 out of 5 (reason: Connection refused for URI https://terminus.pantheon.io/api/authorize/machine-token)
[warning] Retrying POST https://terminus.pantheon.io/api/authorize/machine-token 3 out of 5 (reason: Connection refused for URI https://terminus.pantheon.io/api/authorize/machine-token)
[warning] Retrying POST https://terminus.pantheon.io/api/authorize/machine-token 4 out of 5 (reason: Connection refused for URI https://terminus.pantheon.io/api/authorize/machine-token)
[error]  HTTP request has failed with error "Maximum retry attempts reached".
@Sizuji Sizuji added the drupal label Dec 4, 2022
@rtfm-47 rtfm-47 transferred this issue from lando/lando Dec 4, 2022
@Sizuji
Copy link
Author

Sizuji commented Dec 11, 2022

Finally I found how to make it work. I have deleted docker from WSL2, installed Docker Desktop with setting which allows it to store containers in WSL2 and now everything works.

@Sizuji Sizuji closed this as completed Dec 11, 2022
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

2 participants