# Check command returning error didn't find section in config file

**URL:** <https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822>\
**Category:** Help and Support\
**Created:** [June 1, 2020, 1:49pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822 "2020-06-01T13:49:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diego\_Martincic](https://forum.rclone.org/user_avatar/forum.rclone.org/diego_martincic/32/4993_2.png) [@Diego\_Martincic](https://forum.rclone.org/u/Diego_Martincic)\
**Post date:** [June 1, 2020, 1:49pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/1 "2020-06-01T13:49:49Z")

</div>

I'm having trouble with the check command, and didn't find in the documentation how to sett up the config file/ what I'm missing.  
Next thing I'm programming a python 3 script for for returning a message if the if all files are uploaded correctly to the cloud or not.

Version 1.49.3  
OS Raspberian 32  
Google drive

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

```auto
while parent folder folder 
(Local and gdrive folders are child of current location)

rclone check source:Local dest:gdrive --one-way 

```

#### The rclone config contents with secrets removed.

```auto
[rpi-gdrive]
type = drive
scope = drive
root_folder_id = ####FOLDER ID###3
token = {"access_token":"#####TOKEN$#####}
team_drive =

```

#### A log from the command with the `-vv` flag

```auto
2020/06/01 15:37:10 DEBUG : rclone: Version "v1.49.3" starting with parameters ["rclone" "check" "source:local" "dest:gdrive" "-vv"]
2020/06/01 15:37:10 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020/06/01 15:37:10 Failed to create file system for "source:local": didn't find section in config file

```

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 1, 2020, 1:59pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/2 "2020-06-01T13:59:46Z")

</div>

That's a pretty old version of rclone so you probably want to update.

You run a check with a source and destination.

Source is normally a local path/disk so something like

rclone check /home/drive/checkhere remote:check

and it compares the source to the destination for a file check.

---

<div class="post-metadata">

**Author:** ![Diego\_Martincic](https://forum.rclone.org/user_avatar/forum.rclone.org/diego_martincic/32/4993_2.png) [@Diego\_Martincic](https://forum.rclone.org/u/Diego_Martincic)\
**Post date:** [June 1, 2020, 2:28pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/3 "2020-06-01T14:28:25Z")

</div>

oh now I get it, what a stupid mistake  
"source:folder " is my local folder and "dest:folder" my drive folder.

now I get this:

> 2020/06/01 16:19:17 Failed to check with 2 errors: last error was: 1 differences found

I'm not very expert in programming, shell, bash and python, probably would pipe that line to a string in python and check with a if or try statement if there are more than 0 differences found.

Any better idea?  
Thank you

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 1, 2020, 2:29pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/4 "2020-06-01T14:29:52Z")

</div>

I'm not sure what your goal is and what you are trying to accomplish.

I personally use a crypt remote so I do not use check.

---

<div class="post-metadata">

**Author:** ![Diego\_Martincic](https://forum.rclone.org/user_avatar/forum.rclone.org/diego_martincic/32/4993_2.png) [@Diego\_Martincic](https://forum.rclone.org/u/Diego_Martincic)\
**Post date:** [June 1, 2020, 2:57pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/5 "2020-06-01T14:57:42Z")

</div>

I'm making a upload scheduler for my time lapse project, the script should check if all pictures were successfully transferred to the drive, or re upload again if not, and finally checking before removing the pictures from local folder.

I done some manual tests, with two options, uploading while capturing and after the schedule time. This cameras produce between 1 GB and 5 GB of pictures per day.  
I don't want to check manually on 5 different units.

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [June 1, 2020, 3:49pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/6 "2020-06-01T15:49:18Z")

</div>

> [@Diego\_Martincic](#):
>
> last error was: 1 differences found

That looks fine. Just tells you there is a difference between source and dest. The log would tell you what exactly.

> [@Diego\_Martincic](#):
>
> I'm making a upload scheduler for my time lapse project, the script should check if all pictures were successfully transferred to the drive, or re upload again if not, and finally checking before removing the pictures from local folder.

For your use case, why not just use the move command which will delete the files at the source after copying them to the dest? You can then just rerun it till you get no differences reported.

---

<div class="post-metadata">

**Author:** ![Diego\_Martincic](https://forum.rclone.org/user_avatar/forum.rclone.org/diego_martincic/32/4993_2.png) [@Diego\_Martincic](https://forum.rclone.org/u/Diego_Martincic)\
**Post date:** [June 1, 2020, 8:09pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/7 "2020-06-01T20:09:19Z")

</div>

> [@calisro](#):
>
> That looks fine. Just tells you there is a difference between source and dest. The log would tell you what exactly

yes, that the point of that command, but I should pipe that log information to an if statement to get true or false in python.  
Your point is good when is working properly, but I implement some fail safe features, like if the Raspberry do disconnect, or the mounting process stop working, I made the script to find if some error occurred to pass the upload or sync function until the problem is solved. The script is running in a loop.  
The last project I was personally checking the Goproes and changing sd cards every 5 days not on easy accessible places.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [August 1, 2020, 4:09pm UTC](https://forum.rclone.org/t/check-command-returning-error-didnt-find-section-in-config-file/16822/8 "2020-08-01T16:09:22Z")

</div>

Closed on August 1, 2020, 4:09pm UTC

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