Rclone stuck if dir is empty

What is the problem you are having with rclone?

Hi! I'm try to move files from local directory to gdrive and rclone stuck if this dir is empty. But if not - it's ok. I can write bash script for moving any file with rclone but I'm want to move multiple files.

What is your rclone version (output from rclone version)

rclone/v1.47.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

CentOS 7 x64

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

Google Drive

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

rclone move -P /usr/local/FlashphonerWebCallServer/records/ --include "*.{wepb,mp4}" gdrive:

The rclone config contents with secrets removed.

[gdrive]
type = drive
client_id = client_id
client_secret = client_secret
scope = drive
root_folder_id = root_folder_id
token = {"access_token":"access_token","token_type":"Bearer","refresh_token":"refresh_token","expiry":"2021-01-14T20:29:46.863263375Z"}

A log from the command with the -vv flag

[ec2-user@ip-34-54-44-222 ~]$ rclone move -P /usr/local/FlashphonerWebCallServer/records/ --include "*.{wepb,mp4}" gdrive:
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 0
Checks:                 0 / 0, -
Transferred:            0 / 0, -
Elapsed time:        54.5s

hello and welcome to the forum,

that version of rclone is years old, you can update here and test again.
https://rclone.org/downloads/#script-download-and-install

Really. AWS have old version.. But with new - no changes.

[ec2-user@ip-34-54-44-222 ~]$ rclone move -P /usr/local/FlashphonerWebCallServer/records/ --include "*.{wepb,mp4}" gdrive: -vv
2021/01/14 20:13:35 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "move" "-P" "/usr/local/FlashphonerWebCallServer/records/" "--include" "*.{wepb,mp4}" "gdrive:" "-vv"]
2021/01/14 20:13:35 DEBUG : Creating backend with remote "/usr/local/FlashphonerWebCallServer/records/"
2021/01/14 20:13:35 DEBUG : Using config file from "/home/ec2-user/.config/rclone/rclone.conf"
2021/01/14 20:13:35 DEBUG : Creating backend with remote "gdrive:"
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Elapsed time:        45.0s^C

you say that the folder has files, but rclone cannot see them?

from that command line, what is the output of ls and rclone ls

Oh yes, I forgot to say :slight_smile:

With files - works fine, but I want to put this code into cron and if dir is empty - rclone don't kill process

if using cron, i would use a rclone debug log and see what is in it.
as a test, try rclone ls with a debug log

Big thanks for help, cron works! :slight_smile:

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