Skip to content

Backups via settings fail because mariadbdump attempts to use ssl by default (Not desired). #15364

@ipaqmaster

Description

@ipaqmaster

Debug mode

Describe the bug

Taking a backup fails because mariadb-dump attempts to use SSL by default in latent releases which is not the case on this machine's local socket connections.

Reproduction steps

  1. Try to take a backup in the Settings area
  2. A large error consuming the entire page is spit out, I have attached an excerpt below.

...

Expected behavior

A backup to be created

Screenshots

NA

Snipe-IT Version

Updated to commit c54bff0

Operating System

Archlinux (Kernel 6.6.16-1-lts)

Web Server

Nginx 1.26.0-3

PHP Version

8.3.7-2

Operating System

Archlinux

Browser

Firefox

Version

129.0.1

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

Backup failed because: The dump process failed with a none successful exitcode. Exitcode ======== 2: Misuse of shell builtins Output ====== <no output> Error Output ============ /usr/bin/mysqldump: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb-dump' instead mysqldump: Got error: 2026: "TLS/SSL error: SSL is required, but the server does not support it" when trying to connect .

Additional context

I think snipe-it should be able to retry the backup with the appropriate flags to disable SSL when it fails.

I think my workaround for this will have to be some kind of client config file for mariadb-dump to NOT try ssl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions