Unable to start a site on Debian 10 (Buster) running Local v5.0.5+900

I am trying to run a new site and am receiving this error message (see the image below).

local_by_flywheel_beta_error

Do I need to install any additional packages? Is it a missing configuration file? Is Debian 10 (Buster) not supported yet?

Thank you for your help!

Hi, I have exactly the same problem on the same OS,
I’m still looking but for the moment I can’t find any solution. :grimacing:

getcap and setcap are used to allow the Nginx version that’s bundled with Local to bind on ports 80 and 443.

You can either:

A. Install libcap2-bin using Apt (https://unix.stackexchange.com/a/455234 for more details)

B. Upgrade to Local 5.1 or newer and change the Router mode to localhost under Preferences » Advanced. This will disable the routing layer thus negating the need to bind on ports 80 and 443.

Note: at the time of writing Local 5.1 is still in beta so you will need to join the Local Beta program to get access.


In the meantime, I’ve added a note to look into adding libcap2-bin as a dependency in the .deb's we provide.

The package “libcap2-bin” was already installed on my end.
I tried installing both Local Beta 5.1.1 and 5.2.0, but both versions return the following error message: “Trace/breakpoint trap”.
Is there an argument that I can add to the “local-beta” command to get a more detailed error message?

Got it!

Are you able to open other Electron-based applications such as VS Code?

I’m seeing reports of certain security utilities such as Firejail keeping Electron-based applications from opening.

Other Electron-based applications seem to work; I have Visual Studio Code and Slack running as we speak.

:+1:

strace ./local-beta might uncover some worthwhile details.


Is your Debian installation 32-bit or 64-bit?

My Debian installation is 64-bit.
Here’s the part of the trace logs which I believe may help you:

readlink("/proc/self/exe", “/opt/Local Beta/local-beta”, 4096) = 26
access("/opt/Local Beta/chrome-sandbox", F_OK) = 0
getresuid([1000], [1000], [1000]) = 0
getresgid([1000], [1000], [1000]) = 0
clone(child_stack=0x7ffe7730b780, flags=CLONE_NEWUSER|SIGCHLD) = -1 EPERM (Operation not permitted)
lstat("/opt", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
lstat("/opt/Local Beta", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
lstat("/opt/Local Beta/local-beta", {st_mode=S_IFREG|0755, st_size=115346640, …}) = 0
socketpair(AF_UNIX, SOCK_SEQPACKET, 0, [10, 11]) = 0
setsockopt(10, SOL_SOCKET, SO_PASSCRED, [1], 4) = 0
access("/opt/Local Beta/chrome-sandbox", F_OK) = 0
stat("/opt/Local Beta/chrome-sandbox", {st_mode=S_IFREG|S_ISUID|0755, st_size=5581136, …}) = 0
access("/opt/Local Beta/chrome-sandbox", X_OK) = 0
pipe([12, 13]) = 0
close(13) = 0
rt_sigprocmask(SIG_SETMASK, ~[RTMIN RT_1], [], 8) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f2ae2ef8810) = 7094
rt_sigprocmask(SIG_SETMASK, [], ~[KILL STOP RTMIN RT_1], 8) = 0
close(12) = 0
close(11) = 0
recvmsg(10, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="", iov_len=13}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 0
— SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL} —
+++ killed by SIGTRAP +++
Trace/breakpoint trap

Thanks!

@42Glider ran into a similar issue regarding chrome-sandbox and posted what helped out here: Local doesn't open on Debian

I added the “kernel.unprivileged_userns_clone=1” line to /etc/sysctl.conf, rebooted and now, not only does Local open, but I’m able to run local sites!
Thank you so much for your help!

Glad to hear it! Thanks for working with me.

Also, shoutout to @42Glider for posting the two potential solutions :slight_smile: