Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Neo4j backup fails with azure-cli version 2.34.1 #254

Open
coy2k opened this issue Mar 4, 2022 · 0 comments
Open

Neo4j backup fails with azure-cli version 2.34.1 #254

coy2k opened this issue Mar 4, 2022 · 0 comments

Comments

@coy2k
Copy link

coy2k commented Mar 4, 2022

Describe the bug
Backup job fails uploading blobs to azure storage because existing ones cannot be overwritten due to a storage braking change in azure-cli version 2.34.1

To Reproduce

  1. Build neo4j backup docker image
  2. Deploy backup helm chart using the new docker image
  3. Trigger the backup cronjob

Expected behavior
Backup job finished OK

Error Logs
"ERROR: The specified blob already exists."

Additional context
Installed azure-cli version is not fixed in the backup Dockerfile:

RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash

backup.sh should be updated to add --overwrite option when needed:

      echo "Azure storage blob copy to $CONTAINER :: $latest_name"
      az storage blob upload --container-name "$CONTAINER" \
                             --file "$backup_path" \
                             --name "$latest_name" \
                             --account-name "$ACCOUNT_NAME" \
                             --account-key "$ACCOUNT_KEY"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant