containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/azure-cli] Command 'az storage blob sync' is not permitted to download azcopy to /bin

Open mladBlum opened this issue 1 year ago • 6 comments

Name and Version

bitnami/azure-cli:2.49.0

What architecture are you using?

None

What steps will reproduce the bug?

  1. You need a Azure storage account with a valid connection-string and a container (e.g. testsync-container).
  2. In local environment create a folder with a random file e.g. ./testsync/text.txt
  3. Run 'docker run --rm -e AZURE_STORAGE_CONNECTION_STRING='connection-string' --name azure-cli bitnami/azure-cli:2.49.0 storage blob sync --source testsync --container testsync-container'
  4. See error: ERROR: Connection error while attempting to download azcopy 10.13.0. You could also install the specified azcopy version to /bin manually. ([Errno 1] Operation not permitted: '/bin')

What is the expected behavior?

The expected behavior is, that the command writes the testsync/text.txt into the container of the azure storage account.

What do you see instead?

ERROR: Connection error while attempting to download azcopy 10.13.0. You could also install the specified azcopy version to /bin manually. ([Errno 1] Operation not permitted: '/bin')

Additional information

I discovered the problem when using the helm chart bitnami/influxdb. The backup to azure functionality uses bitnami/azure-cli with the command 'az storage blob sync'. I am pretty sure no one can successfully activate this backup functionality with azure storage account as destination.

mladBlum avatar May 24 '23 15:05 mladBlum

Hi,

I believe one option could adding azcopy to the container, would that make sense? This way it would not need to download anything.

javsalgar avatar May 25 '23 07:05 javsalgar

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Jun 10 '23 01:06 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Jun 15 '23 01:06 github-actions[bot]

Hello, we have this problem in terraform/bitnami/helm context for creating a backup of our influxDB: influxdb1-v2.yaml

  uploadProviders:
    azure:
      enabled: true
      secret: "backupcontainer"
      secretKey: "key"
      existingSecret: ""
      containerName: "influxdb"

Is there a version problem?

nitrix78 avatar Sep 06 '23 12:09 nitrix78

Hi @nitrix78,

I'm going to create an internal task to explore the possibility of incorporating that azcopy into the container, with the hope that this will resolve the issue. In the meantime, could you try adding azcopy to the container?

fevisera avatar Sep 25 '23 09:09 fevisera

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] avatar Jan 07 '24 01:01 github-actions[bot]