Skip to content

Tray: MQTT auto-retry for boot-time network race + visible systemctl … - #85

Merged
imonlinux merged 1 commit into
mainfrom
upstream-core
Oct 3, 2026
Merged

imonlinux merged 1 commit into
mainfrom
upstream-core

Conversation

@imonlinux

@imonlinux imonlinux commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

…failures

Two related issues on workstation installs:

  • At login the tray can start before the network is up; the synchronous connect failed (Errno 101) with no retry, leaving the tray MQTT-dead for the whole session (mute mirroring and state colors silent). Use connect_async + loop_start with reconnect backoff (1-30s) so the connection establishes whenever the network comes up.
  • The service start/stop/restart actions ran systemctl with check=False and no output capture, so failed starts left no trace in the journal. Route them through a helper that logs the return code and stderr.

What does this implement/fix?

Related issue (if applicable):

  • Fixes #

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — documentation
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Checklist

  • The code change is tested and works locally.
  • ./script/lint passes.
  • ./script/tests passes, and tests have been added/updated under tests/ where applicable.

…failures

Two related issues on workstation installs:
- At login the tray can start before the network is up; the synchronous
  connect failed (Errno 101) with no retry, leaving the tray MQTT-dead
  for the whole session (mute mirroring and state colors silent). Use
  connect_async + loop_start with reconnect backoff (1-30s) so the
  connection establishes whenever the network comes up.
- The service start/stop/restart actions ran systemctl with check=False
  and no output capture, so failed starts left no trace in the journal.
  Route them through a helper that logs the return code and stderr.
@github-actions github-actions Bot added the bugfix label Oct 3, 2026
@imonlinux
imonlinux merged commit 98756cd into main Oct 3, 2026
11 of 12 checks passed
@imonlinux
imonlinux deleted the upstream-core branch October 3, 2026 04:44

This branch was successfully deployed

1 active deployment
pr-build — baad839c Deployed Oct 3, 2026 by imonlinux via build-and-push-image #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant