lando / pantheon

The Official Lando Pantheon plugin.
https://docs.lando.dev/pantheon
GNU General Public License v3.0
12 stars 18 forks source link

Cannot install PHP8.2 with Pantheon Recipe #232

Closed CarlosBlackSmith closed 7 months ago

CarlosBlackSmith commented 1 year ago

Trying to upgrade my site to 8.2 in Pantheon, changed php_version: 8.2 in pantheon.yml tried rebuilding and lando destroy, lando init and lando start and got errors Pulling appserver (devwithlando/pantheon-appserver:8.2-4)... Traceback (most recent call last): File "docker/credentials/store.py", line 80, in _execute File "subprocess.py", line 411, in check_output File "subprocess.py", line 488, in run File "subprocess.py", line 800, in init File "subprocess.py", line 1551, in _execute_child OSError: [Errno 8] Exec format error: '/mnt/c/Program Files/Docker/Docker/resources/bin/docker-credential-desktop.exe'

During handling of the above exception, another exception occurred:

going back to a different php version works ok

Windows 11/Wsl2 all updated by Aug/2023

reynoldsalec commented 1 year ago

Hmm, should double check a WSL2 install just to see, might be worth checking out just to make sure there's not some weird issue with the lando/pantheon-appserver:8.2 image.

reynoldsalec commented 7 months ago

Steps to attempt replication:

  1. Spin up (or lando init an existing Pantheon project) on a WSL2 instance. It's possible the user is running Docker Desktop OR WSL2 with Docker CE custom installed...we don't need to specifically test either scenario.
  2. Make sure PHP 8.2 is selected in the pantheon.yml
  3. Run lando start (or lando rebuild if the project was already running)

If unable to reproduce, I'd recommend closing this out unless OP has more details/solution.

oskarmodig commented 7 months ago

FWIW, I tried setting up a new Patheon project with Lando, and it seemingly runs without issues. Confirmed php was running version 8.2.

@CarlosBlackSmith, is this still an issue for you?

reynoldsalec commented 7 months ago

If we haven't been able to replicate, going to close this out but @CarlosBlackSmith definitely ping us here (or on Slack) if you're having further issues!