Replies: 3 comments 7 replies
-
Have you upgraded Stalwart recently and forgot to follow the upgrading instructions? |
Beta Was this translation helpful? Give feedback.
-
I am experiencing the same error, which appears periodically in the logs : I carefully observed the upgrading instruction for each upgrade. I am unsure how to isolate any broken report (nothing stands out in DMARC or TLS Aggregates). |
Beta Was this translation helpful? Give feedback.
-
Steps to fix this error:
import base64
import sys
def prepend_and_encode(char, base64_string):
# Decode the base64 string
decoded = base64.b64decode(base64_string)
# Prepend the character to the decoded bytes
prepended = char.encode('ascii') + decoded
# Encode the result back to base64
result = base64.b64encode(prepended).decode('ascii')
return result
if __name__ == "__main__":
if len(sys.argv) != 3:
print("Usage: python script.py <ascii_char> <base64_string>")
sys.exit(1)
char = sys.argv[1]
base64_string = sys.argv[2]
if not char.isalpha() or len(char) != 1:
print("Error: First argument must be a single alphabetic character")
sys.exit(1)
try:
result = prepend_and_encode(char, base64_string)
print(result)
except Exception as e:
print(f"Error: {e}")
sys.exit(1)
|
Beta Was this translation helpful? Give feedback.
-
What happened?
I am running two instances of Stalwart on two different servers. For both I use RocksDB. I'm not sure when, but for a few months now it seems that one of my instances has data corruption in the database. Fortunately it has to do with the metrics. I run the enterprise edition and the only thing that does not seem to work are the metric dashboards (opening the metric dashboard also generates the ERROR below).
Don't think I can ever find out what caused it, but I do need to recover from it. Any suggestions?
Data corruption error:
How can we reproduce the problem?
Not sure.
Version
v0.10.x
What database are you using?
RocksDB
What blob storage are you using?
RocksDB
Where is your directory located?
LDAP
What operating system are you using?
Linux
Relevant log output
2024-11-26T21:49:09Z ERROR Data corruption detected (store.data-corruption) causedBy = crates/store/src/write/key.rs:670, key = base64:AAAAAABmj89sAn95aC9gEJA=, causedBy = crates/store/src/dispatch/store.rs:125, causedBy = crates/smtp/src/reporting/scheduler.rs:137, details = Failed to read from store
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions