jms3000
Anmeldungsdatum: 29. Januar 2015
Beiträge: 800
Wohnort: Schwetzingen
|
Backups mit Deja-Dup nach Amazon S3 in Europa scheinen nicht zu funktionieren.
Wenn man Deja-Dup das bucket anlegen lässt, landet es in AWS-US.
Wenn man ein vorhandens EU-bucket vorgibt, bricht er ab. Ich habe jetzt eine Datei ~/.boto angelegt und folgendes reingeschrieben: [s3]
host=s3.eu-central-1.amazonaws.com Damit geht es.
|
Berlin_1946
Supporter, Wikiteam
Anmeldungsdatum: 18. September 2009
Beiträge: 8712
|
Hallo jms3000
Damit geht es.
😳 🙄 Ist da nicht ein "gelöst" angebracht ❓
|
jms3000
(Themenstarter)
Anmeldungsdatum: 29. Januar 2015
Beiträge: 800
Wohnort: Schwetzingen
|
Jaein.
In /usr/lib/python2.7/dist-packages/boto/s3/connection.py ist folgender Code drin:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 | class S3Connection(AWSAuthConnection):
DefaultHost = boto.config.get('s3', 'host', 's3.amazonaws.com')
print(DefaultHost)
DefaultCallingFormat = boto.config.get('s3', 'calling_format', 'boto.s3.connection.SubdomainCallingFormat')
QueryString = 'Signature=%s&Expires=%d&AWSAccessKeyId=%s'
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
is_secure=True, port=None, proxy=None, proxy_port=None,
proxy_user=None, proxy_pass=None,
host=NoHostProvided,debug=0, https_connection_factory=None,
calling_format=DefaultCallingFormat, path='/',
provider='aws', bucket_class=Bucket, security_token=None,
suppress_consec_slashes=True, anon=False,
validate_certs=None, profile_name=None):
no_host_provided = False
if host is NoHostProvided:
no_host_provided = True
host = self.DefaultHost
if isinstance(calling_format, six.string_types):
calling_format=boto.utils.find_class(calling_format)()
self.calling_format = calling_format
self.bucket_class = bucket_class
self.anon = anon
super(S3Connection, self).__init__(host,
aws_access_key_id, aws_secret_access_key,
is_secure, port, proxy, proxy_port, proxy_user, proxy_pass,
debug=debug, https_connection_factory=https_connection_factory,
path=path, provider=provider, security_token=security_token,
suppress_consec_slashes=suppress_consec_slashes,
validate_certs=validate_certs, profile_name=profile_name)
# We need to delay until after the call to ``super`` before checking
# to see if SigV4 is in use.
if no_host_provided:
if 'hmac-v4-s3' in self._required_auth_capability():
raise HostRequiredError(
"When using SigV4, you must specify a 'host' parameter."
)
|
Diese Abfrage am Schluss "no_host_provided" scheint mir falsch zu sein. Denn vorher wird der DefaultHost zugewiesen. Da ist es dann unlogisch, auf einmal zu sagen: "you must specify host parameter". Das ist alles nie getestet worden mit Amazon-Servern in der EU. Da ist einiges buggy.
Ich hab die Zeile 11
| host=NoHostProvided,debug=0, https_connection_factory=None,
|
ersetzt durch
| host='s3.eu-central-1.amazonaws.com',debug=0, https_connection_factory=None,
|
|