Rclone batch script returning directory not found

What is the problem you are having with rclone?

I have a Python script that copies files from an https server to Gcloud. This script works exactly is intended.

The problem is, I really need this automated and running every hour. The batch script I wrote displays an SSL error, and then shows directory not found in the CMD window when I try running it as administrator or via Task Scheduler. I've searched SO for a solution to no avail.

What is your rclone version (output from rclone version)


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

Win 10 Server x64

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

Google Cloud storage

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

rclone copy "NOMADS:blend.20201006/13/core/blend.t13z.core.f001.co.grib2" "Gcloud:nomads_transfer"

The rclone config contents with secrets removed.

type = http
url = https://nomads.ncep.noaa.gov/pub/data/nccf/com/blend/prod/

type = http
url = https://nomads.ncep.noaa.gov/pub/data/nccf/com/blend/prod/

type = google cloud storage
token = {"access_token":"XXX"}

A log from the command with the -vv flag

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)'))': /simple/python-rclone/

Syncing contents of NOMADs dir to Gcloud for 20201006...
2020/10/06 23:17:23 ERROR : : error reading source directory: error listing "": directory not found

**EDIT: Forgot to include the contents of my batch file

call "C:\ProgramData\Anaconda3\Scripts\activate.bat"
cd "C:.config"
python gcloud.py

I am using Anaconda 3 v. 2020.07

I don't think that error is from rclone - it is from the python program.

The python program appears to be downloading something from pypi which isn't working.

Yeah the only install I have running in my script is the python-rclone package which it installs via a python pip install function I built. Not sure why that would error?

At a guess your SSL roots need updating...

Took a while to confirm this, but it appears to be fixed after manually telling Anaconda to use a specific SSL certificate and whitelisting a bunch of sites through the firewall. Ended up not being super related to rclone at face value, sorry about that! But either way glad it's fixed and thanks for the help! Marking this as the solution.

1 Like

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