webrecorder / webrecorder-desktop

Webrecorder Desktop App!
201 stars 24 forks source link

[Linux] Unable to launch on Debian; Electron sandbox issues? #54

Open kbhasi opened 3 years ago

kbhasi commented 3 years ago

I've encountered issues with launching it on Debian. Yes, I did install the redis-server. package.

From what I can tell, there's some kind of issue with the Google Chrome sandbox as used by Electron. I can get it to launch when i disable the sandbox with the --no-sandbox argument, however, as I see that as a security feature, I don't want to use it without that.

(EDIT: Nothing appears when I launch it from the file manager; it only outputs the following errors to the command line)

Attempts to launch on Debian 10 x86_64 (stable branch):

kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ ./webrecorder-2.0.2.AppImage
[15998:0914/080744.740890:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrecTCkBjG/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ ./webrecorder-2.0.2.AppImage
[17438:0914/083447.446031:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrecKuaVix/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ /tmp/.mount_webrecKuaVix/webrecorder: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory

kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ ./webrecorder-2.0.2.AppImage
[17449:0914/083455.029303:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrechKi6Rj/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ uname -a
Linux HomeServer 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ 

I have another system running Debian 11 beta on the same architecture (testing branch):

kevin@wander:~/Documents$ ./webrecorder-2.0.2.AppImage.elf 
[33047:0914/084811.647580:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrec57muY2/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@wander:~/Documents$ ./webrecorder-2.0.2.AppImage.elf 
[33059:0914/084814.884237:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrecJS1JlZ/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@wander:~/Documents$ ./webrecorder-2.0.2.AppImage.elf 
[33067:0914/084816.897788:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrecy5jWXA/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@wander:~/Documents$ /tmp/.mount_webrecy5jWXA/webrecorder: error while loading shared libraries: libffmpeg.so: cannot open shared object file: No such file or directory

kevin@wander:~/Documents$ ./webrecorder-2.0.2.AppImage.elf 
[33077:0914/084825.195227:FATAL:setuid_sandbox_host.cc(158)] 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 /tmp/.mount_webrecZgALcl/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@wander:~/Documents$ uname -a
Linux wander 5.7.0-3-amd64 #1 SMP Debian 5.7.17-1 (2020-08-23) x86_64 GNU/Linux
kevin@wander:~/Documents$ 

I have the old file for 2.0.1 downloaded on the first system shown here, and when I try to run that, the same issue is evident:

kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ ./webrecorder-2.0.1.AppImage.elf 
[18532:0914/085326.051324: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 /tmp/.mount_webrecmKbMxM/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap
kevin@HomeServer:/mnt/workspaces/kevin/Webrecorder$ 
kbhasi commented 3 years ago

Update: It still does not work on 2.0.3, and at this point, I have to wonder if it's a bug with Electron itself. Upon further research, I found these issue reports, which lead me to believe it's an issue with the version of Electron that Webrecorder uses: