bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.26k stars 4.76k forks source link

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

Open mladBlum opened 1 year ago

mladBlum commented 1 year ago

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.

javsalgar commented 1 year ago

Hi,

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

github-actions[bot] commented 1 year ago

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] commented 1 year ago

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.

nitrix78 commented 1 year ago

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?

fevisera commented 11 months ago

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?

github-actions[bot] commented 8 months ago

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.