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

Error on Rebuild: Cannot read properties of null in normalize-healthcheck.js #3638

Open
btruong opened this issue Dec 7, 2023 · 8 comments
Labels
bug Something aint working right!

Comments

@btruong
Copy link

btruong commented Dec 7, 2023

I encountered an issue with my local lando after updating my Mac OS to Sonoma 14.1.2 and updating Lando to the lastest version v3.20.6. I also updated docker to version 4.25.2. I see the following error when running lando rebuild and was wondering to anyone had any insight. The error is edge_ssl The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

I am tempted to delete the following volume in the Docker UI "discoverla_home_edge_ssl" to see if it helps fix the issue and perhaps the volume will be rebuilt in the correct format but I want to know whether this approach is advisable and get your thoughts.

Perhaps my docker version 4.25.2 is not the one I should be using with Lando v3.20.6? If that is the case, what docker version and settings would you recommend I use? Thank everyone.

@btruong btruong added the bug Something aint working right! label Dec 7, 2023
@pirog
Copy link
Sponsor Member

pirog commented Dec 7, 2023

@btruong as long as Docker is able to emulate via Rosetta (it does by default i think) its probably safe to ignore the warning. as an FYI we are in the process of rolling out arm64 images for all the services we can

@btruong
Copy link
Author

btruong commented Dec 8, 2023

Thanks @pirog for following up. Ah so that was a warning and not the cause of my issue of the lando rebuild command not working. This issue started with my recent update of my Mac OS to 14.1.2 and so I downloaded the most recent version of Lando version v3.20.6 and Docker version 4.26.0 and still have the issue where my Lando stopped working. I ran lando destroy and deleted the containers and images in my Docker for a clean start and ran the command in verbose lando rebuild -v to see the errors in detail and here is the output:

lando      16:37:32 ERROR ==> TypeError: Cannot read properties of null (reading 'command')
    at /snapshot/cli/node_modules/@lando/core/plugins/lando-healthcheck/utils/normalize-healthcheck.js
    at /snapshot/cli/node_modules/@lando/core/plugins/lando-healthcheck/app.js
    at arrayMap (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at Function.map (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at interceptor (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at thru (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at /snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js
    at arrayReduce (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at baseWrapperValue (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at LazyWrapper.lazyValue [as value] (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at baseWrapperValue (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at LodashWrapper.wrapperValue (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js)
    at AsyncEvents.<anonymous> (/snapshot/cli/node_modules/@lando/core/plugins/lando-healthcheck/app.js)
    at AsyncEvents.handle (/snapshot/cli/node_modules/@lando/core/lib/events.js)
    at /snapshot/cli/node_modules/@lando/core/lib/events.js
    at processImmediate (node:internal/timers:466:21)
From previous event:
    at AsyncEvents.emit (/snapshot/cli/node_modules/@lando/core/lib/events.js)
From previous event:
    at App.start (/snapshot/cli/node_modules/@lando/core/lib/app.js)
    at /snapshot/cli/node_modules/@lando/core/lib/app.js
From previous event:
    at App.rebuild (/snapshot/cli/node_modules/@lando/core/lib/app.js)
    at Object.run (/snapshot/cli/node_modules/@lando/core/plugins/lando-core/tasks/rebuild.js)
From previous event:
    at /snapshot/cli/lib/cli.js
From previous event:
    at Object.handler (/snapshot/cli/lib/cli.js)
    at Object.runCommand (/snapshot/cli/node_modules/yargs/lib/command.js:238:44)
    at Object.parseArgs [as _parseArgs] (/snapshot/cli/node_modules/yargs/yargs.js:1063:30)
    at Function.get [as argv] (/snapshot/cli/node_modules/yargs/yargs.js:1004:21)
    at Cli.init (/snapshot/cli/lib/cli.js)
    at Cli.run (/snapshot/cli/lib/cli.js)
From previous event:
    at /snapshot/cli/bin/lando.js
    at processImmediate (node:internal/timers:466:21)
From previous event:
    at Object.<anonymous> (/snapshot/cli/bin/lando.js)
    at Module._compile (pkg/prelude/bootstrap.js:1926:22)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.runMain (pkg/prelude/bootstrap.js:1979:12)
    at node:internal/main/run_main_module:17:47 

It would be great to see if anyone had the same issue and was able to find a solve.

@jellobrain
Copy link

I also had this issue and am not sure how to resolve it...

@codafogo
Copy link

I'm having the same problem. Any resolution?

@JeremyEnglert
Copy link

Also having this issue.

@reynoldsalec
Copy link
Sponsor Member

@JeremyEnglert + @codafogo + @jellobrain are you experiencing the issue described in #3638 (comment) (IE, an error with Cannot read properties of null (reading 'command')) or are you seeing warning messages about the requested image's platform not matching the detected host platform?

@reynoldsalec reynoldsalec changed the title edge_ssl The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested Error on Rebuild: Cannot read properties of null in normalize-healthcheck.js Jan 22, 2024
@codafogo
Copy link

My issue matches the original title and issue posted here: edge_ssl The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested. I've tried updating both lando & docker. That didn't work. I tried rolling back both lando & docker. That didn't work. I've completely deleted docker & reinstalled several times. I've deleted the docker images, volumes & containers many, many times and restarted everything. Any other suggestions?

@reynoldsalec
Copy link
Sponsor Member

@codafogo that message is only a warning; it shouldn't impact functionality at all. Are you experiencing any specific functional issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
None yet
Development

No branches or pull requests

6 participants