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
Windows10 Pro lando drush issue #9
Comments
The OCI runtime exec errors are more Docker erring than Lando failing. Try restarting Docker - sometimes Docker just glitches out and can cause weird errors. My other guess is this: https://www.lewuathe.com/exec-format-error-in-docker-container.html |
I will check this and let you know. This is working 100% in ubuntu, so I know for sure the problem is in Windows10 and some of the setup I made. |
Ok, not working. I did some testing inside lando ssh and it seems drush it's not working there either, I get the following error But I do have php Anyone knows where to go from there? |
I have the same issue. I use windows 10 pro. |
I tried Windows Linux Subsystem and it's not working either. I'm starting to think you need to d something different when building a lando for windows |
@UrielNicolas @TMFEspresso @idpokute: In what terminal app did you notice this error? I found out if I ran |
I'm runing this in PowerShell or CommandPrompt, a lando environment for Pantheon When starting lando I get this error any command, I get this |
Any updates on this issue? I'm still dealing with this issue. |
I'm also running on windows 10 pro. |
lando/lando#2085
|
Same issue as me, Windows 10 pro, I tried both the docker release that comes with v3.0.0-rrc.3 as well as docker 2.1.0.5 just to be sure, I do have wsl installed going to try without it. Did some further testing and interesting enough starting the the drupal recipe in empty folder builds drush properly it only seems to error out if there is drupal code in the folder. |
Maybe it helps someone: I had a similar problem when working on windows. Everytime when I start lando the "build_as_root" step failed with the error message from @UrielNicolas comment. So the solution for me was to setup git that it always check out file endings as-is: https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_formatting_and_whitespace |
Unfortunately even with "git config --global core.autocrlf input" still getting the same error :( Tried several different ways of specifying the drush location and even using global drush, it would either give the initial error or docker errors - https://docs.lando.dev/config/drupal8.html#configuration / the same site repo works fine with no modifications to the drupal8 recipe on osx Did some more digging it seems to be related to the drupal vendor/bin/drush file, deleting it and doing a lando rebuild gets it working, the repos work fine on the osx version. Spoke too soon doing the above lets it rebuild the container but drush is still broken i had to delete the bin folder then do a lando composer install and lando rebuild and that got it fully working. |
I am not able to replicate any of the above posted issues using the following: system OS: Windows 10 Pro
Docker Desktop: 2.2.0.5
Lando: 3.0.0-rrc.7
Recipe: Pantheon with vanilla latest Drupal 8 pantheon.yml # Put overrides to your pantheon.upstream.yml file here.
# For more information, see: https://pantheon.io/docs/pantheon-yml/
api_version: 1
drush_version: 10
php_version: 7.3 landofile name: landobot-drupal8
recipe: pantheon
config:
framework: drupal8
site: landobot-drupal8
id: 0831109d-10e9-426a-845a-e8396554acfa My suspicion is this thread may have a few distinct issues but i was not able to repro any of them. |
I just got this error on my windows 10 machine after rebuilding a project after updating lando to 3.0.5.
My .lando.yml file:
|
I'm afraid I've bumped into the same error on the drupal 9 recipe and @flyke's solution didn't worked for me. The site-local drush instalation documentation here also didn't work. Does anyone have further suggestions? |
I've experimented with the tooling configuration and looks like the traditional path in
|
I can also suggest to use the Docker with WSL2. Lando is very better with wsl2 (more speed, more stable, no erreur of permission and many more..). |
I'm using Docker Desktop with WSL2. I did both steps: And this fixed the error for me. Thank you 😊 |
When it dod not work for me in another project, I had to add drush to the tooling section too. Since I have my vendor folder in the root of my project, this was the correct tooling section to get drush working for me:
The nice thing about this is that these changes are immediate. No need to lando restart or lando rebuild, the drush command works instantly after saving the modified .lando.yml file |
Using a custom lando file for drupal 8, where the vendor folder is placed under "docroot", this worked for me in windows 10 and Docker Desktop with WSL2,as https://github.com/lando/lando/issues/1949#issuecomment-668538569 describes, didnt had to rebuild or restart lando for it to work.
|
Using WSL2 I was able to use lando. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues. |
I had this a couple more times where I got this error on a custom lando command: This usually happens on a (git) project where both a developer with a windows machine and a developer with a Mac machine are working on. The working solution is this for your windows machine:
|
I'm struggling with this also, we're currently in the middle of our drupal 8 to drupal 9 upgrade; we're a cross-platform team (some use macs, some use PCs with W10 pro) so we have no choice but to try and get this to work. Nuking drush (both the drush vendor folder and the drush bin file) and reinstalling it with composer then rebuilding Lando still doesn't seem to fix it. The repo already contains a gitconfig file (I believe this was added to drupal core at some point last year) that takes care of the line ending conversion between unix and windows, but we don't want to necessarily mess with that to get these files to play nice with lando since the last thing I'd want is for a PC line ending file not getting properly converted in a commit. I'm still experimenting, if I make a breakthrough I will share my findings here. |
I have similar usecase @poindexterous , I currently solve this by adding
to |
My drupal project uses core-recommended, and is an existing drupal 8 project we're in the process of upgrading to d9. Not sure if it makes a difference but I wanted to mention it. Thank you @permanaj , I was fiddling around with the landofile and your suggestion helped. I was still having some errors with drush after that (with rsync & sql-sync) as well as ongoing problems with the composer symlinks. While running 'composer install' did help solve the problem for both, I was left with a ton of CRLF changes in the repo, and the build took a really long time! This all made me wonder if 'composer install' might be overkill since my issues only seemed to come from drush and composer. So I tried to create a landofile with more targeted build steps and I symlinked to where the container's composer install lived. Here's my temporary workaround:
I also have some additional build steps that I left out since they may be unique to my use case. They ignore local changes to drush and composer that are just reside from the build process and we don't necessarily want to commit them to the repo, while reverting unwanted changes to .htaccess in case the scaffolding tries to revert back to it's boilerplate version. |
Many thanks to the contributors to this thread. I'm having a very similar problem with Drush. I'm using Win10 + WSL2 + Ubuntu 18.04 and working on a Drupal 9 project. Thanks to your suggestions, I have a working Drush command now, and my recipe is: name: project tooling: I assume this cmd will need to be removed for the Mac OS collaborators on my project. |
Lando was working just fine with Drush.... until it wasn't. For some reason, just adding the |
Yes same here too after upgrading Lando and docker works:
does not work:
|
Update: I could make it work again by deleting everything which was installed by composer and do a
after that |
Basically any other task or issue should go here. Try to frame it as a user story if it makes sense.
I'm trying to make Lando work in Windows10
I was able to install lando, it actually works, but I have issues with Drush
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec format error": unknown
This is my .lando.yml
name: sitename recipe: pantheon config: webroot: web framework: drupal8 site: sitename id: ID tooling: local-load-db: service: appserver description: Load database cmd: /app/local/import.sh level: app
I'm not sure what the issue is, and I've been trying to find out what is happening, but I have no idea.
I also have issues at running our local scripts, but unless Drush works first, it's futile.
The text was updated successfully, but these errors were encountered: