edward's picture

Hi,

TKLBAM was set to run everyday but after a week when i checked the backup on TKL hub, i only have 3 days backup one full backup and two incremental. then i run the backup manually and saw this error:

Failed to create bucket (attempt #5) 'tklbam-ndfbb7ebp2auxms4' failed (reason: S3ResponseError: S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>IllegalLocationConstraintException</Code><Message>The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>9E7A34A3B6783F6C</RequestId><HostId>9EYinWY9xxuUlP8jOYoKQjkeXgWdlXsKqOzJI5dj6YP347z4TMPiToqfCX7wNOhq</HostId></Error>)
Uploading s3://s3-eu-west-1.amazonaws.com/tklbam-ndfbb7ebp2auxms4/duplicity-full.20110423T155254Z.manifest.gpg to STANDARD Storage

--------------[ Backup Statistics ]--------------
StartTime 1303573974.56 (Sat Apr 23 15:52:54 2011)
EndTime 1303574451.87 (Sat Apr 23 16:00:51 2011)
ElapsedTime 477.32 (7 minutes 57.32 seconds)
SourceFiles 19984
SourceFileSize 244285146 (233 MB)
NewFiles 19984
NewFileSize 244285146 (233 MB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 19984
RawDeltaSize 234798084 (224 MB)
TotalDestinationSizeChange 171505003 (164 MB)
Errors 0

please help us.

Thanks.

Forum: 
Tags: 
edward's picture

this is s3 account issue, my s3 account was terminated due to expired CC. so i create another hub account and register my new s3 account.

so i need to initialized the new API.

but when i run tklbam-backup both local and S3 an error occur:

local:

> tklbam-backup --simulate
Traceback (most recent call last):
File "/usr/bin/tklbam-backup", line 266, in <module>
main()
File "/usr/bin/tklbam-backup", line 233, in main
get_server_id())
File "/usr/lib/tklbam/hub.py", line 226, in new_backup_record
response = self._api('POST', 'record/create/', attrs)
File "/usr/lib/tklbam/hub.py", line 183, in _api
return API.request(method, self.API_URL + uri, attrs, headers)
File "/usr/lib/tklbam/hub.py", line 127, in request
raise Error(c.response_code, name, description)
hub.Error: (400, 'BackupRecord.ServerIDNotFound', 'Server ID does not exist: 7bd1d690-a771-4255-b439-ac0138f4645d')


S3:

> tklbam-backup
Traceback (most recent call last):
File "/usr/bin/tklbam-backup", line 266, in <module>
main()
File "/usr/bin/tklbam-backup", line 233, in main
get_server_id())
File "/usr/lib/tklbam/hub.py", line 226, in new_backup_record
response = self._api('POST', 'record/create/', attrs)
File "/usr/lib/tklbam/hub.py", line 183, in _api
return API.request(method, self.API_URL + uri, attrs, headers)
File "/usr/lib/tklbam/hub.py", line 127, in request
raise Error(c.response_code, name, description)
hub.Error: (400, 'BackupRecord.ServerIDNotFound', 'Server ID does not exist: 7bd1d690-a771-4255-b439-ac0138f4645d')

 

how to resolve this problem?

thanks.

Alon Swartz's picture

There was no need to create a new Hub account, you could have updated your old account to use your new S3 credentials.

Anyway, the traceback you posted are both returned from the Hub as the associated Server ID is not found in your account. To resolve this issue you can re-initialize TKLBAM to use the new APIKey:

tklbam-init --force API_KEY

If you still receive the BackupRecord.ServerIDNotFound error, remove SERVER_ID from /var/lib/hubclient/server.conf

Add new comment