Skip to content

Backup failed because The dump process failed with exitcode 127 #135

@schel4ok

Description

@schel4ok

I have "Backup failed because The dump process failed with exitcode 127 : Command not found." error in the log file

[2025-10-24 10:19:33] local.ERROR: Backpack\BackupManager -- backup process failed because : The dump process failed with a none successful exitcode.
Starting backup...
Dumping database mydb...
Backup failed because: The dump process failed with a none successful exitcode.
Exitcode

in .env I have DB_CONNECTION=mariadb
then in config/database.php

    'connections' => [
        'mariadb' => [
            'driver' => 'mariadb',
            'url' => env('DB_URL'),
            'host' => env('DB_HOST', '127.0.0.1'),
            'port' => env('DB_PORT', '3306'),
            'database' => env('DB_DATABASE', 'laravel'),
            'username' => env('DB_USERNAME', 'root'),
            'password' => env('DB_PASSWORD', ''),
            'unix_socket' => env('DB_SOCKET', ''),
            'charset' => env('DB_CHARSET', 'utf8mb4'),
            'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
            'prefix' => '',
            'prefix_indexes' => true,
            'strict' => true,
            'engine' => null,
            'dump' => [
                'dump_binary_path' => '/storage/app/private/', // only the path, without `mysqldump` or `pg_dump`
                // 'dump_binary_path' => '/Applications/MAMP/Library/bin/', // works for MAMP on Mac OS
                // 'dump_binary_path' => '/opt/homebrew/bin/', // works for Laravel Valet on Mac OS
                'use_single_transaction',
                'timeout' => 60 * 5, // 5 minute timeout
                // 'exclude_tables' => ['table1', 'table2'],
                // 'add_extra_option' => '--optionname=optionvalue',
            ],
            'options' => extension_loaded('pdo_mysql') ? array_filter([
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
            ]) : [],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions