acd_cli icon indicating copy to clipboard operation
acd_cli copied to clipboard

FUSE hangs when mounted through /etc/fstab

Open philipp-spiess opened this issue 8 years ago • 5 comments

I experience hangs when mounting the FUSE drive through /etc/fstab. I tried the exact same arguments in a regular shell in the foreground and all works perfectly. Here's what I do:

acd_cli mount -fg --modules="subdir,subdir=/Folder" /mount/point

When I do the same via an /etc/fstab config, the mount will start to hang at some point and will require fusermount -u to free it again.

#!/bin/sh
acd_cli mount --modules="subdir,subdir=/Folder" $1

#/etc/fstab
/script/to/acd_mount /mount/point fuse _netdev 0 0

After hanging, accessing the file system looks like this:

ls: cannot access /mount/point: Bad address

This happens when I run a separate upload script over-night that uses acd_cli upload. I access the FUSE drive in this script to find out if the file is already uploaded or not.

Here are the interesting lines (from `acdcli.acd_fuse`) in the log file
17-02-06 22:49:42.197 [DEBUG] [acdcli.acd_fuse] - -> init / ()
17-02-06 22:49:42.197 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-06 22:49:42.205 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-06 22:49:45.476 [DEBUG] [acdcli.acd_fuse] -  opendir /Folder/ ()
17-02-06 22:49:45.476 [DEBUG] [acdcli.acd_fuse] -  readdir /Folder/ (0,)
17-02-06 22:49:45.477 [DEBUG] [acdcli.acd_fuse] -  releasedir /Folder/ (0,)
17-02-06 22:49:45.477 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-06 22:49:45.480 [DEBUG] [acdcli.acd_fuse] -  opendir /Folder/ ()
17-02-06 22:49:45.480 [DEBUG] [acdcli.acd_fuse] -  readdir /Folder/ (0,)
17-02-06 22:49:45.481 [DEBUG] [acdcli.acd_fuse] -  releasedir /Folder/ (0,)
17-02-06 22:49:45.481 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 00:18:01.271 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 00:59:58.498 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:11:30.108 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:30.108 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:30.108 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:30.109 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:30.112 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:30.112 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:30.112 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:30.118 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:30.118 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:30.118 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:30.203 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:30.203 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:30.203 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/rY4tmgiVyikLUvz1yPwKe3mR (None,)
17-02-07 01:11:30.205 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (None,)
17-02-07 01:11:30.206 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:30.206 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:30.206 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:30.207 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:30.208 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:30.208 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:30.213 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:30.213 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:30.214 [DEBUG] [acdcli.acd_fuse] -  open /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i ('0x8002',)
17-02-07 01:11:30.271 [DEBUG] [acdcli.acd_fuse] -  read /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (4096, 0, 2)
17-02-07 01:11:32.631 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/rY4tmgiVyikLUvz1yPwKe3mR (None,)
17-02-07 01:11:32.632 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (None,)
17-02-07 01:11:32.633 [DEBUG] [acdcli.acd_fuse] -  flush /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (2,)
17-02-07 01:11:32.633 [DEBUG] [acdcli.acd_fuse] -  flush /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (2,)
17-02-07 01:11:32.633 [DEBUG] [acdcli.acd_fuse] -  release /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (2,)
17-02-07 01:11:32.633 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:11:32.634 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:32.634 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:32.634 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:32.635 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:32.639 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:32.640 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:32.644 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:32.644 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:32.644 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:11:34.260 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:34.261 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:34.261 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:34.261 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:11:36.871 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:36.871 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:36.871 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:36.871 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:36.918 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:36.918 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:36.918 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:36.920 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:36.920 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:36.921 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/rY4tmgiVyikLUvz1yPwKe3mR (None,)
17-02-07 01:11:36.922 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (None,)
17-02-07 01:11:36.923 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:36.924 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:36.924 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:36.924 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:36.925 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:36.926 [DEBUG] [acdcli.acd_fuse] -  open /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i ('0x8002',)
17-02-07 01:11:36.928 [DEBUG] [acdcli.acd_fuse] -  flush /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (3,)
17-02-07 01:11:36.928 [DEBUG] [acdcli.acd_fuse] -  flush /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (3,)
17-02-07 01:11:36.928 [DEBUG] [acdcli.acd_fuse] -  release /Folder/rY4tmgiVyikLUvz1yPwKe3mR/-cRkfVPPAlhiVggtZ4xl3V1i (3,)
17-02-07 01:11:36.928 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('system.posix_acl_access',)
17-02-07 01:11:36.928 [DEBUG] [acdcli.acd_fuse] -  getxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes',)
17-02-07 01:11:36.929 [DEBUG] [acdcli.acd_fuse] -  setxattr /Folder/ ('user.org.netatalk.has-Extended-Attributes', b'yes\x00', 0)
17-02-07 01:11:36.929 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:36.929 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/KYjsFSBTNDABvm5ucWDbsZJd (None,)
17-02-07 01:11:36.930 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:17:16.596 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:28:07.829 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r (None,)
17-02-07 01:28:07.831 [DEBUG] [acdcli.acd_fuse] -  opendir /Folder/EcEgtJ95FAcUmMq705fBw4,r ()
17-02-07 01:28:07.833 [DEBUG] [acdcli.acd_fuse] -  readdir /Folder/EcEgtJ95FAcUmMq705fBw4,r (0,)
17-02-07 01:28:07.835 [DEBUG] [acdcli.acd_fuse] -  releasedir /Folder/EcEgtJ95FAcUmMq705fBw4,r (0,)
17-02-07 01:28:07.836 [DEBUG] [acdcli.acd_fuse] - -> getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r (None,)
17-02-07 01:28:07.837 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/G1tXKcqyrwJkiQmpFGqPmiSK (None,)
17-02-07 01:28:07.840 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/GldI0L2g0M2jn4pqLBxvjz96 (None,)
17-02-07 01:28:07.842 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/RP1FcBXFC4IjtGX4ErGreB8guwjFdbM6jUPD82lpD2zt9, (None,)
17-02-07 01:28:07.844 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/WyYywYfdbAaVRiS,uxc9BebJ (None,)
17-02-07 01:28:07.846 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/Xlv1fnpNR3D4PrA9hZmIxrVn (None,)
17-02-07 01:28:07.847 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/YF6e-x9X6hLmXvOVYOg6aa4lcRfGEtcMr4chO8vxcP8Al- (None,)
17-02-07 01:28:07.849 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/ZOLb2vH5O7qIwO4VXnk-Pcwu (None,)
17-02-07 01:28:07.850 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/bJ8d2tvWIOHpR9FukCvUx6Wd (None,)
17-02-07 01:28:07.852 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/byR7Wnl5GnxE7NOtddzoKODz (None,)
17-02-07 01:28:07.853 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/bzc0jOzb227KzFgq2VOlrOAK (None,)
17-02-07 01:28:07.855 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/cywK8oGCDfz54ntHQhMzaAo-gG8GIargRCNx5gpd5meUp- (None,)
17-02-07 01:28:07.856 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/czwhxjXwwyMduOMtwtfWO6e7bJ4rtEfpqV8x9VqWQWehl, (None,)
17-02-07 01:28:07.858 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/dKpGC0dpxG1o5mFlNssYZfMV (None,)
17-02-07 01:28:07.859 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/dc2Qoqi9teEnjW6CcXAl6gz6u3qhf4QQ8y5L-Rh7ey1z6, (None,)
17-02-07 01:28:07.860 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/eR46TFyCMmxj7SHZQGzb3ot7 (None,)
17-02-07 01:28:07.862 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/eoOhblCnbnhpOHSKKrIGYhNA5pT19VLAK,pLpHvcKHCxR- (None,)
17-02-07 01:28:07.863 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/ggl,szYOMeT8HCQ4lcej8w0Z (None,)
17-02-07 01:28:07.865 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/hp4XnFXsNIfMHdr-pFKrBvngPlWIc,,Y7eBTHutLBJoSY1 (None,)
17-02-07 01:28:07.866 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/iiS1zzE-5,gqoS6FKVcns8To (None,)
17-02-07 01:28:07.867 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/lsHZSENojML14wMCEL-yktHJTEnmZQ0jXcwOXJY7e0X580 (None,)
17-02-07 01:28:07.868 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/nk3RGlEx3w2k09HQA814JUXW (None,)
17-02-07 01:28:07.870 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/oU3eWwixc4C,4bNqihZAPsnh (None,)
17-02-07 01:28:07.871 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/p95sqJNafSLsIo,Ip,ux-Zhz (None,)
17-02-07 01:28:07.872 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/pSIXN0ooYkRFBjGLYgGVjjgAABHMNa8X8IA,NnmEosMid0 (None,)
17-02-07 01:28:07.873 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/qZz6LtkYY1vQtOlb1NsWtQnr811c6t8DagkKrU3zBr1nL1 (None,)
17-02-07 01:28:07.874 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/tlCC-G47LcCyLfTRV1OOIjkr3xtAeR4ytwbUmZ1j547Dx, (None,)
17-02-07 01:28:07.876 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/vNsExvKsDb-XUR15fkqqFkrJ8g,pgmwcYwD1qmrJ,q3881 (None,)
17-02-07 01:28:07.877 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/xG3hFwr5gP9IF1wOuwj7x8-OZyxp4AtEKD8H,26wP9hdw, (None,)
17-02-07 01:28:07.878 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/yAqD7ja6brsrF3Ms,jTjPWBRG,Kj0Cy8aWWRjwq0-bLn7, (None,)
17-02-07 01:28:07.879 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/ycr2jD9avOn2No5wLeSfRJE8 (None,)
17-02-07 01:28:07.880 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/zIQzXXvdd,bKzrSx4eIr5aI8i,tfFhgr9FmVRPTAsLa6T0 (None,)
17-02-07 01:28:07.882 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/EcEgtJ95FAcUmMq705fBw4,r/zLmqDvqs6I36l42VNhjHz,UK (None,)
17-02-07 01:28:07.883 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 01:46:46.886 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 02:16:04.976 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 02:45:28.552 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 03:14:50.204 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 03:43:12.443 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 04:12:33.249 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 04:40:55.191 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 04:41:00.581 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:09:22.737 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:38:41.495 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:38:59.183 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:39:04.462 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:39:08.770 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:42:13.184 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:42:18.451 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:46:04.973 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:49:47.713 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:52:53.943 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:56:13.816 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 05:59:48.073 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:03:58.416 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:06:57.446 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:09:58.679 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:12:55.919 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:16:15.209 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:19:18.455 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:19:23.612 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:33:49.301 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 06:49:53.847 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 07:03:56.757 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 07:18:15.868 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 07:32:42.604 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 07:47:46.833 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 07:47:46.835 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:02:00.615 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:02:00.615 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:16:32.654 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:16:32.654 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:31:22.788 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:31:22.788 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:46:06.836 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 08:46:06.837 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:00:44.883 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:00:44.883 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:12:44.385 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:12:44.385 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:27:08.281 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:27:08.281 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:40:58.197 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 09:40:58.198 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 10:00:05.743 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 10:00:05.744 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 19:54:29.412 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 19:54:29.413 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 19:54:29.417 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 19:54:29.418 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 19:54:29.428 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-07 19:54:29.429 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:19:57.640 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:19:57.641 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:24:19.374 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:24:19.374 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:45:34.757 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:45:34.758 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:28.812 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:28.813 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:28.813 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:28.814 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:28.815 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:28.815 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:49:29.661 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:54:21.514 [DEBUG] [acdcli.acd_fuse] -  getattr /Folder/ (None,)
17-02-08 00:54:21.515 [DEBUG] [acdcli.acd_fuse] - 

