Unable to update Chatmail Relay

Hello everyone!

I tried to update my Chatmail Relay today after quiet a while (last update done on June 16th 2026).

To have a clean start, I just did a “git clone …/chatmail/relay”, copied my chatmail.ini and some changed .md files for the website in the “./relay”.

When I did a “scripts/cmdeploy test” I ran in this error:

__ test_deployed_state __
[gw3] linux – Python 3.13.5 /relay/venv/bin/python3

remote = <cmdeploy.tests.plugin.Remote object at 0x7f0a1b540b90>

def test_deployed_state(remote):
    try:
        git_hash = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode()
    except Exception:
        git_hash = "unknown\n"
    try:
        git_diff = subprocess.check_output(["git", "diff"]).decode()
    except Exception:
        git_diff = ""
    git_status = [git_hash.strip()]
    for line in git_diff.splitlines():
        git_status.append(line.strip().lower())
    remote_version = []
    for line in remote.iter_output("cat /etc/chatmail-version"):
        print(line)
        remote_version.append(line)
    # assert len(git_status) == len(remote_version)  # for some reason, we only get 11 lines from remote.iter_output()
    for i in range(len(remote_version)):
      assert git_status[i] == remote_version[i], "You have undeployed changes."

E AssertionError: You have undeployed changes.
E assert ‘8a7dcba595b397473b6db7637876f1b79fd22bb5’ == ‘deca1ef2a3eec6aebca3bb5b34e5ebee209567ec’
E
E - deca1ef2a3eec6aebca3bb5b34e5ebee209567ec
E + 8a7dcba595b397473b6db7637876f1b79fd22bb5

cmdeploy/src/cmdeploy/tests/online/test_1_basic.py:317: AssertionError
----------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------
delta.cminstance.url (changed for privacy)
deca1ef2a3eec6aebca3bb5b34e5ebee209567ec
diff --git a/www/src/index.md b/www/src/index.md
index cc8325f..b288824 100644
— a/www/src/index.md
+++ b/www/src/index.md
@@ -11,18 +11,13 @@ for delta chat users. for details how it avoids storing personal information
please see our privacy policy.
{% endif %}

I have no idea why in my “chatmail-version” is more than the version number.

When I (for testing) create a new “chatmail-version” with “8a7dcba595b397473b6db7637876f1b79fd22bb5” in it, the “cmdeploy test” succeeds here but fails with another error later (which is not part of the topic here).

I’ve no clue how to resolve this assertion error correctly. Maybe there’s a Chatmail Relay version I’ve skipped due to the long update interval which bugs me now?

Thanks for every input :slight_smile:

hoiba

Hey everyone!

I’m just too plain stupid. I mistook “cmdeploy test” with a kind of “dry run” for the upgrade. Of course is it just for checking the already running instance. :pensive_face:

I’m managing too many services and having by far not enough sleep. Sorry for my stupidity.

hoiba

In this area, I’m not sure where it’s at in the docs (it’s not on the main “how to do relay things” page) but this test process has the ability to use another relay and do full end-to-end tests between them. It’s used like so:

CHATMAIL_DOMAIN2=other.relay.com scripts/cmdeploy test

It’ll make a slew of temporary accounts (50+) on both servers so use carefully. Takes awhile as the tests are very comprehensive.