WakeUpDelay doesn't work


#1

macOS 10.13.4
Here is the end of “defaults read com.acrosync.mac.duplicacy”

VerboseLogging = 1;
WakeUpDelay = 120;

}

But when I wake my mac from sleep, I get an immediate error within just a few seconds.

Backup operation returned an error: ERROR Failed to load the Backblaze B2 storage at <…>: Post <…>/b2_authorize_account: dial tcp: lookup api.backblazeb2.com: no such host

Clearly the delay is not working. Am I doing something wrong?


#2

I’ll get you a new build that has more diagnostic logging tomorrow.


#3

Can you try this 2.1.1 beta: https://acrosync.com/duplicacy/duplicacy_gui_osx_2.1.1.dmg?


#4

I’ll test it and report back.


#5

macOS 10.13.4

duplicacy 2.1.1 beta 1

I installed the new beta and rebooted.

Here are my defaults

Moto-Macbook-Air:~ deleted$ defaults read com.acrosync.mac.duplicacy
{
    HideOnStart = 1;
    "Job1.EmailFrom" = "deleted";
    "Job1.EmailServer" = "smtp://smtp.mail.yahoo.com:587";
    "Job1.EmailSubject" = "C MAC Duplicacy Backup";
    "Job1.EmailTo" = "deleted";
    "Job1.EmailUser" = "deleted";
    "Job1.IsScheduled" = 1;
    "Job1.MaxRetries" = 3;
    "Job1.Name" = deleted;
    "Job1.PruneAge1" = 1800;
    "Job1.PruneAge2" = 30;
    "Job1.PruneAge3" = 3;
    "Job1.PruneEnabled" = 1;
    "Job1.PruneInterval2" = 7;
    "Job1.PruneInterval3" = 1;
    "Job1.RateLimit" = 0;
    "Job1.Repository" = "/Users/deleted";
    "Job1.ScheduleDays" = 127;
    "Job1.ScheduleInterval" = 3600;
    "Job1.ScheduleTime" = 3360;
    "Job1.SendEmail" = 1;
    "Job1.SendEmailOnFailure" = 0;
    "Job1.ShadowCopy" = 0;
    "Job1.Threads" = 4;
    Jobs = " 1";
    License = deleted;
    NSNavLastRootDirectory = "~/Library/Application Support/Garmin";
    NSNavPanelExpandedSizeForOpenMode = "{722, 448}";
    Signature = deleted;
    VerboseLogging = 1;
    WakeUpDelay = 120;
}

I set my macbook air to backup at 13:56:00, closed the lid and waited.
At 14:03 I opened the laptop and woke it up.
There was an error on the screen immediately, so it was apparent the 120 second delay did now work.

Here is the log:

14:03:04.000    Command: duplicacy -background -log -d backup -stats -threads 4
14:03:04.496    Storage set to b2://Moto-MacBook-Air-CARL
14:03:04.496    Reading the environment variable DUPLICACY_GUI1_B2_ID
14:03:04.549    Reading b2_id from keychain/keyring
14:03:04.549    Reading the environment variable DUPLICACY_GUI1_B2_KEY
14:03:04.556    Reading b2_key from keychain/keyring
14:03:04.733    Failed to load the Backblaze B2 storage at b2://Moto-MacBook-Air-CARL: Post https://api.backblazeb2.com/b2api/v1/b2_authorize_account: dial tcp: lookup api.backblazeb2.com: no such host
14:03:14.000    Wake up at 14:03:04

I repeated the exercise a second time and got the same result.
Looks to me the delay still does not work.


#6

I think I figured out what was wrong. There was a race condition between running the backup and the function that receives the wake up notification. I’ll get you a new beta tomorrow.


#7

So this is now fixed and merged?