Lando Won't Start

Unhandled rejection Error: There was a problem with parsing /home/gitpod/.lando/cache/Drupal-9-Pattern-Lab.tooling.cache. Ensure it is valid JSON! Error: ENOENT: no such file or directory, open '/home/gitpod/.lando/cache/Drupal-9-Pattern-Lab.tooling.cache'
    at loadCacheFile (/snapshot/lando/build/cli/lib/bootstrap.js)
    at Object.getTasks (/snapshot/lando/build/cli/lib/bootstrap.js)
From previous event:
    at /snapshot/lando/build/cli/bin/lando.js
From previous event:
    at Object.<anonymous> (/snapshot/lando/build/cli/bin/lando.js)
    at Module._compile (pkg/prelude/bootstrap.js:1433:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
    at Module.load (internal/modules/cjs/loader.js:984:32)
    at Function.Module._load (internal/modules/cjs/loader.js:877:14)
    at Function.runMain (pkg/prelude/bootstrap.js:1488:12)
    at internal/main/run_main_module.js:17:47

There is a file at the location, but for some reason Lando can’t see it.

:wave:Howdy @lquessenberry. I assume this is related to bootstrapping Drupal via Lando aka Drupal 8 | Lando? Can you please reply back with a repository that reproduces your setup :bowing_woman:?

edit:

I initilaised GitHub - ghuntley/template-php-drupal-lando via the instructions at Drupal 8 | Lando and was able to lando init.

However lando start failed with the following related to TCP port conflicts.

gitpod /workspace/template-php-drupal-lando $ lando start
Let's get this party started! Starting app my-first-drupal8-app...
Starting landoproxyhyperion5000gandalfedition_proxy_1 ... 
Starting landoproxyhyperion5000gandalfedition_proxy_1 ... error

ERROR: for landoproxyhyperion5000gandalfedition_proxy_1  Cannot start service proxy: driver failed programming external connectivity on endpoint landoproxyhyperion5000gandalfedition_proxy_1 (942f4015d1a4d66870f58055c9f646e466209bb637f03ec64f31d42a296fd02a): Error starting userland proxy: Workspace (host) port needs to be > 1024, e.g. 42239:443 instead of 443:443

ERROR: for proxy  Cannot start service proxy: driver failed programming external connectivity on endpoint landoproxyhyperion5000gandalfedition_proxy_1 (942f4015d1a4d66870f58055c9f646e466209bb637f03ec64f31d42a296fd02a): Error starting userland proxy: Workspace (host) port needs to be > 1024, e.g. 42239:443 instead of 443:443
ERROR: Encountered errors while bringing up the project.
ERROR ==>  message=, stack=Error
    at /snapshot/lando/build/cli/lib/shell.js
From previous event:
    at Shell.sh (/snapshot/lando/build/cli/lib/shell.js)
    at Object.dc (/snapshot/lando/build/cli/lib/bootstrap.js)
    at compose (/snapshot/lando/build/cli/lib/bootstrap.js)
    at /snapshot/lando/build/cli/lib/router.js
    at /snapshot/lando/build/cli/lib/router.js
    at processImmediate (internal/timers.js:456:21)
From previous event:
    at retryEach (/snapshot/lando/build/cli/lib/router.js)
    at Object.start (/snapshot/lando/build/cli/lib/router.js)
    at /snapshot/lando/build/cli/lib/engine.js
    at /snapshot/lando/build/cli/lib/router.js
From previous event:
    at Object.eventWrapper (/snapshot/lando/build/cli/lib/router.js)
    at Engine.engineCmd (/snapshot/lando/build/cli/lib/engine.js)
    at Engine.start (/snapshot/lando/build/cli/lib/engine.js)
    at /snapshot/lando/build/cli/plugins/lando-proxy/app.js
From previous event:
    at AsyncEvents.<anonymous> (/snapshot/lando/build/cli/plugins/lando-proxy/app.js)
    at AsyncEvents.handle (/snapshot/lando/build/cli/lib/events.js)
    at /snapshot/lando/build/cli/lib/events.js
    at processImmediate (internal/timers.js:456:21)
From previous event:
    at AsyncEvents.emit (/snapshot/lando/build/cli/lib/events.js)
    at /snapshot/lando/build/cli/lib/app.js
From previous event:
    at App.start (/snapshot/lando/build/cli/lib/app.js)
    at Object.run (/snapshot/lando/build/cli/plugins/lando-core/tasks/start.js)
From previous event:
    at /snapshot/lando/build/cli/lib/cli.js
From previous event:
    at Object.handler (/snapshot/lando/build/cli/lib/cli.js)
    at Object.runCommand (/snapshot/lando/build/cli/node_modules/yargs/lib/command.js:238:44)
    at Object.parseArgs [as _parseArgs] (/snapshot/lando/build/cli/node_modules/yargs/yargs.js:1063:30)
    at Function.get [as argv] (/snapshot/lando/build/cli/node_modules/yargs/yargs.js:1004:21)
    at Cli.init (/snapshot/lando/build/cli/lib/cli.js)
    at Cli.run (/snapshot/lando/build/cli/lib/cli.js)
    at Object.<anonymous> (/snapshot/lando/build/cli/bin/lando.js)
    at Module._compile (pkg/prelude/bootstrap.js:1433:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1156:10)
    at Module.load (internal/modules/cjs/loader.js:984:32)
    at Function.Module._load (internal/modules/cjs/loader.js:877:14)
    at Function.runMain (pkg/prelude/bootstrap.js:1488:12)
    at internal/main/run_main_module.js:17:47, __stackCleaned__=true
Scanning to determine which services are ready... Please standby...

Here’s my repo. It’s Drupal 9 but shouldn’t differ too much.

My concerns are as follows:

  • Should I install Lando as you would normally for Ubuntu, but via the gitpod terminal?
  • When I install Lando using Ubuntu steps it creates /home/gitpod/.lando/cache
  • Am I installing Lando on gitpod properly?

Hi @lquessenberry

I used DDEV, instead of Lando to get easy setup of Drupal in Gitpod.
You can check out my project - GitHub - shaal/DrupalPod: Start Drupal contributions with 1 click.

1 Like

Okay so I learned the trick to this! I found out that the lando name in your .lando.yml file must be all lowercase and so I changed it simply to ‘d9pl’ and also updated it in the .gitpod.Dockerfile in my repo for special instructions to install Drupal. Case Closed!

https://github.com/lando/lando/issues/1767