Edit: My upload scripts uses acd_cli resolve to see if the file exists and encfsctl decode to get the prettier filename since the data there is encoded using encfs. The latter probably calls ls on /Folder so that's why the log is full with that and that's why my script errors with something like this:

directory /mount/point-decrypted does not exist.
Unable to initialize encrypted filesystem - check path.

philipp-spiess avatar Feb 07 '17 23:02 philipp-spiess

Hi,

did you export ACD_CLI_CACHE_PATH and ACD_CLI_SETTINGS_PATH in the script or are you using the default? If you get a bad address that's usually going together with a bad cache...

I've seen it quite offen so my script looks something along those lines:

export ACD_CLI_CACHE_PATH=/wherever export ACD_CLI_SETTINGS_PATH=/wherever acdcli cc acdcli sync acdcli psync / acdcli mount ....

The psync is needed because the root node cannot be found after a full sync.

Cu

Grimeton avatar Feb 08 '17 01:02 Grimeton

@Grimeton Thank you for your input I can try putting those env vars to both the fstab script and the upload script. Just a quick question, is the cache path the same as the settings path? So point both to/home/user/.cache/acd_cli? :)

philipp-spiess avatar Feb 08 '17 08:02 philipp-spiess

@philipp-spiess you can use the same path for both. Not a problem. I tend to create a subfolder per mount like:

