0

在我迁移到 Debian 11 之前,我安装的 Amanda 运行良好。我已将 Amanda 设置为备份到 S3 存储桶。

我重置了所有的磁带和文件,从零开始。当我尝试标记第一个插槽时:

$ amlabel -f mail daily-01 插槽 1

日志显示:

thd-0x565522849200: amlabel: Mark bundle as not supporting multiuse
thd-0x565522849200: amlabel: Hdr In: HTTP/1.1 400 Bad Request
thd-0x565522849200: amlabel: Hdr In: Date: Mon, 31 Jan 22 04:00:24 GMT
thd-0x565522849200: amlabel: Time Offset (remote - local) :0
thd-0x565522849200: amlabel: Hdr In: Connection: close
thd-0x565522849200: amlabel: Hdr In: Transfer-Encoding: chunked
thd-0x565522849200: amlabel: Hdr In: x-amz-id-2: UAX4xxxxxxxxxxxxxxxxxxxx
thd-0x565522849200: amlabel: Hdr In: x-amz-request-id: 6CD7xxxxxxxxxxxxxxxxx
thd-0x565522849200: amlabel: Hdr In: Content-Type: application/xml
thd-0x565522849200: amlabel: Hdr In: Server: AmazonS3
thd-0x565522849200: amlabel: Hdr In:
thd-0x565522849200: amlabel: Closing connection 8
thd-0x565522849200: amlabel: TLSv1.2 (OUT), TLS alert, close notify (256):
thd-0x565522849200: amlabel: data in 391: <?xml version="1.0" encoding="UTF-8"?><Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>6CD753501BB60FCF</RequestId><HostId>UAX4KzR/fM7hZIbdnzQ6F0mH8AlxQPmBtkjTolJa1OtNBG6QfDSUNuknBSV2iKluSzHt6DXZbz/cS9rPlJfZ6JhjI6Bv/IaHXcOnkYIvOas=</HostId></Error>
thd-0x565522849200: amlabel:   Trying 52.217.80.110:443...
thd-0x565522849200: amlabel: Connected to s3.amazonaws.com (52.217.80.110) port 443 (#9)
thd-0x565522849200: amlabel: ALPN, offering h2
thd-0x565522849200: amlabel: ALPN, offering http/1.1
thd-0x565522849200: amlabel: successfully set certificate verify locations:
thd-0x565522849200: amlabel:  CAfile: /etc/ssl/certs/ca-certificates.crt
thd-0x565522849200: amlabel:  CApath: /etc/ssl/certs
thd-0x565522849200: amlabel: SSL re-using session ID
thd-0x565522849200: amlabel: TLSv1.3 (OUT), TLS handshake, Client hello (1):
thd-0x565522849200: amlabel: TLSv1.3 (IN), TLS handshake, Server hello (2):
thd-0x565522849200: amlabel: TLSv1.2 (IN), TLS handshake, Certificate (11):
thd-0x565522849200: amlabel: TLSv1.2 (IN), TLS handshake, Server key exchange (12):
thd-0x565522849200: amlabel: TLSv1.2 (IN), TLS handshake, Server finished (14):
thd-0x565522849200: amlabel: TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
thd-0x565522849200: amlabel: TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
thd-0x565522849200: amlabel: TLSv1.2 (OUT), TLS handshake, Finished (20):
thd-0x565522849200: amlabel: TLSv1.2 (IN), TLS handshake, Finished (20):
thd-0x565522849200: amlabel: old SSL session ID is stale, removing
thd-0x565522849200: amlabel: SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
thd-0x565522849200: amlabel: ALPN, server did not agree to a protocol
thd-0x565522849200: amlabel: Server certificate:
thd-0x565522849200: amlabel:  subject: C=US; ST=Washington; L=Seattle; O=Amazon.com, Inc.; CN=s3.amazonaws.com
thd-0x565522849200: amlabel:  start date: Jun 23 00:00:00 2021 GMT
thd-0x565522849200: amlabel:  expire date: Jul 24 23:59:59 2022 GMT
thd-0x565522849200: amlabel:  subjectAltName: host "s3.amazonaws.com" matched cert's "s3.amazonaws.com"
thd-0x565522849200: amlabel:  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert Baltimore CA-2 G2
thd-0x565522849200: amlabel:  SSL certificate verify ok.
thd-0x565522849200: amlabel: Hdr Out: PUT /mybucket/mypath%2Fdaily%2Fslot-01special-tapestart HTTP/1.1
thd-0x565522849200: amlabel: Hdr Out: Host: s3.amazonaws.com
thd-0x565522849200: amlabel: Hdr Out: Accept: */*
thd-0x565522849200: amlabel: Hdr Out: x-amz-storage-class: STANDARD
thd-0x565522849200: amlabel: Hdr Out: Authorization: AWS xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
thd-0x565522849200: amlabel: Hdr Out: Content-MD5: xxxxxxxxxxxxxxxxxxxxxxxxxxx
thd-0x565522849200: amlabel: Hdr Out: Content-Length: 41
thd-0x565522849200: amlabel: Hdr Out: Date: Mon, 31 Jan 2022 04:00:24 GMT
thd-0x565522849200: amlabel: Hdr Out:

并永远留在那里,直到连接超时。

我的设备配置:

define changer s3-changer {
        tpchanger "chg-multi:s3:xxxxxxxx/xxxx/daily/slot-{01,02,03,04,05,06,07,08,09,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,39,40,41,42,43,44,45}"
        device_property "S3_ACCESS_KEY" "XXXXXXXXXXX"
        device_property "S3_SECRET_KEY" "XXXXXXXXXXXX"
        device_property "S3_SSL" "YES"
        device_property "NB_THREADS_BACKUP" "2"
        device_property "REUSE-CONNECTION" "NO"
        device_property "S3_MULTI_PART_UPLOAD" "YES"
        device_property "S3_STORAGE_CLASS" "STANDARD"
        device_property "BLOCK_SIZE" "1024mb"
}

谢谢你的帮助。

Ĵ

- - 更新:

原来这个问题是在更新 libcurl4 之后出现的。看:

https://github.com/zmanda/amanda/issues/154

该问题已于 2020 年 6 月 3 日在 Github 上向 amanda 团队报告。截至撰写本文时已有 18 个月,我没有看到任何动静。我猜阿曼达项目现在已经死了。切换到其他软件。


4

0 回答 0