Can't open a Password Safe file in R/W mode

Hi,
Having a problem on Linux only. My Cryptomator Vault contains a file which is opened Password Safe. When I try to open it on my Ubuntu 18.04 box, it complains that the file is locked and therefore can only be opened in read only mode (See screenshot). Opening the same Vault on Windows 7 and using the same app to open the file does not have this problem, so I’m thinking the problem is specific to the Ubuntu version of Cryptomator. This has been the case for several versions (I started on 1.4.2 and I am now on 1.4.10).

I haven’t had a problem with other files or apps, so possibly the problem is with Password Safe but that works fine with files which aren’t within the Vault, so I don’t think that’s it.

See the screenshot of what I see when the app attempts to open the password file in R/W mode.
Screenshot%20from%202019-06-08%2016-25-43

I have just tried upgrading Password Safe from 1.04 to the latest for Ubuntu which is 1.8.1, made no difference.

I’m doing this with Cryptomator in Debug mode and using the FUSE volume type. I’ve looked in the log file, but there are no errors to be seen. See the log snippet:

17:24:20.089 [Thread-2190] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.089 [Thread-2190] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.089 [Thread-2190] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.089 [Thread-2190] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr /password.psafe3 (lastModifiedTime: 2019-06-07T16:41:46Z, lastAccessTime: 2019-06-08T13:12:13.599603Z, creationTime: 2019-06-07T16:41:46Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 73560, fileKey: (dev=10303,ino=7079318))
17:24:20.089 [Thread-2190] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.089 [Thread-2190] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.089 [Thread-2190] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.170 [Thread-2191] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.170 [Thread-2191] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.170 [Thread-2191] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.170 [Thread-2191] TRACE o.c.frontend.fuse.ReadOnlyAdapter - open /password.psafe3 (0)
17:24:20.171 [Thread-2191] TRACE o.c.cryptofs.fh.OpenCryptoFile - First channel for this openFile. Initializing file size...
17:24:20.171 [Thread-2191] TRACE o.c.frontend.fuse.OpenFileFactory - Opening 102 OpenFile{path=/password.psafe3, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@49df4200}
17:24:20.171 [Thread-2191] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.171 [Thread-2191] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.171 [Thread-2191] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.171 [Thread-2192] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.171 [Thread-2192] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.171 [Thread-2192] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.171 [Thread-2192] TRACE o.cryptomator.frontend.fuse.OpenFile - Attempting to read 0-16384:
17:24:20.172 [Thread-2192] TRACE o.c.cryptofs.fh.FileHeaderLoader - Reading file header from /home/alex/<address>/<vault_name>/MySecrets/d/R3/<encrypted_folder_name>/<encrypted_file_name>
17:24:20.172 [Thread-2192] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 0-4096
17:24:20.172 [Thread-2192] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 4096-8192
17:24:20.173 [Thread-2192] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 8192-12288
17:24:20.173 [Thread-2192] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 12288-16384
17:24:20.173 [Thread-2192] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.173 [Thread-2192] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.173 [Thread-2192] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.173 [Thread-2193] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.173 [Thread-2193] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.173 [Thread-2193] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.173 [Thread-2193] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr /password.psafe3 (lastModifiedTime: 2019-06-07T16:41:46Z, lastAccessTime: 2019-06-08T16:24:20.173508Z, creationTime: 2019-06-07T16:41:46Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 73560, fileKey: (dev=10303,ino=7079318))
17:24:20.173 [Thread-2193] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.173 [Thread-2193] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.173 [Thread-2193] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.173 [Thread-2194] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.174 [Thread-2194] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.174 [Thread-2194] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.174 [Thread-2194] TRACE o.cryptomator.frontend.fuse.OpenFile - Attempting to read 69632-73728:
17:24:20.174 [Thread-2194] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 69632-73560
17:24:20.174 [Thread-2194] TRACE o.cryptomator.frontend.fuse.OpenFile - Reached EOF
17:24:20.174 [Thread-2194] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.174 [Thread-2194] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.174 [Thread-2194] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.175 [Thread-2195] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.175 [Thread-2195] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.175 [Thread-2195] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.175 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Attempting to read 16384-49152:
17:24:20.175 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 16384-20480
17:24:20.175 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 20480-24576
17:24:20.175 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 24576-28672
17:24:20.175 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 28672-32768
17:24:20.176 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 32768-36864
17:24:20.176 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 36864-40960
17:24:20.176 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 40960-45056
17:24:20.176 [Thread-2195] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 45056-49152
17:24:20.176 [Thread-2195] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.176 [Thread-2195] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.176 [Thread-2195] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.178 [Thread-2196] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.178 [Thread-2196] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.178 [Thread-2196] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.178 [Thread-2196] TRACE o.cryptomator.frontend.fuse.OpenFile - Attempting to read 49152-69632:
17:24:20.178 [Thread-2196] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 49152-53248
17:24:20.178 [Thread-2196] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 53248-57344
17:24:20.178 [Thread-2196] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 57344-61440
17:24:20.178 [Thread-2196] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 61440-65536
17:24:20.178 [Thread-2196] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 65536-69632
17:24:20.178 [Thread-2196] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.178 [Thread-2196] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.178 [Thread-2196] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.183 [Thread-2197] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.183 [Thread-2197] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.183 [Thread-2197] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.184 [Thread-2197] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr /password.psafe3 (lastModifiedTime: 2019-06-07T16:41:46Z, lastAccessTime: 2019-06-08T16:24:20.184168Z, creationTime: 2019-06-07T16:41:46Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 73560, fileKey: (dev=10303,ino=7079318))
17:24:20.184 [Thread-2197] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.184 [Thread-2197] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.184 [Thread-2197] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.185 [Thread-2198] TRACE o.c.frontend.fuse.ReadWriteAdapter - flush /password.psafe3
17:24:20.185 [Thread-2199] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.185 [Thread-2199] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.185 [Thread-2199] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.185 [Thread-2200] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.185 [Thread-2199] TRACE o.c.frontend.fuse.ReadOnlyAdapter - release /password.psafe3 (102)
17:24:20.185 [Thread-2200] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.185 [Thread-2200] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.185 [Thread-2199] TRACE o.c.frontend.fuse.OpenFileFactory - Releasing 102 OpenFile{path=/password.psafe3, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@49df4200}
17:24:20.186 [Thread-2199] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.186 [Thread-2199] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.186 [Thread-2199] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.186 [Thread-2200] TRACE o.c.frontend.fuse.ReadOnlyAdapter - open /password.psafe3 (0)
17:24:20.186 [Thread-2200] TRACE o.c.cryptofs.fh.OpenCryptoFile - First channel for this openFile. Initializing file size...
17:24:20.186 [Thread-2200] TRACE o.c.frontend.fuse.OpenFileFactory - Opening 103 OpenFile{path=/password.psafe3, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@ed16568}
17:24:20.186 [Thread-2200] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.186 [Thread-2200] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.186 [Thread-2200] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.186 [Thread-2201] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.187 [Thread-2201] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.187 [Thread-2201] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.187 [Thread-2201] TRACE o.cryptomator.frontend.fuse.OpenFile - Attempting to read 0-16384:
17:24:20.187 [Thread-2201] TRACE o.c.cryptofs.fh.FileHeaderLoader - Reading file header from /home/alex/<address>/SecretSquirrel/MySecrets/d/R3/<encrypted_folder_name>/<encrypted_file_name>
17:24:20.187 [Thread-2201] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 0-4096
17:24:20.187 [Thread-2201] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 4096-8192
17:24:20.187 [Thread-2201] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 8192-12288
17:24:20.187 [Thread-2201] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 12288-16384
17:24:20.187 [Thread-2201] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.187 [Thread-2201] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.187 [Thread-2201] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.188 [Thread-2202] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.188 [Thread-2202] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.188 [Thread-2202] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.188 [Thread-2202] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr /password.psafe3 (lastModifiedTime: 2019-06-07T16:41:46Z, lastAccessTime: 2019-06-08T16:24:20.188417Z, creationTime: 2019-06-07T16:41:46Z, isRegularFile: true, isDirectory: false, isSymbolicLink: false, isOther: false, size: 73560, fileKey: (dev=10303,ino=7079318))
17:24:20.188 [Thread-2202] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.188 [Thread-2202] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.188 [Thread-2202] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.188 [Thread-2203] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.188 [Thread-2203] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.188 [Thread-2203] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.188 [Thread-2203] TRACE o.cryptomator.frontend.fuse.OpenFile - Attempting to read 69632-73728:
17:24:20.189 [Thread-2203] TRACE o.cryptomator.frontend.fuse.OpenFile - Reading 69632-73560
17:24:20.189 [Thread-2203] TRACE o.cryptomator.frontend.fuse.OpenFile - Reached EOF
17:24:20.189 [Thread-2203] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.189 [Thread-2203] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.189 [Thread-2203] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'
17:24:20.189 [Thread-2204] TRACE o.c.frontend.fuse.ReadWriteAdapter - flush /password.psafe3
17:24:20.189 [Thread-2205] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[]'
17:24:20.190 [Thread-2205] TRACE o.c.f.fuse.locks.PathRLockImpl - Acquired read path lock for '[, password.psafe3]'
17:24:20.190 [Thread-2205] TRACE o.c.f.fuse.locks.DataRLockImpl - Acquired read data lock for '[, password.psafe3]'
17:24:20.190 [Thread-2205] TRACE o.c.frontend.fuse.ReadOnlyAdapter - release /password.psafe3 (103)
17:24:20.190 [Thread-2205] TRACE o.c.frontend.fuse.OpenFileFactory - Releasing 103 OpenFile{path=/password.psafe3, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@ed16568}
17:24:20.190 [Thread-2205] TRACE o.c.f.fuse.locks.DataRLockImpl - Released read data lock for '[, password.psafe3]'
17:24:20.190 [Thread-2205] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[, password.psafe3]'
17:24:20.190 [Thread-2205] TRACE o.c.f.fuse.locks.PathRLockImpl - Released read path lock for '[]'

Any help on this topic would be appreciated!

Thanks,
Alex

Turns out this WAS a problem with Password Safe. It apparently uses a .plk file to check whether the password file was locked by another user (or, me but on a different computer). So deleting that lock file fixed the problem! Oh well, at least I’ve learned more about how all this works.

1 Like