Mount point /mnt/foo Acdcli path: /mnt/.foo

Pro tip: put the acdcli path on a RAM disk (tmpfs) and see an extreme speed up. (/run looks promising).

And there's an error in my previous post. It should be

acdcli sync --full

Instead of

acdcli sync

And sorry for the weird formatting... sent from my phone.

Cu

Grimeton avatar Feb 08 '17 09:02 Grimeton

@Grimeton your environment variable trick did not work unfortunately. The same behaviour still occurs.

philipp-spiess avatar Feb 10 '17 09:02 philipp-spiess

Then you're doing something wrong.

What OS? BSD? Linux? How does the fstab entry look like?

this is my fstab entry:

acdmount /mnt/amazon fuse _netdev 0 0

And a sniplet from my acdmount:

#!/bin/bash

export ACD_CLI_CACHE_PATH="/dev/null"
export ACD_CLI_SETTINGS_PATH="/dev/null"
mount_options="";
sync_options="";
clear_cache=0;

# other mount points
if [[ ...]; then 

elif [[ "$1" =~ /mnt/amazon* ]]; then

	[[ -d /run/acdcli ]] || mkdir /run/acdcli || exit 1;
	[[ -d /run/acdcli/amazon ]] || mkdir /run/acdcli/amazon || exit 2;
	for i in /run/acdcli/amazon/*; do rm "$i"; done
	cp -r /mnt/.amazon/* /run/acdcli/amazon/ || exit 3;
	export ACD_CLI_CACHE_PATH=/run/acdcli/amazon/
	export ACD_CLI_SETTINGS_PATH=/run/acdcli/amazon/
	mount_options="-ao --uid 112 "$1""
	clear_cache=1;
	sync_options="psync /"

else

	exit 1;
fi

if [[ $clear_cache -gt 0 ]]; then
	/usr/local/bin/acdcli cc
	/usr/local/bin/acdcli sync --full
fi

/usr/local/bin/acdcli $sync_options
/usr/local/bin/acdcli mount $mount_options

And inside /mnt/.amazon/ I keep the files needed on the tmpfs located folder in /run that I copy over at mount. It looks like this:

root@x:/mnt/.amazon# ls
acd_client.ini  acd_cli.ini  cache.ini  endpoint_data  fuse.ini  oauth_data
root@x:/mnt/.amazon#

And the ini files:

# for i in *.ini; do echo -e "$i\n"; cat $i; done
acd_client.ini

[endpoints]
filename = endpoint_data
validity_duration = 86400
chunk_retries = 3
connection_timeout = 60
idle_timeout = 120

acd_cli.ini

[download]
keep_corrupt = False
keep_incomplete = True
timeout_wait = 5

cache.ini

[sqlite]
filename = nodes.db
busy_timeout = 3000
journal_mode = wal

fuse.ini

[read]
open_chunk_limit = 20
timeout = 10

[write]
buffer_size = 64
timeout = 60

Is there anyting in your demsg, syslog or another debugging or anything else log?

Any messages in the acd_cli.log?

Cu

Grimeton avatar Feb 10 '17 23:02 Grimeton