Backup randomly stops

Hi again,

the problem is more or less a bug in udisks2 in the Debian packages that overload the DBus.

But anyway can you please try this solution.

Code:
     my ($code, $timeout) = @_;

     my $bus = Net::DBus->system();
+    my $con = $bus->get_connection;
     my $reactor = Net::DBus::Reactor->main();

+    # If DBus is busy, the connection will be refused, so we'll try again.
+    for (my $i = 0; (0 == $con->is_connected()) || ($i < 5); $i++) {
+       $bus = Net::DBus->system();
+       $con = $bus->get_connection;
+    }
 
Hello,

thank you for getting back to this.
I've applied the patch as pasted below :

Perl:
...
sub systemd_call($;$) {
    my ($code, $timeout) = @_;

    my $bus = Net::DBus->system();
    my $con = $bus->get_connection;
    my $reactor = Net::DBus::Reactor->main();

    # If DBus is busy, the connection will be refused, so we'll try again.
    for (my $i = 0; (0 == $con->is_connected()) || ($i < 5); $i++) {
       $bus = Net::DBus->system();
       $con = $bus->get_connection;
    }

    my $service = $bus->get_service('org.freedesktop.systemd1');
...

Will report back
 
Once the above patch was applied migrations caused no further problems. A quick test of backups also caused no problems.
However - we currently do not have the same test setup (with 40 big VMs) that we had before. We tested with ~5 VMs and saw no issues.
Can we expect this patch to make its way into a release & if that is the case could you inform us about the version number once it made its way in?
 
I think yes and if so sure I will inform you.
 
  • Like
Reactions: abien