GoCryptFS/Problembehebung: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
K Textersetzung - „ “ durch „ “ |
||
| Zeile 2: | Zeile 2: | ||
== Corrupt Block == | == Corrupt Block == | ||
Message in the logs | Message in the logs | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=12288, length=0</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098 fh292: RMW read failed: 5=input/output error</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=12288, length=0</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=12288, length=0</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098 fh28: RMW read failed: 5=input/output error</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failed</code> | ||
<code>Feb | <code>Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192</code> | ||
I already run fsck on the disk. How I can detect what files were affected? There is a file integrity verifier? Could be possible to include in the log more information to detect where the problem is? | I already run fsck on the disk. How I can detect what files were affected? There is a file integrity verifier? Could be possible to include in the log more information to detect where the problem is? | ||
| Zeile 35: | Zeile 35: | ||
==== decode the message ==== | ==== decode the message ==== | ||
<code>ino8004098: doRead: corrupt block #2</code> | <code>ino8004098: doRead: corrupt block #2</code> | ||
<code>^^^^^^^ ^^^^^^^^</code> | |||
<code>the problem affects ciphertext block</code> | |||
<code>the inode number #2 is affected</code> | |||
<code>8004098</code> | |||
It is intentional that no file name is logged, as this could leak information. But you can find the file using the inode number: Use | It is intentional that no file name is logged, as this could leak information. But you can find the file using the inode number: Use | ||
<code>find . -inum 8004098</code> | <code>find . -inum 8004098</code> | ||
| Zeile 44: | Zeile 44: | ||
As for what part of the file is affected, ciphertext blocks are 4096 bytes long, so we have | As for what part of the file is affected, ciphertext blocks are 4096 bytes long, so we have | ||
<code>block #0 = byte | <code>block #0 = byte 0 to 4096</code> | ||
<code>block #1 = byte 4097 to | <code>block #1 = byte 4097 to 8194</code> | ||
<code>block #2 = byte 8195 to 12288 | <code>block #2 = byte 8195 to 12288 <-- this block is corrupt</code> | ||
If you want to check all files, there is no special tool for that yet, but you can just md5sum all your files an see if you get any read errors. In your mounted gocryptfs, you could do this: | If you want to check all files, there is no special tool for that yet, but you can just md5sum all your files an see if you get any read errors. In your mounted gocryptfs, you could do this: | ||
<code>find . -type f -print0 | xargs -0 md5sum</code> | <code>find . -type f -print0 | xargs -0 md5sum</code> | ||
Aktuelle Version vom 14. Juni 2026, 00:45 Uhr
Corrupt Block
Message in the logs
Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:46:21 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=12288, length=0Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:46:21 machine gocryptfs[1123]: ino8004098 fh292: RMW read failed: 5=input/output errorFeb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:46:21 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192Feb 8 15:46:21 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:46:21 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:46:21 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=12288, length=0Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=12288, length=0Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:48:11 machine gocryptfs[1123]: ino8004098 fh28: RMW read failed: 5=input/output errorFeb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192Feb 8 15:48:11 machine gocryptfs[1123]: DecryptBlock: cipher: message authentication failed, len=560Feb 8 15:48:11 machine gocryptfs[1123]: ino8004098: doRead: corrupt block #2: cipher: message authentication failedFeb 8 15:48:11 machine gocryptfs[1123]: ino8004098: Read: returning EIO, offset=4096, length=8192
I already run fsck on the disk. How I can detect what files were affected? There is a file integrity verifier? Could be possible to include in the log more information to detect where the problem is?
The test was updated successfully, but these errors were encountered.
decode the message
ino8004098: doRead: corrupt block #2^^^^^^^ ^^^^^^^^the problem affects ciphertext blockthe inode number #2 is affected8004098
It is intentional that no file name is logged, as this could leak information. But you can find the file using the inode number: Use
find . -inum 8004098
in your mounted gocryptfs filesystem, and you should get the file name.
As for what part of the file is affected, ciphertext blocks are 4096 bytes long, so we have
block #0 = byte 0 to 4096block #1 = byte 4097 to 8194block #2 = byte 8195 to 12288 <-- this block is corrupt
If you want to check all files, there is no special tool for that yet, but you can just md5sum all your files an see if you get any read errors. In your mounted gocryptfs, you could do this:
find . -type f -print0 | xargs -0 md5sum