[SOLVED] Folder not showned - Input/output error


#1

Hi all,

With this configuration , I will be able to mount and list the different encrypted folder, and display file decrypted :
[gd-crypt]
type = crypt
remote = gd:Folder
filename_encryption = standard
password = XXXXXXX
password2 = YYYYYYYY
directory_name_encryption = false

If I change directory_name_encryption to true, the mount gave an Input/output error, an the list of folder is not shown anymore.
2018/02/01 01:30:19 DEBUG : /: >ReadDirAll: item=13, err=
ls: reading directory ‘test/’: Input/output error

Any idea what going on ?

Also, rclone --config=/config/rclone.conf -vv lsd gd-crypt: will display the folders correctly…


#2

Do you mean you try to mount the same remote with existing data which you set up with “directory_name_encryption = false”?
This cannot work, as the unencrypted directory names are already in the remote and cannot be decrypted (which is causing the error).
You have to decide if you want to use that setting before putting any data into the remote.


#3

Sorry, if a was’nt clear enough. They were encrypted, as they were created with previous version of rclone 1.37, where this option didn’t exist.

Basicly I can decrypt files fine, but not folders. This happend with the “rclone mount” only, as I can list folder with “rclone lsd” (Also meaning my rclone.conf is correct )


#4

By the way, look more like a bug, since replacing the executable with the 1.3.7 works again !


#5

It is probably a difference in the config

You want this set to true to be compatible with rclone 1.37

There should be encrypted directory names in gd:Folder - unencrypted directory names won’t be shown.

What was the actual error here?


#6

It is probably a difference in the config

I use the same rclone config between 1.3.7 and 1.3.9 (–config=/config/rclone.conf)

You want this set to true to be compatible with rclone 1.37
There should be encrypted directory names in gd:Folder - unencrypted directory names won’t be shown.

You’re right. But with 1.3.9, folders are a no show once mounted.
Command “rclone --config=/config/rclone.conf -vv lsd gd-crypt:” will have the right behavior with both version.

What was the actual error here?

It list the number of folders correctly (13) but display input/output error message.

Reverting back to 1.3.7 right after mount correctly, so not a gDrive ban issue.

Note : even if “ls” command will result in input input/output error, the “cd” to the unencrypted name of the folder will work and the number of items from ReadDirAll will update.


#7

The input/ouput error will have a corresponding message in the rclone mount log - that is what I’m interested in. If you could paste that plus the 10 lines around it that would help.


#8

Hi,

Sorry for the late reply. This is the full logs files :

root@0e7d37db52c2:/# more t3.log
2018/03/13 02:46:41 DEBUG : Using config file from “/config/rclone.conf”
2018/03/13 02:46:41 DEBUG : rclone: Version “v1.39” starting with parameters [“rclone” “–config=/config/rclone.conf” “mount” “local-crypt:” “t3” “-vv” “–debug-fuse” “–allow-other” “–log-file” “t3.log” “–cache-db-purge” “–poll-interval” “0”]
2018/03/13 02:46:41 INFO : Encrypted drive ‘local-crypt:’: Modify window is 1ns
2018/03/13 02:46:41 DEBUG : Encrypted drive ‘local-crypt:’: Mounting on “t3”
2018/03/13 02:46:41 DEBUG : vfs cache root is “/root/.cache/rclone/vfs/local-crypt”
2018/03/13 02:46:41 DEBUG : : Root:
2018/03/13 02:46:41 DEBUG : : >Root: node=/, err=
2018/03/13 02:46:49 DEBUG : fuse: <- Getattr [ID=0x2 Node=0x1 Uid=0 Gid=0 Pid=505] 0x0 fl=0
2018/03/13 02:46:49 DEBUG : /: Attr:
2018/03/13 02:46:49 DEBUG : /: >Attr: attr=valid=1m0s ino=0 size=0 mode=drwxr-xr-x, err=
2018/03/13 02:46:49 DEBUG : fuse: -> [ID=0x2] Getattr valid=1m0s ino=1 size=0 mode=drwxr-xr-x
2018/03/13 02:46:49 DEBUG : fuse: <- Getxattr [ID=0x3 Node=0x1 Uid=0 Gid=0 Pid=505] “security.selinux” 255 @0
2018/03/13 02:46:49 DEBUG : fuse: -> [ID=0x3] Getxattr error=operation not supported
2018/03/13 02:46:49 DEBUG : fuse: <- Getxattr [ID=0x4 Node=0x1 Uid=0 Gid=0 Pid=505] “system.posix_acl_access” 0 @0
2018/03/13 02:46:49 DEBUG : fuse: -> [ID=0x4] Getxattr error=operation not supported
2018/03/13 02:46:49 DEBUG : fuse: <- Open [ID=0x5 Node=0x1 Uid=0 Gid=0 Pid=505] dir=true fl=OpenReadOnly+OpenDirectory+OpenNonblock
2018/03/13 02:46:49 DEBUG : fuse: -> [ID=0x5] Open 0x1 fl=0
2018/03/13 02:46:49 DEBUG : fuse: <- Read [ID=0x6 Node=0x1 Uid=0 Gid=0 Pid=505] 0x1 4096 @0x0 dir=true fl=0 lock=0 ffl=OpenReadOnly+OpenDirectory+OpenNonblock
2018/03/13 02:46:49 DEBUG : /: ReadDirAll:
2018/03/13 02:46:49 DEBUG : /: >ReadDirAll: item=14, err=
2018/03/13 02:46:49 DEBUG : fuse: -> [ID=0x6] Read 480
2018/03/13 02:46:49 DEBUG : fuse: <- Release [ID=0x7 Node=0x1 Uid=0 Gid=0 Pid=0] 0x1 fl=OpenReadOnly+OpenDirectory+OpenNonblock rfl=0 owner=0x0
2018/03/13 02:46:49 DEBUG : fuse: -> [ID=0x7] Release
2018/03/13 02:47:12 DEBUG : fuse: <- Getattr [ID=0x8 Node=0x1 Uid=0 Gid=0 Pid=425] 0x0 fl=0
2018/03/13 02:47:12 DEBUG : /: Attr:
2018/03/13 02:47:12 DEBUG : /: >Attr: attr=valid=1m0s ino=0 size=0 mode=drwxr-xr-x, err=
2018/03/13 02:47:12 DEBUG : fuse: -> [ID=0x8] Getattr valid=1m0s ino=1 size=0 mode=drwxr-xr-x
root@0e7d37db52c2:/#

Looks like it’s happening only for the root folder.

Is there anything I can do to provide more info ?


#9

I need to see the bits of the log where it says ERROR - the above doesn’t show any error messages.


#10

There no other error than :

root@0e7d37db52c2:/t5# ll
ls: reading directory '.': Input/output error
total 0

But it’s seems related to folder where there is a . folder inside :

> root@0e7d37db52c2:/t5# rclone --config=/config/rclone.conf  lsd gd-crypt:
>           -1 2017-06-12 20:36:35        -1 .
>           -1 2017-11-28 05:23:50        -1 Anime

I can successfully acces Anime folder :

root@0e7d37db52c2:/t5# ll Anime
total 0
drwxr-xr-x 1 root root 0 Nov 28 05:23 Dragon Ball Z/

#11

Oh, I see, you have a folder called ‘.’. That will definitely confuse things! Can you rename it?


#12

I tried the following :

root@0e7d37db52c2:/t5/Anime# rclone --config=/config/rclone.conf mkdir gd-crypt:Anime/.

I succesfully reproduced the error :

root@0e7d37db52c2:/t5/Anime# ll
ls: reading directory ‘.’: Input/output error
total 0

Tried a

root@0e7d37db52c2:/t5/Anime# rclone --config=/config/rclone.conf purge gd-crypt:Anime/.
root@0e7d37db52c2:/t5/Anime# ll
ls: reading directory ‘.’: Input/output error
total 0

But seem that I can’t recover :confused:

Does this help ?

edit: i will try the rename.


#13

I expect you’ll need to restart your mount after renaming/removing the directory called ‘.’


#14
root@0e7d37db52c2:/t5/Anime# rclone --config=/config/rclone.conf  lsd gd-crypt:Anime
          -1 2018-03-13 14:11:48        -1 1
          -1 2017-11-28 05:23:51        -1 Dragon Ball Z
root@0e7d37db52c2:/t5/Anime# ll
ls: reading directory '.': Input/output error
total 0
root@0e7d37db52c2:/t5/Anime#

Will try to remount now.


#15

Thanks !!! It does work after a remove, move, and remount :heart_eyes::heart_eyes::heart_eyes:

Again, sorry for the confusion, I really was running crasy.


#16

No worries. A directory or file called ‘.’ or ‘…’ will really confuse rclone mount - I’ve made an issue for a fix.