I get an error when attempting to start duplicacy

Before you post: have you tried searching the forum? If you have found related posts that didn’t quite solve your issue, please mention (link) them in your post.

Below is the error message I get. Thanks.

2021/09/29 16:52:27 Starting schedule D-D2-KAW-B2 at scheduled time 2021-0929 12:00
2021/09/29 16:52:29 Created log file D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Log Directory from Duplicacy Software/backup-20210929-165227.log
2021/09/29 16:52:29 Created log file D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Log Directory from Duplicacy Software/prune-20210929-165229.log
2021/09/29 16:52:29 Running C:\Users\kaw/.duplicacy-web/bin/duplicacy_win_x64_2.7.2.exe [-log prune -storage D-D2-KAW-B2 -keep 0:30 -keep 5:10 -keep 1:2 -a]
2021/09/29 16:52:29 Set current working directory to D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Temporary Directory from Duplicacy Software/localhost/all
2021/09/29 16:52:29 Created log file D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Log Directory from Duplicacy Software/check-20210929-165229.log
2021/09/29 16:52:29 Running C:\Users\kaw/.duplicacy-web/bin/duplicacy_win_x64_2.7.2.exe [-log check -storage D-D2-KAW-B2 -a -tabular]
2021/09/29 16:52:29 Set current working directory to D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Temporary Directory from Duplicacy Software/localhost/all
2021/09/29 16:52:29 Running C:\Users\kaw/.duplicacy-web/bin/duplicacy_win_x64_2.7.2.exe [-log backup -storage D-D2-KAW-B2 -stats]
2021/09/29 16:52:29 Set current working directory to D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Temporary Directory from Duplicacy Software/localhost/0
2021/09/29 16:52:34 ERROR STORAGE_CREATE Failed to load the Backblaze B2 storage at b2://D-D2-KAW-B2: Post https://api.backblazeb2.com/b2api/v1/b2_authorize_account: dial tcp: lookup api.backblazeb2.com: no such host
2021/09/29 17:11:46 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value
2021/09/29 17:13:40 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value
2021/09/29 17:16:09 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value
2021/09/29 17:25:01 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value
2021/09/29 17:26:51 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value
2021/09/29 17:32:57 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value
2021/09/29 17:38:19 Failed to parse the configuration file: invalid character ‘\x00’ looking for beginning of value

have you tried this: Failed to load the Backblaze B2 storage - #4 by saspus?

What’s in the D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Temporary Directory from Duplicacy Software/localhost/0/.duplicacy/preferences file? (edit out any keys and passwords that might be there)

Unrelated question: why are you storing temporary duplicacy data inside of your documents folder, as opposed to, say, %LOCALAPPDATA%/Duplicacy?

No special reason. I have using duplicacy/backblazeB2 since 2019. This is the 1st time I am having a problem. Not IT or software savvy. Hence, not sure what to do.

Oh, so this setup was working and then stopped? Few questions:

  • is this issue permanent or intermittent? Maybe there was indeed DNS outage. Try again.
  • did anything change? Maybe OS update?
  • it is possible the filesystem got corrupted that results in bad configuration read (to explain unexpected zeroes in the time) or the configuration file got actually corrupted.
  • delete everything under D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/Ecryption/Duplicacy/LOGS/Temporary Directory from Duplicacy Software/ and try backup again.

To proceed further, how is duplicacy installed? “For all users” or for current user only? (I’m asking because the next steps would be to locate the duplicacy.json file, insoect it, and the. run chkdsk /f on the corresponding volume)

This is the 1st time this has happened since I signed with duplicacy on 2019. Has worked flawlessly since yesterday.
Nothing changed. OS update was a week ago.
May be got corrupted.
Will probably uninstall and start allover. Not sure whether I should do the same for BackBlazeB2 storage.
See below for more info. Thanks for your interest.

Many attempts to start duplicacy gives the following message:

Failed to load configuration file
C:\Users\kaw/.duplicacy-web/duplicacy.json. Please check the log file D:/D2/KAW/Documents/MY DOCUS/KOFI’S/Computer Security/from 4-26-17/ecryption/Duplicacy/LOGS/Log Directory from DuplicacySoftware/Duplicacy_web.log for detailed information.

It looks like that’s the problem right here.

Open that file with a notepad, it is supposed to be a readable text file. If there are some non-ASCII characters or the whole file is empty that would be a result of corruption.

In either case start with disk check: run start elevated command prompt and type chkdsk c: /f. Press enter and when prompted to schedule check on reboot day Y, and press enter.

Then reboot the computer. Upon boot up the disk check with run and if issues are found and fixed it will reboot once more.

Then check contents of that json file again. If it is still corrupted or empty — you would need to configure duplicacy again. Delete the c:\Users\kaw.duplicacy-web folder and then start duplicacy. It will be like the first time. You would need to create the storage the same way and point it to the same B2 bucket as before.then create backup with the same snapshot ID as before for the backup history to continue.

I finally got it to work per your instructions. Thanks a million times.