handyman5 / acd_fuse

FUSE filesystem driver for Amazon Cloud Drive
Other
186 stars 23 forks source link

400:Bad Request when touching a file #20

Open karloluiten opened 9 years ago

karloluiten commented 9 years ago

I did touch 999. What debug gives me:

LOOKUP /999
getattr /999
PyAmazonCloudDriveError: https://www.amazon.com/clouddrive/api/?ContentType=JSON&populatePath=true&path=%2F999&Operation=getInfoByPath&customerId=*&_=1431015393 {'X-amzn-sessionid': '*'} 
   unique: 19, error: -2 (No such file or directory), outsize: 16
unique: 20, opcode: CREATE (35), nodeid: 1, insize: 60, pid: 24873
create flags: 0x8841 /999 0100664 umask=0002
   create[0] flags: 0x8841 /999
getattr /999
   NODEID: 4
   unique: 20, success, outsize: 160
unique: 21, opcode: FLUSH (25), nodeid: 4, insize: 64, pid: 24873
flush[0]
   unique: 21, error: -2 (No such file or directory), outsize: 16
unique: 22, opcode: SETATTR (4), nodeid: 4, insize: 128, pid: 24873
utime /999 1431015394 1431015394
getattr /999
   unique: 22, success, outsize: 120
unique: 23, opcode: FLUSH (25), nodeid: 4, insize: 64, pid: 24873
flush[0]
   unique: 23, error: -2 (No such file or directory), outsize: 16
unique: 24, opcode: RELEASE (18), nodeid: 4, insize: 64, pid: 0
release[0] flags: 0x8801
   unique: 24, success, outsize: 16

On the CLI I see: touch: failed to close ‘999’: No such file or directory.

Happens on all files. When I remount the mount, it appears again. Who has an idea? I took the latest version from git :)

karloluiten commented 9 years ago

Mounting works fine, ls works fine, rm works fine, just touching a file is problematic :)

karloluiten commented 9 years ago

Amazing stuff. It seems just looking up the file info AFTER placing a file there is failing.

18:57:06 k@klu-server:~/AMAZON$ mkdir AAA 18:57:10 k@klu-server:~/AMAZON$ touch BBB touch: failed to close ‘BBB’: No such file or directory 18:57:13 1 k@klu-server:~/AMAZON$ ls AAA/ BBB RecycleBin/ 18:57:14 k@klu-server:~/AMAZON$ mkdir CCC 18:57:19 k@klu-server:~/AMAZON$ ls AAA/ BBB CCC/ RecycleBin/

tentious commented 9 years ago

Same problem here. See issue https://github.com/handyman5/acd_fuse/issues/18