From 7e6b78a09995929a7d39f3201a85a34ab246feaa Mon Sep 17 00:00:00 2001 From: Dan Notestein Date: Sat, 3 Jan 2026 17:20:52 -0500 Subject: [PATCH] Fix sync save cache to remove symlinks before copying block_log The datadir extracted from HAF cache may contain symlinks pointing to read-only locations. Remove them before copying to avoid errors. --- templates/haf_app_testing.gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/haf_app_testing.gitlab-ci.yml b/templates/haf_app_testing.gitlab-ci.yml index f7d1fa0..d4411c9 100644 --- a/templates/haf_app_testing.gitlab-ci.yml +++ b/templates/haf_app_testing.gitlab-ci.yml @@ -972,6 +972,8 @@ include: # Prepare data for caching sudo cp -a "${SHM_DIR}" "${DATADIR}/shm_dir" mkdir -p "${DATADIR}/blockchain" + # Remove any existing symlinks before copying (they may point to read-only locations) + sudo rm -f "${DATADIR}/blockchain/block_log" "${DATADIR}/blockchain/block_log.artifacts" sudo cp -a "${CI_PROJECT_DIR}/docker/blockchain/block_log" "${DATADIR}/blockchain/block_log" sudo cp -a "${CI_PROJECT_DIR}/docker/blockchain/block_log.artifacts" "${DATADIR}/blockchain/block_log.artifacts" -- GitLab