Hello, I am using Duplicacy for Windows and ran into an issue where it doesn’t send an email if the storage (SFTP) is offline or if the host key has changed. The client is configured to send emails only when the backup fails.
I ran a test and the email was correctly sent after 4 attempts.
21:32:21.405 Failed to load the SFTP storage at sftp://gchen@192.168.1.144/AcrosyncTest/storage: dial tcp 192.168.1.144:22: connectex: No connection could be made because the target machine actively refused it.
21:32:31.000 Command: duplicacy -background -log -d backup -stats
21:32:31.397 Storage set to sftp://gchen@192.168.1.144/AcrosyncTest/storage
21:32:31.399 Reading the environment variable DUPLICACY_SSH_KEY_FILE
21:32:32.430 Failed to load the SFTP storage at sftp://gchen@192.168.1.144/AcrosyncTest/storage: dial tcp 192.168.1.144:22: connectex: No connection could be made because the target machine actively refused it.
21:32:52.000 Command: duplicacy -background -log -d backup -stats
21:32:52.415 Storage set to sftp://gchen@192.168.1.144/AcrosyncTest/storage
21:32:52.416 Reading the environment variable DUPLICACY_SSH_KEY_FILE
21:32:53.439 Failed to load the SFTP storage at sftp://gchen@192.168.1.144/AcrosyncTest/storage: dial tcp 192.168.1.144:22: connectex: No connection could be made because the target machine actively refused it.
21:33:23.000 Command: duplicacy -background -log -d backup -stats
21:33:23.597 Storage set to sftp://gchen@192.168.1.144/AcrosyncTest/storage
21:33:23.598 Reading the environment variable DUPLICACY_SSH_KEY_FILE
21:33:24.623 Failed to load the SFTP storage at sftp://gchen@192.168.1.144/AcrosyncTest/storage: dial tcp 192.168.1.144:22: connectex: No connection could be made because the target machine actively refused it.
21:33:27.000 Log file C:\Temp\My Repository\.duplicacy\logs\backup-log-20180331-213323 has been emailed to ***@acrosync.com
Can you double check? Make sure you’re running the latest version 2.1.0 with build number 3200c6.
Hello, I can confirm no error email message in case local backup:
- Windows / Duplicacy 2.1.1
- Storage type local disk
- I renamed destination storage folder (to simulate missing/unmounted destination volume)
- Duplicacy display popup error message “The storage has not been initialized”
- Popup message is repeated 4 times
Log from file:
2018-10-19 23:02:01.725 INFO STORAGE_SET Storage set to D:\Duplicacy_test_target
2018-10-19 23:02:01.726 DEBUG PASSWORD_ENV_VAR Reading the environment variable DUPLICACY_GUI1_PASSWORD
2018-10-19 23:02:01.727 DEBUG PASSWORD_KEYCHAIN Reading password from keychain/keyring
2018-10-19 23:02:01.727 ERROR STORAGE_NOT_CONFIGURED The storage has not been initialized
[23:02:01] C:Duplicacy_source_universal Backup operation returned an error:
ERROR The storage has not been initialized
But no email message is send.
EDIT: I did not tried block Duplicacy from creating new target folder - so maybe that is problem in my test.
My test with a non-initialized storage:
23:06:30.000 Command: duplicacy -background -log backup -stats
23:06:30.760 Storage set to /Users/gchen/AcrosyncTest/storage
23:06:30.760 The storage has not been initialized
23:06:40.000 Command: duplicacy -background -log backup -stats
23:06:40.723 Storage set to /Users/gchen/AcrosyncTest/storage
23:06:40.723 The storage has not been initialized
23:07:00.000 Command: duplicacy -background -log backup -stats
23:07:00.723 Storage set to /Users/gchen/AcrosyncTest/storage
23:07:00.723 The storage has not been initialized
23:07:30.000 Command: duplicacy -background -log backup -stats
23:07:30.721 Storage set to /Users/gchen/AcrosyncTest/storage
23:07:30.722 The storage has not been initialized
23:07:32.000 Log file /Users/gchen/AcrosyncTest/repository/.duplicacy/logs/backup-log-20181020-230730 has been emailed to xxxx@gmail.com
Emails are sent only after scheduled backups. If you start a backup manually (with scheduled to run at specific times
unchecked) then no emails will be sent after the backup.
Hello, I have schedule backup set up and mail are delivered every 30 minutes only if everything is ok.
Today I tried little different test: I stopped Duplicacy, changed “storage” in preference file to another non-existent HDD (volume letter), start Duplicacy and wait 30 minutes for scheduled backup.
I get 4 popup warnings, but no email message
log:
2018-10-21 13:00:00.862 INFO STORAGE_SET Storage set to f:\Duplicacy_2018_cil\Dulezite_Programy__universal_duplicacy_cil
2018-10-21 13:00:00.864 ERROR STORAGE_CREATE Failed to load the file storage at f:\Duplicacy_2018_cil\Dulezite_Programy__universal_duplicacy_cil: mkdir f:: The system cannot find the path specified.
[13:00:00] C:\Dulezite_Programy_universal Backup operation returned an error:
ERROR Failed to load the file storage at f:\Duplicacy_2018_cil\Dulezite_Programy__universal_duplicacy_cil: mkdir f:: The system cannot find the path specified.
When I changed volume letter back - email with successful backup arrived.