Skip to content

Chrome-sandbox is owned by root and has mode 4755. #696

@AdrianDev374

Description

@AdrianDev374

What were you trying to do?

I'm trying to build the app on Linux simply with the LiveWire starter kit and when I install it I get the following error:

[7825:0917/085304.288301:FATAL:setuid_sandbox_host.cc(163)] 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/App/chrome-sandbox is owned by root and has mode 4755.

What happened?

The application is running.

How to reproduce the bug

I'm using the following:

Laravel 12
PHP 8.4.12
NativePHP 1.3
DB: sqlite

This is the LiveWire starter kit using the Laravel installer.
Simply install nativephp and run native:build to test on Linux.

Debug Output

Array
(
    [Environment] => Array
        (
            [PHP] => Array
                (
                    [Version] => 8.4.12
                    [Path] => /usr/bin/php8.4
                )

            [Laravel] => Array
                (
                    [Version] => 12.29.0
                    [ConfigCached] => 1
                    [RoutesCached] => 1
                    [DebugEnabled] => 1
                )

            [Node] => Array
                (
                    [Version] => v22.19.0
                    [Path] => /home/user/.nvm/versions/node/v22.19.0/bin/node
                )

            [NPM] => Array
                (
                    [Version] => 10.9.3
                    [Path] => /home/user/.nvm/versions/node/v22.19.0/bin/npm
                )

            [OperatingSystem] => Linux
        )

    [NativePHP] => Array
        (
            [Versions] => Illuminate\Support\Collection Object
                (
                    [items:protected] => Array
                        (
                            [nativephp/electron] => 1.3.0.0
                            [nativephp/laravel] => 1.3.1.0
                            [nativephp/php-bin] => 1.1.1.0
                        )

                    [escapeWhenCastingToString:protected] => 
                )

            [Configuration] => Array
                (
                    [Provider] => App\Providers\NativeAppServiceProvider
                    [BuildHooks] => Array
                        (
                            [Pre] => Array
                                (
                                    [0] => npm run build
                                    [1] => php artisan optimize
                                )

                            [Post] => Array
                                (
                                )

                        )

                    [NotarizationEnabled] => 
                    [AzureTrustedSigningEnabled] => 
                    [CustomPHPBinary] => 
                )

        )

)

Which operating systems have you seen this occur on?

Linux

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.3 LTS"
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions