Attempt failed: is not a regular file

So the next steps would be to walk down the directory tree to see where the issue is. Keep adding on till it breaks.

I tried with duplicates and quite a lot and I can't recreate it.

Won't I just be copying the same file into different places on the remote if I do that?

Correct.

You'd remove them once done but you gotta step through and figure out where it breaks and we can dig into why.

OK, I know where it breaks. Here is the process I went through to find the breaking point:

pi@raspberrypi:~ $ rclone ls GSuite: | grep sys
      439 sys_check.sh
      439 Raspberry Pi/sys_check.sh
      110 Raspberry Pi/Scripts/sysinfo/get_versions.sh
      170 Raspberry Pi/Scripts/sysinfo/temp_test.sh
^C      
pi@raspberrypi:~ $ rclone copy "/home/pi/Scripts/sysinfo/sys_check.sh" "GSuite:Raspberry Pi/Scripts"
pi@raspberrypi:~ $ rclone ls GSuite: | grep sys
      439 sys_check.sh
      439 Raspberry Pi/sys_check.sh
      439 Raspberry Pi/Scripts/sys_check.sh
      110 Raspberry Pi/Scripts/sysinfo/get_versions.sh
      170 Raspberry Pi/Scripts/sysinfo/temp_test.sh
^C      
pi@raspberrypi:~ $ rclone copy "/home/pi/Scripts/sysinfo/sys_check.sh" "GSuite:Raspberry Pi/Scripts/sysinfo"
2021/01/22 19:39:17 ERROR : Attempt 1/3 failed with 1 errors and: is not a regular file
2021/01/22 19:39:17 ERROR : Attempt 2/3 failed with 1 errors and: is not a regular file
2021/01/22 19:39:17 ERROR : Attempt 3/3 failed with 1 errors and: is not a regular file
2021/01/22 19:39:17 Failed to copy: is not a regular file
pi@raspberrypi:~ $

Here are the steps to recreate:

felix@flux:~/test$ rclone mkdir GD:test
felix@flux:~/test$ rclone mkdir GD:test/hosts
felix@flux:~/test$ rclone copy /etc/hosts GD:test -vv
2021/01/22 14:44:40 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "copy" "/etc/hosts" "GD:test" "-vv"]
2021/01/22 14:44:40 DEBUG : Creating backend with remote "/etc/hosts"
2021/01/22 14:44:40 DEBUG : Using config file from "/home/felix/.config/rclone/rclone.conf"
2021/01/22 14:44:40 DEBUG : fs cache: adding new entry for parent of "/etc/hosts", "/etc"
2021/01/22 14:44:40 DEBUG : Creating backend with remote "GD:test"
2021/01/22 14:44:40 ERROR : Attempt 1/3 failed with 1 errors and: is not a regular file
2021/01/22 14:44:40 ERROR : Attempt 2/3 failed with 1 errors and: is not a regular file
2021/01/22 14:44:40 ERROR : Attempt 3/3 failed with 1 errors and: is not a regular file
2021/01/22 14:44:40 INFO  :
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.8s

2021/01/22 14:44:40 DEBUG : 4 go routines active
2021/01/22 14:44:40 Failed to copy: is not a regular file

So I think you have a directory created in the folder with the same name.

As in my example:

felix@flux:~/test$ rclone rmdir GD:test/hosts
felix@flux:~/test$ rclone copy /etc/hosts GD:test -vv
2021/01/22 14:45:45 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "copy" "/etc/hosts" "GD:test" "-vv"]
2021/01/22 14:45:45 DEBUG : Creating backend with remote "/etc/hosts"
2021/01/22 14:45:45 DEBUG : Using config file from "/home/felix/.config/rclone/rclone.conf"
2021/01/22 14:45:45 DEBUG : fs cache: adding new entry for parent of "/etc/hosts", "/etc"
2021/01/22 14:45:45 DEBUG : Creating backend with remote "GD:test"
2021/01/22 14:45:46 DEBUG : hosts: Need to transfer - File not found at Destination
2021/01/22 14:45:47 DEBUG : hosts: MD5 = bd600754a95b50345913c0b07a4a8e47 OK
2021/01/22 14:45:47 INFO  : hosts: Copied (new)
2021/01/22 14:45:47 INFO  :
Transferred:           405 / 405 Bytes, 100%, 320 Bytes/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         1.8s

2021/01/22 14:45:47 DEBUG : 4 go routines active

I think you're right:

pi@raspberrypi:~ $ rclone lsd "GSuite:Raspberry Pi/Scripts"
          -1 2021-01-19 22:10:57        -1 awk
          -1 2021-01-19 22:07:14        -1 install
          -1 2021-01-19 22:06:45        -1 sysinfo
pi@raspberrypi:~ $ rclone lsd "GSuite:Raspberry Pi/Scripts/sysinfo"
          -1 2021-01-21 10:54:33        -1 sys_check.sh
pi@raspberrypi:~ $

I don't know why it isn't letting me put the code into a code block though.

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