mgob icon indicating copy to clipboard operation
mgob copied to clipboard

Azure blob storage not working

Open iMartyn opened this issue 4 years ago • 4 comments

Azure backup is not working because the azure provider shells out to az cli and az is not in stefanprodan/mgob.

Worse still, there is no error issued, the file just never ends on the blob storage.

The choice of go-sh is an interesting one, I'm sure it was picked because of timeout, however go-sh calls sh, so calling sh from go-sh is one layer of potential problems.

I haven't worked with this module before but somewhere it is swallowing the error (sh will give a 127 error code if the command doesn't exist).

We are lucky we caught this because someone other than the person who set up the backup required a restore, so it seemed easier to go get it from blob than the local pod. Luckily they just needed a backup not a backup from a few days ago.

iMartyn avatar Jul 25 '19 09:07 iMartyn

@etoriet could you weigh in on the choice of go-sh? Perhaps there's a neater way to solve the timeout so go's native exec which should be a bit more reliable can be used?

iMartyn avatar Jul 25 '19 09:07 iMartyn

It works fine for me on Azure Blob storage, can you give some details of your config perhaps?

patrickmslatteryvt avatar Jul 28 '19 22:07 patrickmslatteryvt

Hi Can approve @iMartyn How can I enable debug log for output? Thank you

esin avatar Jul 29 '19 15:07 esin

Hi @iMartyn ,

Would you check your docker image is sufficiently new? Azure support starts at 1.0 release and if your image is before 1.0, configuration about azure may be silently ignored.

etoriet avatar Aug 09 '19 10:08 etoriet