Thanks for the pointers.
- enable verbose debug logging. see output in original post, no errors
other than 'fuse: writing device: socket is not connected'
- ps ax | grep -i encfs: this is the problem, when the error occurs,
everything is unmounted, the process ends, so no results here: encfs
is gone
- mount | grep -i fuse: Same as above. Everything is automatically
unmounted after this. No mount entries remain
- sysctl: returns 1 while mounted, 0 after it 'crashed'.

Other than the error message 'socket not connected', it's as if the
volume was ejected properly.
Seems cleanly unmounted, no dirty errors, no mount entries remaining,
nothing..

On Jul 7, 9:18 pm, Anatol Pomozov <[email protected]> wrote:
> Hi
>
> On Thu, Jul 7, 2011 at 7:44 AM, Sam Moffatt <[email protected]> wrote:
> > Have you tried attaching a debugger to the process and seeing if it's
> > hitting some weird error case somewhere and terminating/being
> > terminated?
>
> ENOTCONN ("Socket is not connected") is a standard kext error in case if the
> fuse daemon does not respond. It makes me think that encfs daemon is dead at
> the moment you try to do "ls DIR". Are you sure that /var/log/system.log
> does not have any logs related to fuse?
>
> A few pointers that might shed some light:
>  - run encfs with verbose and fuse debug enabled. Add "-v -d" to encfs
> flags.
>  - make sure that encfs daemon is running "ps ax | grep -i encfs"
>  - make sure that the folder is mounted "mount | grep -i fuse"
>  - run "sysctl macfuse.resourceusage.mounts"
>
>
>
>
>
>
>
> On Thu, Jul 7, 2011 at 11:47 PM, Kenny <[email protected]> wrote:
> > > So, I tried all of these things:
>
> > > - Added sleep() between 'touch' commands. Does not help, only makes it
> > > work longer.
> > > - Tried updating EncFS to the latest version: didn't help
> > > - Compiled EncFS on Fuse4x (wasn't sure whether it's a problem in
> > > EncFS or MacFuse) and tried that: didn't help. However, since Fuse4x
> > > is just a fork of MacFuse, it could be in both I guess.
> > > - grepped in the sourcecode of both MacFuse (trunk) and EncFS for the
> > > error message: no results found!
>
> > > I'm stuck here guys, what do I do next?
> > > Where do I look for more logging?
> > > Where does the error come from?
>
> > > Is anyone else here using 64 bit macs? EncFS?
>
> > > thanks,
>
> > > - Kenny
>
> > > On Jun 27, 5:32 pm, Kenny <[email protected]> wrote:
> > >> Hello, I'm still struggling with this, but found a bit more logging
> > >> (still not much I'm afraid) using the -v (verbose) and -d (debug)
> > >> options of both MacFuse and EncFS.
> > >> Any suggestions where I might find more? Or do any of you see any
> > >> fatal errors in this logging?
>
> > >> So, my test script basically just continuously creates files (touch
> > >> command), on a MacFuse drive with the EncFS filesystem.
>
> > >> The test script output:
> > >> ...
> > >> Creating file no 7917
> > >> Creating file no 7918
> > >> Creating file no 7919
> > >> touch: /tmp/mount/random-dir-7/random-file.7919: Socket is not
> > >> connected
>
> > >> Before the error pops up, there is a long time where nothing happens
> > >> and everything seems to hang (timeout?)
>
> > >> Output from MacFuse/Encfs: (encfs lines start with timestamp, MacFuse
> > >> output does not):
> > >> (note that the file with name 7918 worked properly, it fails when
> > >> attempting to create the file with name 7919)
> > >> The ''No such file or directory" seem normal to me, as they also
> > >> appear in all other (correctly created) files.
>
> > >> MKNOD /random-dir-7/random-file.7918
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1: No
> > >> such file or directory
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 13721226668822013149, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >> 16:52:23 (encfs.cpp:258) mknod on /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> 7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1, mode 33188, dev 0
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 13721226668822013149, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >> 16:52:23 (encfs.cpp:134) getattr /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> 7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >>    NODEID: 67926
> > >>    unique: 0, error: 0 (Unknown error: 0), outsize: 152
> > >> unique: 1, opcode: LOOKUP (1), nodeid: 60008, insize: 59
> > >> LOOKUP /random-dir-7/._random-file.7918
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/nxdd5Xs1tCWupzTPBEDilZU26j,vVI3SmgM72IaRCgmGZ1: No
> > >> such file or directory
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 13170079601340108218, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/nxdd5Xs1tCWupzTPBEDilZU26j,vVI3SmgM72IaRCgmGZ1
> > >> 16:52:23 (encfs.cpp:134) getattr /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> nxdd5Xs1tCWupzTPBEDilZU26j,vVI3SmgM72IaRCgmGZ1
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/nxdd5Xs1tCWupzTPBEDilZU26j,vVI3SmgM72IaRCgmGZ1: No
> > >> such file or directory
> > >> 16:52:23 (encfs.cpp:138) getattr error: No such file or directory
> > >>    unique: 1, error: -2 (No such file or directory), outsize: 16
> > >> unique: 0, opcode: GETATTR (3), nodeid: 67926, insize: 40
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 13721226668822013149, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >> 16:52:23 (encfs.cpp:134) getattr /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> 7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >>    unique: 0, error: 0 (Unknown error: 0), outsize: 128
> > >> unique: 1, opcode: OPEN (14), nodeid: 67926, insize: 48
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 13721226668822013149, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >> 16:52:23 (RawFileIO.cpp:129) open call for writable file
> > >> 16:52:23 (RawFileIO.cpp:151) open file with flags 2, result = 4
> > >> 16:52:23 (encfs.cpp:573) encfs_open for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1, flags
> > >> 1
> > >>    unique: 1, error: 0 (Unknown error: 0), outsize: 32
> > >> OPEN[40346368] flags: 0x1 /random-dir-7/random-file.7918
> > >> unique: 0, opcode: FLUSH (25), nodeid: 67926, insize: 64
> > >> FLUSH[40346368]
> > >> 16:52:23 (encfs.cpp:134) flush /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> 7CcwjpnquD-XgwYpu5bSoOxRjP3JOMIrE8gEOReUoXU4H1
> > >> 16:52:23 (RawFileIO.cpp:129) open call for read only file
> > >> 16:52:23 (RawFileIO.cpp:136) using existing file descriptor
> > >>    unique: 0, error: 0 (Unknown error: 0), outsize: 16
> > >> unique: 1, opcode: RELEASE (18), nodeid: 67926, insize: 64
> > >> RELEASE[40346368] flags: 0x1
> > >>    unique: 1, error: 0 (Unknown error: 0), outsize: 16
> > >> unique: 0, opcode: LOOKUP (1), nodeid: 60008, insize: 57
> > >> LOOKUP /random-dir-7/random-file.7919
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-: No
> > >> such file or directory
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 5367271293300729610, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-
> > >> 16:52:23 (encfs.cpp:134) getattr /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-: No
> > >> such file or directory
> > >> 16:52:23 (encfs.cpp:138) getattr error: No such file or directory
> > >>    unique: 0, error: -2 (No such file or directory), outsize: 16
> > >> unique: 1, opcode: LOOKUP (1), nodeid: 60008, insize: 57
> > >> LOOKUP /random-dir-7/random-file.7919
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-: No
> > >> such file or directory
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
> > >> 5367271293300729610, fileIV = 0
> > >> 16:52:23 (DirNode.cpp:781) created FileNode for /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-
> > >> 16:52:23 (encfs.cpp:134) getattr /tmp/data/ocZ1JyZS-ZXhUW,Chp7bssyC/
> > >> jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-: No
> > >> such file or directory
> > >> 16:52:23 (encfs.cpp:138) getattr error: No such file or directory
> > >>    unique: 1, error: -2 (No such file or directory), outsize: 16
> > >> unique: 0, opcode: MKNOD (8), nodeid: 60008, insize: 65
> > >> MKNOD /random-dir-7/random-file.7919
> > >> 16:52:23 (MACFileIO.cpp:67) fs block size = 1024, macBytes = 8,
> > >> randBytes = 0
> > >> 16:52:23 (FileNode.cpp:140) calling setIV on (null)
> > >> 16:52:23 (RawFileIO.cpp:191) getAttr error on /tmp/data/ocZ1JyZS-
> > >> ZXhUW,Chp7bssyC/jmCF1r7QMlbm7xvYpXfY1DnaOhJhp6IZR9DAo2ElO53nh-: No
> > >> such file or directory
> > >> 16:52:23 (CipherFileIO.cpp:105) in setIV, current IV = 0, new IV =
>
> ...
>
> read more »

-- 
You received this message because you are subscribed to the Google Groups 
"MacFUSE" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/macfuse?hl=en.

Reply via email to