After upgrading Discord to 0.0.10, Discord fails to start with: [72376:0229/142504.857021:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/discord/chrome-sandbox is owned by root and has mode 4755. Trace/breakpoint trap (core dumped) Reproducible: Always Steps to Reproduce: 1. Install/upgrade net-im/discord-bin to 0.0.10 2. Attempt to start Discord Actual Results: [72376:0229/142504.857021:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /opt/discord/chrome-sandbox is owned by root and has mode 4755. Trace/breakpoint trap (core dumped) Expected Results: Discord should work normally after installation/upgrade and not require an extra step. As the error suggests, running "chmod 4755 /opt/discord/chrome-sandbox" as root fixes the issue.
Works fine here without this SUID bit. Do you have CAP_SYS_USER_NS on in your kernel ? From ⁽¹⁾ : > CONFIG_USER_NS=y enables the user namespaces feature, but they're still > restricted to privileged users by default. This suggests sysctl > kernel.unprivileged_userns_clone=1 1. https://github.com/electron/electron/issues/17972#issuecomment-486927073
Had this error. Enabled CONFIG_USER_NS, rebooted. Discord runs now.
I will try this solution as soon as I have some spare time to recompile my kernel. If this is the solution though, there should be a check and warning about this. It's also new to this version, all previous versions worked fine.
For what it's worth, Chrome browser says it needs this kernel option enabled, but it runs just fine without it, discord just straight up says "no".
Encountered this problem in the 0.0.11 ebuild as well, fixed by enabling the kernel config option as suggested above. Might I suggest adding the variable: CONFIG_CHECK="CONFIG_USER_NS" from the linux-info eclass to the ebuild. That should alert users if the config option is missing from the kernel configuration file.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47f6a0a6e1e53b0a9dae028cb65a90ae78168e85 commit 47f6a0a6e1e53b0a9dae028cb65a90ae78168e85 Author: Sam James <sam@gentoo.org> AuthorDate: 2020-09-12 01:05:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-09-12 01:05:36 +0000 net-im/discord-bin: add CONFIG_USER_NS check Closes: https://bugs.gentoo.org/711094 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org> net-im/discord-bin/discord-bin-0.0.12.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)