From 8b6829b906d36306866e619df7703b471310e960 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sat, 7 Mar 2026 21:43:04 +0100 Subject: [PATCH] ignore sysctl permission problems (likely in containers) --- cmdeploy/src/cmdeploy/dovecot/deployer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmdeploy/src/cmdeploy/dovecot/deployer.py b/cmdeploy/src/cmdeploy/dovecot/deployer.py index 2e9bf5b6..ad4c7c1d 100644 --- a/cmdeploy/src/cmdeploy/dovecot/deployer.py +++ b/cmdeploy/src/cmdeploy/dovecot/deployer.py @@ -141,11 +141,15 @@ def _configure_dovecot(config: Config, debug: bool = False) -> (bool, bool): # Skip updating limits if already sufficient # (enables running in incus containers where sysctl readonly) continue + # in containers the following can fail see also + # https://docs.pyinfra.com/en/3.x/arguments.html#operation-meta-callbacks server.sysctl( name=f"Change {key}", key=key, value=65535, persist=True, + _ignore_errors=True, + _continue_on_error=True, ) timezone_env = files.line(