lando / laravel

The Official Laravel Lando Plugin
https://docs.lando.dev/laravel/
GNU General Public License v3.0
18 stars 11 forks source link

ERROR ==> Could not find a service builder called laravel-memcached in the builder registry! #51

Closed nerdroid23 closed 9 months ago

nerdroid23 commented 9 months ago

After upgrading to the latest version of lando v3.21.0-beta.1, the lando app won't start and I keep getting the error in the title.

I did run lando setup

lando setup ``` lando setup is a convenience command to help you satisify the dependencies needed to run Lando. Typically it includes the installation and setup of some combination of the below However, if you already have the needed dependencies it will happily do nothing and exit. ◼ Common Lando Plugins ◼ Docker Desktop ◼ Docker Compose It will attempt to install plugins first and then it will run any needed setup tasks. For more information on customizing setup please run lando setup --help Generating plugin installation matrix... done [nothing to install] Generating setup task installation matrix... done [nothing to install] As far as lando setup can tell you are good to go and do not require additional setup! ```

I tried lando restart --debug

lando restart --debug ``` lando ERROR Error: Could not find a service builder called laravel-memcached in the builder registry! at Factory.get (/snapshot/cli/node_modules/@lando/core/lib/factory.js) at /snapshot/cli/node_modules/@lando/core/hooks/app-add-v3-services.js at arrayEach (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js) at Function.forEach (/snapshot/cli/node_modules/@lando/core/node_modules/lodash/lodash.js) at /snapshot/cli/node_modules/@lando/core/hooks/app-add-v3-services.js at AsyncEvents. (/snapshot/cli/node_modules/@lando/core/app.js) From previous event: at AsyncEvents.handle (/snapshot/cli/node_modules/@lando/core/lib/events.js) at /snapshot/cli/node_modules/@lando/core/lib/events.js at process.processImmediate (node:internal/timers:476:21) From previous event: at AsyncEvents.emit (/snapshot/cli/node_modules/@lando/core/lib/events.js) at /snapshot/cli/node_modules/@lando/core/lib/app.js at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.run (/snapshot/cli/node_modules/@lando/core/tasks/restart.js) ```

Is there any other that I can do to make it work or do I just have to downgrade for now...?

jareckik1 commented 9 months ago

Have the same problem

tormi commented 9 months ago

Have you tried lando update?

pirog commented 9 months ago

@reynoldsalec might have news on this

nerdroid23 commented 9 months ago

@tormi yes, I have and I get the same error as the other commands

lando update --debug ``` Error: Could not find a service builder called laravel-memcached in the builder registry! at Factory.get (/Users/joe/.lando/plugins/@lando/core/lib/factory.js:102:25) at /Users/joe/.lando/plugins/@lando/core/hooks/app-add-v3-services.js:20:35 at arrayEach (/Users/joe/.lando/plugins/@lando/core/node_modules/lodash/lodash.js:530:11) at Function.forEach (/Users/joe/.lando/plugins/@lando/core/node_modules/lodash/lodash.js:9410:14) at module.exports (/Users/joe/.lando/plugins/@lando/core/hooks/app-add-v3-services.js:12:5) at AsyncEvents. (/Users/joe/.lando/plugins/@lando/core/app.js:55:85) at AsyncEvents.handle (/Users/joe/.lando/plugins/@lando/core/lib/events.js:84:25) From previous event: at AsyncEvents.handle (/Users/joe/.lando/plugins/@lando/core/lib/events.js:85:22) at /Users/joe/.lando/plugins/@lando/core/lib/events.js:117:21 at process.processImmediate (node:internal/timers:476:21) From previous event: at AsyncEvents.emit (/Users/joe/.lando/plugins/@lando/core/lib/events.js:111:20) at /Users/joe/.lando/plugins/@lando/core/lib/app.js:295:66 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ```

I also tried downgrading lando and that did not work. The only way I could fix the issue was by changing the caching mechanism of the recipe. This is not ideal since I need some features of memcached.

recipe: laravel
config:
  php: '8.1'
  composer_version: 2-latest
  via: nginx:1.18
  database: mysql:8.0
- cache: memcached
+ cache: redis
  xdebug: false
  webroot: public
reynoldsalec commented 9 months ago

@nerdroid23 new Laravel release should fix this issue: https://github.com/lando/laravel/releases/tag/v1.2.0

Run lando update and you should be set!

nerdroid23 commented 9 months ago

@reynoldsalec Thank you!!

I'm having another issue however... running lando update. I haven't run in this issue before

lando update --debug ```Lando would like to update 1 package(s) listed above. DO YOU CONSENT?: yes lando [STARTED] Updating @lando/cli to v3.21.0-beta.2 +4199ms lando [FAILED] Lando cannot write to /usr/local/bin! +0ms lando {} +1ms lando ERROR Error: An update error occured! Rerun with lando update --debug for more info. at Object.run (/Users/joe/.lando/plugins/@lando/core/tasks/update.js:163:23) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) From previous event: at process.processImmediate (node:internal/timers:476:21) 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) at /snapshot/cli/bin/lando.js +3ms lando reporting error action to report=true, url=https://metrics.lando.dev, report=true, url=https://metrics.lando.dev +13ms lando reported data command=lando update, context=local, devMode=false, instance=11f79071035e658bcf612773a73f264698ff1595, nodeVersion=v18.18.2, mode=cli, type=Darwin, platform=darwin, release=23.3.0, arch=arm64, product=lando, version=3.21.0-beta.3, message=An update error occured! Rerun with lando update --debug for more info., stack=Error: An update error occured! Rerun with lando update --debug for more info. at Object.run (update.js:163:23) at process.processTicksAndRejections (task_queues:95:5) From previous event: at process.processImmediate (timers:476:21) From previous event: at Object.handler (cli.js) at Object.runCommand (command.js:238:44) at Object.parseArgs [as _parseArgs] (yargs.js:1063:30) at Function.get [as argv] (yargs.js:1004:21) at Cli.init (cli.js) at Cli.run (cli.js) at /snapshot/cli/bin/lando.js, action=error, created=2024-02-21T20:16:02.332Z ```
reynoldsalec commented 9 months ago

@nerdroid23 you've probably seen some of the messages regarding this, but you'll probably want to download the newest version of Lando and try re-running. There were some issues in the lando update functionality that we're rolling out fixes for.

nerdroid23 commented 9 months ago

@reynoldsalec thanks for the heads-up! 🙌🏾