Just upgraded from 0.9.4 to 0.9.5 on 2 boxes. Both environments have been setup to backup to a AWS S3 based repository.
However when using 0.9.5 I get the following error
Fatal: unable to open config file: Stat: Head https://xxx.s3.dualstack.us-east-1.amazonaws.com/gitlab/config: 301 response missing Location header
Is there a repository at the following location?
s3:s3.amazonaws.com/xxx/gitlab
If I use 0.9.4 everything is fine. Version is AMD64 (running on Ubuntu 16.04 and AWS Linux).
Hey, welcome to the forum! We’ve seen this error during testing, the credentials used for accessing S3 need the GetBucketLocation privilege. Can you check if the account misses this privilege and report back? Thanks!
OK, can confirm that our AWS policy for this bucket was missing the GetBucketLocation.
Added that in and now 0.9.5 works like a charm. It is in the docs but our policy was setup before https://github.com/restic/restic/issues/1593 was reported and fixed. And up until 0.9.4 this has worked fine so that was surprising when 0.9.5 suddenly failed.
Awesome, thanks for the feedback! Now people will hopefully search the forum for the error message (and it’ll probably turn up in Google search results too)