Skip to content

'Invalid PEM formatted message.' Error during lando setup #70

@edurenye

Description

@edurenye

On Ubuntu 24.10 with Docker Engine version 27.3.1.

When I run /bin/bash -c "$(curl -fsSL https://get.lando.dev/setup-lando.sh)"

And crashed, I do not remember the error message.

Then I run lando setup and seems to run fine without throwing any errors, but when I check with lando update I can see that it did not install most of the plugins in the output.

If I run again lando setup it does the same think finishes without error and the plugins like node are not installed.

Then I run lando setup --debug and I see this error:

lando automoved scripts from /home/username/.lando/plugins/@lando/platformsh/scripts to /home/username/.lando/scripts and set to mode 755  +2ms
lando error determining fingerprint of '/home/username/.lando/certs/LandoCA.crt': 'Invalid PEM formatted message.' 'Error: Invalid PEM formatted message.\n' +
  '    at Object.decode (/snapshot/core/node_modules/node-forge/lib/pem.js:192:11)\n' +
  '    at Object.certificateFromPem (/snapshot/core/node_modules/node-forge/lib/x509.js:803:23)\n' +
  '    at /snapshot/core/utils/get-fingerprint.js\n' +
  '    at Object.hasRun (/snapshot/core/hooks/lando-setup-install-ca-linux.js)\n' +
  '    at /snapshot/core/utils/parse-setup-task.js\n' +
  '    at async /snapshot/core/utils/parse-setup-task.js\n' +
  '    at async _Task.check (/snapshot/core/node_modules/listr2/dist/index.cjs:1914:22)\n' +
  '    at async Promise.all (index 3)\n' +
  '    at async _Listr.run (/snapshot/core/node_modules/listr2/dist/index.cjs:2200:5)\n' +
  '    at async /snapshot/core/utils/run-tasks.js\n' +
  '    at async Lando.runTasks (/snapshot/core/lib/lando.js)\n' +
  '    at async Lando.setup (/snapshot/core/lib/lando.js)\n' +
  '    at async Object.run (/snapshot/core/tasks/setup.js)'  +37899ms
  lando emitting event pre-engine-up  +9ms

Then it tells me this:

Generating setup task installation matrix... done [see table below]

 THING                                     STATUS          COMMENT             
 ───────────────────────────────────────── ─────────────── ─────────────────── 
 @lando/build-engine (docker-engine)       ✔ Installed     Dialed              
 @lando/build-engine-group (eduard@docker) ✔ Installed     Dialed              
 @lando/ca                                 ⚠ Not Installed Will create Lando … 
 @lando/install-ca                         ⚠ Not Installed Will install Lando… 
 @lando/orchestrator (docker-compose)      ⚠ Not Installed Will install docke… 
 @lando/landonet                           ⚠ Not Installed Will create Landon… 

Lando would like to run the 4 setup tasks listed above.
DO YOU CONSENT?: y

I say yes and this time works and installs everything fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions