Skip to content

Show clearer backup destination errors #8242

Description

@DavidePrincipi

When a backup destination cannot be added, NethServer 8 shows a generic message such as "Cannot connect, authenticate, or read ...". The same error code is used for very different causes: a wrong host name, a network problem, wrong credentials, a wrong region or endpoint, a missing bucket, or missing permissions. The administrator cannot tell which one it is without running rclone by hand, outside NethServer.

The purpose of this feature is to tell the administrator, directly in the web interface, why the destination check failed, so that most problems can be fixed without further investigation.

Proposed solution

  • Show the original error message returned by rclone as additional details in the existing error notification of the Add/Edit backup destination forms. The details are optional, so existing error codes and their translations keep working. Passwords, access keys, and other secrets of the destination being tested must be removed from the text before it is shown. Debug output must never be included

  • Add more specific error codes for the most common and easy-to-recognize causes, for example:

    • connection failed (host name not found, network unreachable)
    • authentication failed (invalid access key or signature)
    • destination not found (bucket or path does not exist)
    • wrong region or endpoint

    The current generic codes stay as fallback, together with the rclone details.

Alternative solutions

Run the checks through the rclone remote control interface, which returns structured error messages. This requires a different way to pass the destination settings for each check, so it is more expensive than reading the command output.

Additional context

This builds on #8241, which makes the rclone error messages visible in the task log and system logs.

See also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions