ALEPH-435 Fix DBUS error when enabling controller#815
Merged
Conversation
Fix Jira ALEPH-435
Dbus error when enabling VM controller org.freedesktop.DBus.Error.ServiceUnknown: The name :1.612 was not provided by any .service files
It seems to occur in some case after the dbus deamon reload it's config
```
dbus-daemon[1415]: [system] Reloaded configuration
```
Generally when doing unattended-upgrade.
A similiar error "Connection closed" happend if the dbus daemon is restarted.
dbus-daemon[1415]: [system] Reloaded configuration
Complete stack trace
```
: Traceback (most recent call last):
: File "/opt/aleph-vm/aleph/vm/orchestrator/views/init.py", line 436, in update_allocations
: await start_persistent_vm(instance_item_hash, pubsub, pool)
: File "/opt/aleph-vm/aleph/vm/orchestrator/run.py", line 264, in start_persistent_vm
: execution = await create_vm_execution(vm_hash=vm_hash, pool=pool, persistent=True)
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: File "/opt/aleph-vm/aleph/vm/orchestrator/run.py", line 60, in create_vm_execution
: execution = await pool.create_a_vm(
: ^^^^^^^^^^^^^^^^^^^^^^^
: File "/opt/aleph-vm/aleph/vm/pool.py", line 147, in create_a_vm
: self.systemd_manager.enable_and_start(execution.controller_service)
: File "/opt/aleph-vm/aleph/vm/systemd.py", line 77, in enable_and_start
: self.enable(service)
: File "/opt/aleph-vm/aleph/vm/systemd.py", line 35, in enable
: self.manager.EnableUnitFiles([service], False, True)
: File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in call
: return self._connection.call_blocking(self._named_service,
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: File "/usr/lib/python3/dist-packages/dbus/connection.py", line 634, in call_blocking
: reply_message = self.send_message_with_reply_and_block(
```
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #815 +/- ##
==========================================
- Coverage 65.27% 65.01% -0.26%
==========================================
Files 85 85
Lines 7685 7729 +44
Branches 664 670 +6
==========================================
+ Hits 5016 5025 +9
- Misses 2460 2493 +33
- Partials 209 211 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
nesitor
approved these changes
Jun 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix Jira ALEPH-435
Dbus error when enabling VM controller org.freedesktop.DBus.Error.ServiceUnknown: The name :1.612 was not provided by any .service files
It seems to occur in some case after the dbus deamon reload it's config
Generally when doing unattended-upgrade.
A similiar error "Connection closed" happend if the dbus daemon is restarted.
dbus-daemon[1415]: [system] Reloaded configuration
Complete stack trace
Explain what problem this PR is resolving
Related ClickUp, GitHub or Jira tickets : ALEPH-XXX
Self proofreading checklist
packaging/MakefileChanges
How to test
sudo systemctl restart dbus.servicee.g. with commands