Rclone's docker volume plugin stopped working after docker upgrade

What is the problem you are having with rclone?

Hi all,

After a system upgrade, rclone's docker volume plugin has stopped working. When I start the app that uses a configured volume that used the plugin (that worked flawlessly until the sys upgrade) it shows the following message:

Error response from daemon: create storj-data: VolumeDriver.Create: didn't find section in config file

To configure this plugin I followed the steps in https://rclone.org/docker/

The error seems to occur because the plugin cannot find the configuration file anymore (the file is untouched in the recommended location), as the journalctl -b0 --unit docker shows:

-03:00" level=error msg="2023/03/31 02:18:15 DEBUG : Create volume \"storj-data\"" plugin=b9dc5853ad88fd0f6adb5a695cb2e1bd42252e5a28be3df3789f>
-03:00" level=error msg="2023/03/31 02:18:15 NOTICE: Config file \"/data/config/rclone.conf\" not found - using defaults" plugin=b9dc5853ad88fd0f6adb>
-03:00" level=error msg="2023/03/31 02:18:15 DEBUG : /VolumeDriver.Create: Request returned error: didn't find section in config file" plugin=b9dc585>
.742081523-03:00" level=error msg="Handler for POST /v1.42/volumes/create returned error: create storj-data: VolumeDriver.Create: didn't find >

So, I have reinstalled the plugin expliciting the location of config file:

docker plugin install rclone/docker-volume-rclone:arm64 args="-vv" config=/var/lib/docker-plugins/rclone/config --alias rclone --grant-all-permissions

with no success.

The plugin is configured to mount a storj (s3) remote and the config file is located at
/var/lib/docker-plugins/rclone/config as recommended in the docs. The contents of rclone.conf are:

[storj]
type = s3
provider = Storj
access_key_id = xxxxxxxxxxxxxxxxxxx
secret_access_key = xxxxxxxxxxxxxx
acl = private
bucket_acl = private
endpoint = gateway.storjshare.io
disable_checksum: true

Any hints on this?

docker plugin inspect rclone:

[
    {
        "Config": {
            "Args": {
                "Description": "",
                "Name": "args",
                "Settable": [
                    "value"
                ],
                "Value": []
            },
            "Description": "Rclone volume plugin for Docker",
            "DockerVersion": "20.10.23+azure-2",
            "Documentation": "https://rclone.org/docker",
            "Entrypoint": [
                "rclone",
                "serve",
                "docker"
            ],
            "Env": [
                {
                    "Description": "",
                    "Name": "RCLONE_VERBOSE",
                    "Settable": [
                        "value"
                    ],
                    "Value": "0"
                },
                {
                    "Description": "",
                    "Name": "RCLONE_CONFIG",
                    "Settable": null,
                    "Value": "/data/config/rclone.conf"
                },
                {
                    "Description": "",
                    "Name": "RCLONE_CACHE_DIR",
                    "Settable": null,
                    "Value": "/data/cache"
                },
                {
                    "Description": "",
                    "Name": "RCLONE_BASE_DIR",
                    "Settable": null,
                    "Value": "/mnt"
                },
                {
                    "Description": "",
                    "Name": "HTTP_PROXY",
                    "Settable": [
                        "value"
                    ],
                    "Value": ""
                },
                {
                    "Description": "",
                    "Name": "HTTPS_PROXY",
                    "Settable": [
                        "value"
                    ],
                    "Value": ""
                },
                {
                    "Description": "",
                    "Name": "NO_PROXY",
                    "Settable": [
                        "value"
                    ],
                    "Value": ""
                }
            ],
            "Interface": {
                "Socket": "rclone.sock",
                "Types": [
                    "docker.volumedriver/1.0"
                ]
            },
            "IpcHost": false,
            "Linux": {
                "AllowAllDevices": false,
                "Capabilities": [
                    "CAP_SYS_ADMIN"
                ],
                "Devices": [
                    {
                        "Description": "",
                        "Name": "",
                        "Path": "/dev/fuse",
                        "Settable": null
                    }
                ]
            },
            "Mounts": [
                {
                    "Description": "",
                    "Destination": "/data/config",
                    "Name": "config",
                    "Options": [
                        "rbind"
                    ],
                    "Settable": [
                        "source"
                    ],
                    "Source": "/var/lib/docker-plugins/rclone/config",
                    "Type": "bind"
                },
                {
                    "Description": "",
                    "Destination": "/data/cache",
                    "Name": "cache",
                    "Options": [
                        "rbind"
                    ],
                    "Settable": [
                        "source"
                    ],
                    "Source": "/var/lib/docker-plugins/rclone/cache",
                    "Type": "bind"
                }
            ],
            "Network": {
                "Type": "host"
            },
            "PidHost": false,
            "PropagatedMount": "/mnt",
            "User": {},
            "WorkDir": "/data",
            "rootfs": {
                "diff_ids": [
                    "sha256:0515e2589b339cdac90ddbe5cc1932e256205ae6e72b3b2ad58d28e8b4dffa68"
                ],
                "type": "layers"
            }
        },
        "Enabled": true,
        "Id": "b9dc5853ad88fd0f6adb5a695cb2e1bd42252e5a28be3df3789fe6865ce8ca4f",
        "Name": "rclone:latest",
        "PluginReference": "docker.io/rclone/docker-volume-rclone:arm64",
        "Settings": {
            "Args": [
                "-vv"
            ],
            "Devices": [
                {
                    "Description": "",
                    "Name": "",
                    "Path": "/dev/fuse",
                    "Settable": null
                }
            ],
            "Env": [
                "RCLONE_VERBOSE=0",
                "RCLONE_CONFIG=/data/config/rclone.conf",
                "RCLONE_CACHE_DIR=/data/cache",
                "RCLONE_BASE_DIR=/mnt",
                "HTTP_PROXY=",
                "HTTPS_PROXY=",
                "NO_PROXY="
            ],
            "Mounts": [
                {
                    "Description": "",
                    "Destination": "/data/config",
                    "Name": "config",
                    "Options": [
                        "rbind"
                    ],
                    "Settable": [
                        "source"
                    ],
                    "Source": "/var/lib/docker-plugins/rclone/config",
                    "Type": "bind"
                },
                {
                    "Description": "",
                    "Destination": "/data/cache",
                    "Name": "cache",
                    "Options": [
                        "rbind"
                    ],
                    "Settable": [
                        "source"
                    ],
                    "Source": "/var/lib/docker-plugins/rclone/cache",
                    "Type": "bind"
                }
            ]
        }
    }
]

Run the command 'rclone version' and share the full output of the command.

rclone isn't installed. My docker version is 23.0.2 running on Ubuntu server 22.04.

Which cloud storage system are you using? (eg Google Drive)

Storj (s3)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

docker compose up

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.