dbgate icon indicating copy to clipboard operation
dbgate copied to clipboard

BUG: Double-click the icon dbgate 6.4.2 on ubuntu25.04, and there is no startup interface

Open hermitguo opened this issue 1 year ago • 2 comments

Describe the bug Double-click the icon dbgate 6.4.2 on ubuntu25.04, and there is no startup interface.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'sudo dpkg -i dbgate-6.4.2-linux_amd64.deb'
  2. Click on ''
  3. See error

Expected behavior On ubuntu25.04, double-click the icon dbgate6.4.2 to see the startup interface. Or for a new version, double-click the icon to open the startup interface.

Screenshots

Image

2025-05-31T17:35:00.157307+08:00 web kernel: audit: type=1400 audit(1748684100.156:370): apparmor="AUDIT" operation="userns_create" class="namespace" info="Userns create - transitioning profile" profile="unconfined" pid=332217 comm="dbgate" requested="userns_create" target="unprivileged_userns" 2025-05-31T17:35:00.158313+08:00 web kernel: audit: type=1400 audit(1748684100.157:371): apparmor="DENIED" operation="capable" class="cap" profile="unprivileged_userns" pid=332222 comm="dbgate" capability=21 capname="sys_admin" 2025-05-31T17:35:00.169138+08:00 web dbgate.desktop[332217]: [332217:0531/173500.167883: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 /opt/DbGate/chrome-sandbox is owned by root and has mode 4755. 2025-05-31T17:35:00.169287+08:00 web kernel: traps: dbgate[332217] trap int3 ip:5bfe04d18e9a sp:7ffdc00c7550 error:0 in dbgate[5cdee9a,5bfe01081000+837d000] 2025-05-31T17:35:01.062613+08:00 web CRON[332246]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) 2025-05-31T17:35:19.540730+08:00 web systemd[1]: Started session-82.scope - Session 82 of User ubuntu..

Version Information (please complete the following information):

  • OS: [Ubuntu 25.04.01]
  • App Version [6.4.2]
  • Install source [dbgate-6.4.2-linux_amd64.deb]
  • Type - Application
  • Database engine: [MySQL/PostgreSQL]

hermitguo avatar May 31 '25 09:05 hermitguo

I have met same issue. Apparently it is problem from Ubuntu 24.04 and newer version of Ubuntu. It is issue with AppArmor not allowing DbGate (Electron) to create sandbox. You have to use --no-sandbox when running DbGate or make an exception for AppArmor. I think the developer must update DbGate to work with Apparmor in new Ubuntus.

varecha-hmi avatar Dec 07 '25 16:12 varecha-hmi

I have met same issue. Apparently it is problem from Ubuntu 24.04 and newer version of Ubuntu. It is issue with AppArmor not allowing DbGate (Electron) to create sandbox. You have to use --no-sandbox when running DbGate or make an exception for AppArmor. I think the developer must update DbGate to work with Apparmor in new Ubuntus.

Thank you very much. I have a better method to share with you all. Run the following command in the dbgate installation directory to start.

sudo chown root:root /opt/DbGate/chrome-sandbox sudo chmod 4755 /opt/DbGate/chrome-sandbox

hermitguo avatar Dec 11 '25 01:12 hermitguo