Ubuntu - Error: spawnSync /usr/sbin/getcap ENOENT

What issue or error are you experiencing?

Today I started the Local, and when I’d liked to start a project I’ve got the error of the screenshot:

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I have no idea why I’ve got this error although two days ago the local started and I worked on my project.

System Details

  • Local Version: 7.2.0+6425

  • Operating System (OS) and OS version: Ubuntu 20.04.4 LTS

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

local-lightning.log (16.0 KB)

My Solution

After doing some research I found that the command getcap instead of located in the path /usr/sbin/getcap was under the path /sbin/getcap.

My self I didn’t made any update/upgrade on my local system today, thus I have no idea why this file was in different location.

The solution to my problem was to create a symbolic link and that fixed my problem:

sudo ln -s /sbin/getcap /usr/sbin/getcap

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

1 Like

Thank you for sharing your solution @merianos!

1 Like