Code Monkey home page Code Monkey logo

hassio-backup-azure-blob's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jak119 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kforeverisback

hassio-backup-azure-blob's Issues

Can't copy new backup files

Hitting some isses when trying to copy new files to Azure blob:
`22:40:17] INFO: === Starting copy ===
ERROR: The specified blob already exists.
RequestId:f9301787-901e-0019-47fc-4a1a99000000
Time:2023-02-27T22:41:21.6601902Z
ErrorCode:BlobAlreadyExists
If you want to overwrite the existing one, please add --overwrite in your command.'

Backup to Azure Blob
Current version: 1.1.4

timeout('The write operation timed out')

Hi,

I can't push my backup on azure blob. Connection string and container name are ok but :
7500dd72.tar
96845faf.tar
=== Starting copy ===
ERROR: Client-Request-ID=b97ef5a2-b25a-11eb-974c-0242ac1e2105 Retry policy did not allow for a retry: , HTTP status code=Unknown, Exception=('Connection aborted.', timeout('The write operation timed out')).
ERROR: ('Connection aborted.', timeout('The write operation timed out'))
ERROR: Client-Request-ID=b9816e04-b25a-11eb-a890-0242ac1e2105 Retry policy did not allow for a retry: , HTTP status code=Unknown, Exception=('Connection aborted.', timeout('The write operation timed out')).
ERROR: Client-Request-ID=0a4546eb-b25b-11eb-9731-0242ac1e2105 Retry policy did not allow for a retry: , HTTP status code=Unknown, Exception=('Connection aborted.', timeout('The write operation timed out')).
ERROR: Client-Request-ID=0ef4bf79-b25b-11eb-8fac-0242ac1e2105 Retry policy did not allow for a retry: , HTTP status code=Unknown, Exception=('Connection aborted.', timeout('The write operation timed out')).

I can see put blob activity so i think my configuration is ok
image

any idea ?

Unable to start addon

After installation and basic configuration I'm unable to start the addon.
Only one error in log:

s6-overlay-suexec: fatal: can only run as pid 1

Use Service Principal secrets instead of SAS token

First of all, thanks a ton for the Addon!! Awesome work!

For long term usability, I'd like to use a service principal and client secret to authenticate azcopy.

Currently the SAS token generator only supports SAS token validity upto 7 days.

Also, using Azure Active Directory (Service Principal) is recommended over SAS token in general.

Possible Implementation:

# config.yaml
tenant_id: [TENANT-ID]
storage_url: https://[account].blob.core.windows.net/[container]/[path/to/virtual/dir]
principal_id: [PRINCIPAL-ID]
client_secret: [!secret]
delete: false

According to azcopy login documentation: we can use the cmd below to login with service principal and secret:

# Export AZCOPY_SPA_CLIENT_SECRET with the secret, then run
azcopy login --service-principal --application-id <your service principal's application ID>

Log date of run

To help with reviewing logs, output the current date at the start of the script

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.