Custom Rclone Config - ONE DRIVE #112

Closed
opened 2026-04-05 20:25:31 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @paulobeneton on 4/1/2025

CloudPanel version(s) affected

v2.5.1

Description

Description

When using Custom Rclone Config in the Remote Backup settings, CloudPanel automatically adds the prefix remote: to the value entered in the Storage Directory field.

This breaks valid remote configurations defined in the rclone.conf file, such as onedrive:, because CloudPanel ends up generating incorrect paths like remote:onedrive:cloudpanel.

This leads to rclone errors such as:


Failed to create file system for "remote:onedrive:cloudpanel/": didn't find section in config file

Even if the correct remote is defined (like onedrive:), the system fails because of the forced remote:How to reproduce

How to Reproduce

  1. Configure a valid remote (e.g., onedrive) using rclone config on the server.
  2. Ensure it works by testing with rclone ls onedrive:.
  3. Log in to CloudPanel and go to Admin → Backups → Remote Backup.
  4. Select Custom Rclone Config as the storage provider.
  5. Enter onedrive:cloudpanel in the Storage Directory field.
  6. Leave the Service Account field empty and save the configuration.
  7. Observe the error or check

    Possible Solution

    Possible Solution

    • CloudPanel should respect the exact value entered in the Storage Directory field when Custom Rclone Config is selected.
    • Do not automatically prepend remote: unless the user explicitly includes it.
    • Add a validation or dropdown to allow selecting from the available remotes defined in rclone.conf, if possible.
    • If prepending remote: is required for internal logic, allow users to override it by detecting if a full remote path (e.g., onedrive:cloudpanel) is already provided.

    Additional Context

    Image
    Image

*Originally created by @paulobeneton on 4/1/2025* ### CloudPanel version(s) affected v2.5.1 ### Description <h3>Description</h3> <p> When using <strong>Custom Rclone Config</strong> in the Remote Backup settings, CloudPanel automatically adds the prefix <code>remote:</code> to the value entered in the <strong>Storage Directory</strong> field. </p> <p> This breaks valid remote configurations defined in the <code>rclone.conf</code> file, such as <code>onedrive:</code>, because CloudPanel ends up generating incorrect paths like <code>remote:onedrive:cloudpanel</code>. </p> <p> This leads to rclone errors such as: </p> <pre><code> Failed to create file system for "remote:onedrive:cloudpanel/": didn't find section in config file </code></pre> <p> Even if the correct remote is defined (like <code>onedrive:</code>), the system fails because of the forced <code>remote:</ ### How to reproduce <h3>How to Reproduce</h3> <ol> <li>Configure a valid remote (e.g., <code>onedrive</code>) using <code>rclone config</code> on the server.</li> <li>Ensure it works by testing with <code>rclone ls onedrive:</code>.</li> <li>Log in to CloudPanel and go to <strong>Admin &rarr; Backups &rarr; Remote Backup</strong>.</li> <li>Select <strong>Custom Rclone Config</strong> as the storage provider.</li> <li>Enter <code>onedrive:cloudpanel</code> in the <strong>Storage Directory</strong> field.</li> <li>Leave the <strong>Service Account</strong> field empty and save the configuration.</li> <li>Observe the error or check ### Possible Solution <h3>Possible Solution</h3> <ul> <li>CloudPanel should respect the exact value entered in the <strong>Storage Directory</strong> field when <strong>Custom Rclone Config</strong> is selected.</li> <li>Do not automatically prepend <code>remote:</code> unless the user explicitly includes it.</li> <li>Add a validation or dropdown to allow selecting from the available remotes defined in <code>rclone.conf</code>, if possible.</li> <li>If prepending <code>remote:</code> is required for internal logic, allow users to override it by detecting if a full remote path (e.g., <code>onedrive:cloudpanel</code>) is already provided.</li> </ul> ### Additional Context ![Image](https://github.com/user-attachments/assets/09cfed4c-c349-4e34-a683-2ebe8a32d076) ![Image](https://github.com/user-attachments/assets/06905f62-c0e8-46dc-98f3-01c81528e0d8)
Sign in to join this conversation.