rsinc icon indicating copy to clipboard operation
rsinc copied to clipboard

Crashes After Completing Interactive Setup

Open lots0logs opened this issue 5 years ago • 2 comments

Any idea what the problem could be?

__________       .__
\______   \ _____|__| ____   ____
|       _//  ___/  |/    \_/ ___\
|    |   \\___ \|  |   |  \  \___
|____|_  /____  >__|___|  /\___  >
\/     \/        \/     \/

Copyright 2019 C. J. Williams (CHURCHILL COLLEGE)
This is free software with ABSOLUTELY NO WARRANTY

Don't have: ".", entering first_sync mode
Ignore: []
Crawling: "." ⠹2020/02/26 21:17:21 Failed to lsjson: error in ListJSON: directory not found
Traceback (most recent call last):
File "/usr/bin/rsinc", line 11, in <module>
load_entry_point('rsinc==2.13.dev0', 'console_scripts', 'rsinc')()
File "/usr/lib/python3.8/site-packages/rsinc/rsinc.py", line 236, in main
rmt = lsl(path_rmt, HASH_NAME)
File "/usr/lib/python3.8/site-packages/rsinc/rclone.py", line 95, in lsl
list_of_dicts = ujson.load(result.stdout)
ValueError: Expected object or value

Here's what's in the config file:

{
    "BASE_L":"\/home\/dustin\/google-drive",
    "BASE_R":"Google:",
    "CASE_INSENSATIVE":false,
    "DEFAULT_DIRS":[

    ],
    "FAST_SAVE":false,
    "HASH_NAME":"MD5",
    "LOG_FOLDER":"\/home\/dustin\/.rsinc\/logs\/",
    "MASTER":"\/home\/dustin\/.rsinc\/master.json",
    "TEMP_FILE":"\/home\/dustin\/.rsinc\/rsinc.tmp"
}

AFAICT it is creating a new directory both locally and on my google drive named . then it fails. :confused:

lots0logs avatar Feb 27 '20 03:02 lots0logs

So I'm guessing the problem is that I'm trying to have an entire directory synced as the root of my google drive but rsinc wants to be provided the names of the directories inside the root to sync. Is that correct? Does that mean what I want to do is not supported?

lots0logs avatar Feb 27 '20 04:02 lots0logs

I think you are correct. Rsinc expects a directory inside each root to sync. In addition rsinc does not know how to expand . if you were to enter the empty string as the folder to sync it 'might' work as expected though.

ConorWilliams avatar Feb 27 '20 08:02 ConorWilliams