Error -36 when writing to vault located on WebDAV mount

The problem remains even after updating to 1.4.16!

I’m using macOS Catalina 10.15 (19A583), no matter if WedDAV or FUSE, container ist stored in MagentaCloud.
Every operation is ending in error -36 :weary:

What can I do?

Same as before: Does your log file show any error messages?

Yes, there are error-messages:

...
12:00:27.287 [Thread-61] TRACE o.c.frontend.fuse.ReadWriteAdapter - create /TESTFILE1.pdf with flags [O_RDONLY, O_RDWR, O_CREAT, O_EXCL]
12:00:27.476 [Thread-61] TRACE o.c.cryptofs.fh.FileHeaderHolder - Generating file header for /Volumes/webdav.magentacloud.de/XXXX/XXX/d/K6/...
12:00:27.477 [Thread-61] DEBUG o.c.c.common.ReseedingSecureRandom - Seeding CSPRNG with 55 bytes...
12:00:27.477 [Thread-61] DEBUG o.c.c.common.ReseedingSecureRandom - Seeded CSPRNG.
12:00:27.478 [Thread-61] TRACE o.c.cryptofs.fh.OpenCryptoFile - First channel for this openFile. Initializing file size...
12:00:27.483 [Thread-61] TRACE o.c.frontend.fuse.OpenFileFactory - Opening 1 OpenFile{path=/TESTFILE1.pdf, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@5b6c7980}
12:00:27.484 [Thread-61] TRACE o.c.f.fuse.locks.DataWLockImpl - Released write data lock for '[, TESTFILE1.pdf]'
12:00:27.484 [Thread-61] TRACE o.c.f.fuse.locks.PathWLockImpl - Released write path lock for '[, TESTFILE1.pdf]'
12:00:27.484 [Thread-61] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
12:00:27.484 [Thread-62] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
12:00:27.484 [Thread-62] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, TESTFILE1.pdf]'
12:00:27.485 [Thread-62] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, TESTFILE1.pdf]'
12:00:27.487 [Thread-62] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr /TESTFILE1.pdf (lastModifiedTime: 2019-10-14T10:00:27.482534Z, lastAccessTime: 2019-10-14T10:00:27.487543Z, creationTime: 2019-10-14T10:00:27Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 0, fileKey: (dev=33000002,ino=64))
12:00:27.487 [Thread-62] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, TESTFILE1.pdf]'
12:00:27.488 [Thread-62] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, TESTFILE1.pdf]'
12:00:27.488 [Thread-62] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
12:00:27.488 [Thread-63] TRACE o.c.frontend.fuse.ReadWriteAdapter - flush /TESTFILE1.pdf
12:00:27.488 [Thread-63] TRACE o.c.cryptofs.ch.CleartextFileChannel - org.cryptomator.cryptofs.ch.CleartextFileChannel@5b6c7980 - Writing file header.
12:00:27.493 [Thread-63] ERROR o.c.f.fuse.ReadWriteFileHandler - Flushing file failed.
java.io.IOException: Inappropriate ioctl for device
	at java.base/sun.nio.ch.FileDispatcherImpl.force0(Native Method)
	at java.base/sun.nio.ch.FileDispatcherImpl.force(FileDispatcherImpl.java:82)
	at java.base/sun.nio.ch.FileChannelImpl.force(FileChannelImpl.java:461)
	at org.cryptomator.cryptofs.ch.CleartextFileChannel.forceInternal(CleartextFileChannel.java:216)
	at org.cryptomator.cryptofs.ch.CleartextFileChannel.force(CleartextFileChannel.java:207)
	at org.cryptomator.frontend.fuse.OpenFile.flush(OpenFile.java:102)
	at org.cryptomator.frontend.fuse.ReadWriteFileHandler.flush(ReadWriteFileHandler.java:103)
	at org.cryptomator.frontend.fuse.ReadWriteAdapter.flush(ReadWriteAdapter.java:288)
	at ru.serce.jnrfuse.AbstractFuseFS.lambda$init$6(AbstractFuseFS.java:144)
	at jnr.ffi.provider.jffi.NativeClosureProxy$$impl$$14.invoke(Unknown Source)
12:00:27.493 [Thread-64] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
12:00:27.494 [Thread-64] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, TESTFILE1.pdf]'
12:00:27.494 [Thread-64] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, TESTFILE1.pdf]'
12:00:27.494 [Thread-64] TRACE o.c.frontend.fuse.ReadOnlyAdapter - release /TESTFILE1.pdf (1)
12:00:27.494 [Thread-64] TRACE o.c.frontend.fuse.OpenFileFactory - Releasing 1 OpenFile{path=/TESTFILE1.pdf, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@5b6c7980}
12:00:27.633 [Thread-64] ERROR o.c.f.fuse.ReadOnlyFileHandler - Error closing file.
...

Running macOS 10.15 Catalina, FUSE 3.10.3, Cryptomator 1.4.16.
Local vault works fine, but with a vault in the cloud it doesn’t.
Any further suggestions?

No idea / solution ???

have you checked this?

Yes, this thread was originally involved in that thread and was split and moved here.

Oh, im sorry. Didn’t realise.
I’m afraid I don’t have further ideas atm.

We just opened an issue regarding this: https://github.com/cryptomator/cryptofs/issues/66

This is a bug of Java working on WebDAV mounted volumes under macOS 10.15. Currently we are looking for a workaround, but the actual fix must be done by either Apple or the Java.

If the access is urgent, my first suggestion is: Even thou there is no support for 1.3.x, you can downgrade Cryptomator to version 1.3.5 and install JDK 8. According to this bug report, the access should be possible again.