Roberto Trevisi - 2025-08-14

Hi, when mounting a ssd encrypted with veracrypt in ubuntu 24.04 I have the following alerts:

# veracrypt /dev/sda2 /mnt/crucial

** (veracrypt:18207): WARNING **: 19:02:42.514: Unable to connect to dbus: The connection is closed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:02:42.627: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:02:42.627: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:02:42.627: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:03:11.816: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:03:11.816: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:03:11.816: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:03:13.685: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:03:13.685: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:18207): GLib-GIO-CRITICAL **: 19:03:13.685: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

Then the partition is mounted and, as far as I did, it worked but, the same errors happens even if I
only want to display veracrypt version:

# veracrypt --version

** (veracrypt:52318): WARNING **: 21:10:33.650: Unable to connect to dbus: The connection is closed

(veracrypt:52318): GLib-GIO-CRITICAL **: 21:10:34.235: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:52318): GLib-GIO-CRITICAL **: 21:10:34.235: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(veracrypt:52318): GLib-GIO-CRITICAL **: 21:10:34.235: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

dbus correctly activates without errors.

On a second ubuntu 24.04 on another pc with the same ssd there are no error messages

Any idea on how to solve ?