OpenDRR / opendrr-data-store

Repo for storing PostGIS/PostgreSQL database creation, query scripts and related works.
MIT License
2 stars 2 forks source link

Occasional "b2.exception.DestFileNewer: source file is older than destination" error #46

Open anthonyfok opened 3 years ago

anthonyfok commented 3 years ago

Will notified me of two GitHub Actions error as seen at https://github.com/OpenDRR/opendrr-data-store/actions, in particular:

It turns out that the Backblaze B2 tool errors out occasionally when it detected the source files being older than what is already on the B2 bucket:

  File "/usr/lib/python3/dist-packages/b2/sync/policy.py", line 99, in files_are_different
    raise DestFileNewer(
b2.exception.DestFileNewer: source file is older than destination: local://view_outputs/all_indicators/multi_hazard_threat/economic_region/nhsl_hazard_threat_all_indicators_b_1010.zip with a time of 1621298707917 cannot be synced to b2://view_outputs/all_indicators/multi_hazard_threat/economic_region/nhsl_hazard_threat_all_indicators_b_1010.zip with a time of 1621299046514, unless --skipNewer or --replaceNewer is provided
ERROR: source file is older than destination: local://view_outputs/all_indicators/multi_hazard_threat/economic_region/nhsl_hazard_threat_all_indicators_b_1010.zip with a time of 1621298707917 cannot be synced to b2://view_outputs/all_indicators/multi_hazard_threat/economic_region/nhsl_hazard_threat_all_indicators_b_1010.zip with a time of 1621299046514, unless --skipNewer or --replaceNewer is provided

Issues: