lando / lando

A development tool for all your projects that is fast, easy, powerful and liberating
https://lando.dev
GNU General Public License v3.0
4.02k stars 542 forks source link

ERROR ==> EACCES: permission denied, scandir '/home/$User/.ssh' #3492

Open bahazaab opened 1 year ago

bahazaab commented 1 year ago

`$ lando start Let's get this party started! Starting app hello-lando... ERROR ==> EACCES: permission denied, scandir '/home/baker/.ssh' message=EACCES: permission denied, scandir '/home/baker/.ssh', stack=Error: EACCES: permission denied, scandir '/home/baker/.ssh' at Object.readdirSync (fs.js:1047:3) at Object.readdirSync (pkg/prelude/bootstrap.js:1266:35) at AsyncEvents. (/snapshot/cli/plugins/lando-core/app.js) at AsyncEvents.handle (/snapshot/cli/lib/events.js) at /snapshot/cli/lib/events.js From previous event: at AsyncEvents.emit (/snapshot/cli/lib/events.js) at /snapshot/cli/lib/app.js From previous event: at App.init (/snapshot/cli/lib/app.js) at initAndReport (/snapshot/cli/lib/app.js) at App.start (/snapshot/cli/lib/app.js) at Object.run (/snapshot/cli/plugins/lando-core/tasks/start.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) at Object. (/snapshot/cli/bin/lando.js) at Module._compile (pkg/prelude/bootstrap.js:1887:22) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Function.runMain (pkg/prelude/bootstrap.js:1940:12) at internal/main/run_main_module.js:17:47, errno=-13, syscall=scandir, code=EACCES, path=/home/baker/.ssh, stackCleaned=true

██╗ ██╗██╗ ██╗ ██████╗ ██╗ ██╗██╗ ██║ ██║██║ ██║ ██╔═══██╗██║ ██║██║
██║ ██║███████║ ██║ ██║███████║██║
██║ ██║██╔══██║ ██║ ██║██╔══██║╚═╝
╚██████╔╝██║ ██║ ╚██████╔╝██║ ██║██╗
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝

An error occurred while starting up your app! Here are a few things you can try to get back into a good state:

■ Try running lando rebuild ■ Try restarting in debug mode lando restart -vvv ■ Try checking the logs with lando logs

If those fail then consult the troubleshooting materials:

https://docs.lando.dev/help/logs.htmlhttps://docs.lando.dev/help/updating.html

Or post your issue to Slack or GitHub

■ Slack - https://launchpass.com/devwithlando ■ GitHub - https://github.com/lando/lando/issues/new/choose

ERROR ==> EACCES: permission denied, scandir '/home/baker/.ssh' baker@BH-hplaptop15bs1xx:~/hello$ sudo chmod 700 /home/$USER/.ssh baker@BH-hplaptop15bs1xx:~/hello$ service ssh restart baker@BH-hplaptop15bs1xx:~/hello$ lando start Let's get this party started! Starting app hello-lando... ERROR ==> EACCES: permission denied, scandir '/home/baker/.ssh' message=EACCES: permission denied, scandir '/home/baker/.ssh', stack=Error: EACCES: permission denied, scandir '/home/baker/.ssh' at Object.readdirSync (fs.js:1047:3) at Object.readdirSync (pkg/prelude/bootstrap.js:1266:35) at AsyncEvents. (/snapshot/cli/plugins/lando-core/app.js) at AsyncEvents.handle (/snapshot/cli/lib/events.js) at /snapshot/cli/lib/events.js From previous event: at AsyncEvents.emit (/snapshot/cli/lib/events.js) at /snapshot/cli/lib/app.js From previous event: at App.init (/snapshot/cli/lib/app.js) at initAndReport (/snapshot/cli/lib/app.js) at App.start (/snapshot/cli/lib/app.js) at Object.run (/snapshot/cli/plugins/lando-core/tasks/start.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) at Object. (/snapshot/cli/bin/lando.js) at Module._compile (pkg/prelude/bootstrap.js:1887:22) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Function.runMain (pkg/prelude/bootstrap.js:1940:12) at internal/main/run_main_module.js:17:47, errno=-13, syscall=scandir, code=EACCES, path=/home/baker/.ssh, stackCleaned=true

██╗ ██╗██╗ ██╗ ██████╗ ██╗ ██╗██╗ ██║ ██║██║ ██║ ██╔═══██╗██║ ██║██║
██║ ██║███████║ ██║ ██║███████║██║
██║ ██║██╔══██║ ██║ ██║██╔══██║╚═╝
╚██████╔╝██║ ██║ ╚██████╔╝██║ ██║██╗
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝

An error occurred while starting up your app! Here are a few things you can try to get back into a good state:

■ Try running lando rebuild ■ Try restarting in debug mode lando restart -vvv ■ Try checking the logs with lando logs

If those fail then consult the troubleshooting materials:

https://docs.lando.dev/help/logs.htmlhttps://docs.lando.dev/help/updating.html

Or post your issue to Slack or GitHub

■ Slack - https://launchpass.com/devwithlando ■ GitHub - https://github.com/lando/lando/issues/new/choose

ERROR ==> EACCES: permission denied, scandir '/home/baker/.ssh' `

cawa-93 commented 5 months ago

I just install v3.20.8 ang got same issue

allan-anderson-here commented 5 months ago

I am having the same issue on ubuntu 23.04

Docker version 24.0.7, build afdd53b

I have tried version 3.20.8, and 3.19.5

Edit:

Solved: For me it was really an issue with the ~/.ssh permissions. I had been trying to use lando with Docker Desktop, and the user and group of the ~/.ssh directory and it's files got changed somehow. After setting the user and group on ~/.ssh and it's contents back to the proper values this error was resolved.