Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] sandbox helper binary was found, but is not configured correctly. #948

Open
9acca9 opened this issue Dec 19, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@9acca9
Copy link

9acca9 commented Dec 19, 2024

Describe the bug / 描述问题

Hi. Im getting this error when trying to run:

Downloads$ ./ChatALL-1.83.108-linux-x86_64.AppImage 
[71827:1219/171732.031531: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_ChatALa5geXN/chrome-sandbox is owned by root and has mode 4755.
«trap» para punto de parada/seguimiento (`core' generado)
[71835:1219/171732.121300:ERROR:resource_bundle.cc(1031)] Failed to load /tmp/.mount_ChatALa5geXN/chrome_100_percent.pak
Some features may not be available.

To Reproduce / 复现步骤

just trying to run the appimage

Expected behavior / 期望行为

it not running

Screenshots / 截图

No response

Devtools Info / 开发者工具信息

i cant do this, dont run at all.

OS and version / 操作系统版本

ubuntu budgie 24.04.1

ChatALL version / ChatALL 版本

1.83.108

Network / 网络

no

Additional context / 其它相关信息

No response

@9acca9 9acca9 added the bug Something isn't working label Dec 19, 2024
@micedevai
Copy link

The error you're encountering, "The SUID sandbox helper binary was found, but is not configured correctly", typically occurs when trying to run an AppImage or Chromium-based application (like the one you are trying to use) and the sandboxing feature is not set up correctly.

Explanation:

This error is related to security measures used by Chrome/Chromium (and any application based on it, such as your AppImage). The "sandbox" is a feature that isolates certain parts of the application for security purposes. For this sandbox to work, a binary file (chrome-sandbox) needs to have specific file permissions (owned by root with mode 4755).

Here’s a step-by-step guide on how to fix this issue:

Steps to Fix:

1. Fix the File Permissions for chrome-sandbox

The issue arises because the chrome-sandbox file in your AppImage does not have the correct permissions. To fix it, you need to change the ownership and set the appropriate permissions.

  • First, extract the AppImage (it will allow you to modify the file):

    ./ChatALL-1.83.108-linux-x86_64.AppImage --appimage-extract

    This will extract the contents of the AppImage into a folder named squashfs-root.

  • Now, navigate to the extracted folder:

    cd squashfs-root
  • Check the current permissions of the chrome-sandbox file:

    ls -l chrome-sandbox

    You should see that it is not owned by root or does not have the correct permissions.

  • Change the owner of chrome-sandbox to root and set the correct permissions (setuid):

    sudo chown root:root chrome-sandbox
    sudo chmod 4755 chrome-sandbox

This will give the chrome-sandbox binary the correct ownership and permissions to allow the sandboxing feature to work properly.

2. Repack the AppImage (Optional)

If you want to use the AppImage without needing to extract it every time, you can repack it after making the permissions changes:

  • Go back to the extracted folder (squashfs-root), and repackage it into an AppImage:

    ./AppImageAssistant repack squashfs-root

This should create a new .AppImage with the correct configuration. If you don't have AppImageAssistant installed, you can either use the original AppImage or manually repackage it using the necessary tools.

3. Run the AppImage Again

Now, try running the AppImage again:

./ChatALL-1.83.108-linux-x86_64.AppImage

The error should no longer appear, and the application should run correctly.

4. Additional Fix (Using sudo)

If you still encounter issues, you can attempt running the AppImage with sudo (though this isn't recommended for security reasons unless absolutely necessary):

sudo ./ChatALL-1.83.108-linux-x86_64.AppImage

This will ensure that the chrome-sandbox has the necessary root permissions.

Summary of the Fix:

  1. Extract the AppImage:

    ./ChatALL-1.83.108-linux-x86_64.AppImage --appimage-extract
  2. Change the file ownership and permissions for chrome-sandbox:

    sudo chown root:root squashfs-root/chrome-sandbox
    sudo chmod 4755 squashfs-root/chrome-sandbox
  3. Optionally, repackage the AppImage:

    ./AppImageAssistant repack squashfs-root
  4. Try running the AppImage again:

    ./ChatALL-1.83.108-linux-x86_64.AppImage

Additional Notes:

  • The SUID (Set User ID) permission allows the chrome-sandbox binary to run with the privileges of the file owner (root in this case), which is necessary for the sandboxing to work correctly.
  • If you still face issues, consider checking if your system's AppArmor or SELinux security settings are interfering with the sandboxing.

Let me know if this resolves the issue or if you need further assistance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants