Rclone wont update v1.58.1 to lates in Container

What is the problem you are having with rclone?

rclone wont update v1.58.1 to lates in Container

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

In container using:

# Install latest rclone directly
RUN curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip && \
    unzip rclone-current-linux-amd64.zip && \
    cd rclone-*-linux-amd64 && \
    cp rclone /usr/bin/ && \
    chown root:root /usr/bin/rclone && \
    chmod 755 /usr/bin/rclone && \
    cd .. && \
    rm -rf rclone-* rclone-current-linux-amd64.zip

# Verify rclone version
RUN rclone version

root@ca4e9e1e62c2:/workspace# rclone --version
rclone v1.58.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.5.0-41-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: static
  • go/tags: none
    root@ca4e9e1e62c2:/workspace#

Are you on the latest version of rclone? You can validate by checking the version listed here: https://rclone.org/downloads/
 --> seems like 1.68.1 is the latest. I can self-update in jupyter terminal:

root@ca4e9e1e62c2:/workspace# rclone --version
rclone v1.58.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.5.0-41-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: static
  • go/tags: none
    root@ca4e9e1e62c2:/workspace# rclone self-update
    2024/10/23 13:38:08 NOTICE: Successfully updated rclone from version v1.58.1 to version v1.68.1
    root@ca4e9e1e62c2:/workspace#

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


#### The command you were trying to run (eg `rclone copy /tmp remote:tmp`)  
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

rclone --config=/workspace/.config/rclone/rclone.conf copy "dbx:/studio/ai/data/2styles/002-2-hedi/2upscale/3_1024px" "$(pwd)" -v --ignore-existing -P

the functionality of rclone works. no problem. 
But i am just not able to update in Container

#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

2024/10/23 14:08:18 CRITICAL: Failed to load config file "/workspace/=[dbx] type = dropbox token = {"access_token":"xxx","token_type":"bearer","refresh_token":"xxx","expiry":"2023-10-10T17:27:00.489319442+01:00"}": open /workspace/=[dbx] type = dropbox token = {"access_token":"xxx","token_type":"bearer","refresh_token":"xxxx","expiry":"2023-10-10T17:27:00.489319442+01:00"}: file name too long
root@c0f44714b48c:/workspace#


root@c0f44714b48c:/workspace# cat /workspace/.config/rclone/rclone.conf
[dbx]
type = dropbox
token = {"access_token":"xxx","token_type":"bearer","refresh_token":"xxx","expiry":"2023-10-10T17:27:00.489319442+01:00"}

That is only run at container build time. If you want a newer rclone you'll have to rebuild the container.

still not updating with

#!/bin/bash

Set rclone config environment

export RCLONE_CONFIG=/workspace/.config/rclone/rclone.conf

export XDG_CONFIG_HOME=/workspace/.config

Update rclone on startup

echo "Updating rclone..."

rclone self-update || echo "Warning: Rclone update failed"

--
I've rebuilt but it wont self-update

??

What was the log message?

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