PBS 4 BETA - S3 Storage Error: "access time safety check failed: unexpected status code 501 Not Implemented"

devaux

Active Member
Feb 3, 2024
195
47
28
Hi everyone,I'm trying to set up an S3-compatible storage with Proxmox Backup Server 4 using Infomaniak's Swiss Backup S3 storage, but I'm running into an issue. When attempting to add the storage, I get the following error message:

access time safety check failed: failed to upload chunk to s3 backend: chunk upload failed: unexpected status code 501 Not Implemented

  • Proxmox Backup Server Version: 4.0.7 BETA
  • S3 Storage Provider: Infomaniak Swiss Backup
  • Endpoint: s3.swiss-backup04.infomaniak.com
  • Access Key ID: Generated via Infomaniak Manager
  • Secre Kys: Generated via Infomaniak Manager
  • Secret Access Key: Generated via Infomaniak Manager
  • [X] Patch Style
  • Region: us-east-1
  • Bucket: backup-pbs (created with CLI and Cyberduck)

I see that the PBS creates the a folder with the "Name:" on the S3-storage. So (write) access is possible.

Documentation Infomaniak: https://trac.cyberduck.io/wiki/help/en/howto/infomaniak

Cyberduck Template:
XML:
        <key>Protocol</key>
        <string>s3</string>
        <key>Vendor</key>
        <string>Infomaniak Network</string>
        <key>Scheme</key>
        <string>https</string>
        <key>Name</key>
        <string>Swiss Backup (S3)</string>
        <key>Description</key>
        <string>Infomaniak Swiss Backup 04 (S3)</string>
        <key>Default Nickname</key>
        <string>Swiss Backup (S3)</string>
        <key>Default Hostname</key>
        <string>s3.swiss-backup04.infomaniak.com</string>
        <key>Hostname Configurable</key>
        <false/>
        <key>Port Configurable</key>
        <false/>
        <key>Anonymous Configurable</key>
        <false/>
        <key>Region</key>
        <string>us-east-1</string>
        <key>Properties</key>
        <array>
            <string>s3.bucket.virtualhost.disable=true</string>
            <string>s3.storage.class.options=STANDARD</string>
        </array>
        <key>Help</key>
        <string>https://trac.cyberduck.io/wiki/help/en/howto/infomaniak</string>
        <key>Disk</key>


s3cmd:
Code:
New settings:

  Access Key: xxx

  Secret Key: yyy

  Default Region: us-east-1

  S3 Endpoint: s3.swiss-backup04.infomaniak.com

  DNS-style bucket+hostname:port template for accessing a bucket: disable

  Encryption password:

  Path to GPG program: /usr/bin/gpg

  Use HTTPS protocol: True

  HTTP Proxy server name:

  HTTP Proxy server port: 0



Test access with supplied credentials? [Y/n]

Please wait, attempting to list all buckets...

Success. Your access key and secret key worked fine :-)



Now verifying that encryption works...

Not configured. Never mind.



Save settings? [y/N] y

Configuration saved to '~/.s3cfg'

~$ s3cmd put testfile.txt s3://backup-pbs/

/usr/lib/python3/dist-packages/S3/S3Uri.py:122: SyntaxWarning: invalid escape sequence '\.'

  m = re.match("(.*\.)?s3(?:\-[^\.]*)?(?:\.dualstack)?(?:\.[^\.]*)?\.amazonaws\.com(?:\.cn)?$",

/usr/lib/python3/dist-packages/S3/S3Uri.py:170: SyntaxWarning: invalid escape sequence '\w'

  _re = re.compile("^(\w+://)?(.*)", re.UNICODE)

/usr/lib/python3/dist-packages/S3/FileLists.py:525: SyntaxWarning: invalid escape sequence '\*'

  wildcard_split_result = re.split("\*|\?", uri_str, maxsplit=1)

upload: 'testfile.txt' -> 's3://backup-pbs/testfile.txt'  [1 of 1]

 10 of 10   100% in    0s    44.66 B/s  done


Also no error running the command:
s3 check s3.swiss-backup04.infomaniak.com pbs-backup --store-prefix /
 
Last edited:
  • Like
Reactions: devaux
Already got the Feedback from Infomaniak. Looks like it's not supported at the moment, but they plan a Ceph based full featured S3-Storage in the future:

Nach einer kurzen internen Analyse zeigt sich, dass die von Proxmox benötigte Funktionalität „If-None-Match“ derzeit von unserem Dienst nicht unterstützt wird. Dieses Verhalten scheint mit dem verwendeten Swift-Backend zusammenzuhängen, welches bei bestehenden Objekten einen Match zurückliefert, ohne dabei Grösse oder MD5 zu prüfen. Sollte dieses Verhalten als „normal“ im Swift-Code gelten, wäre eine Änderung entsprechend aufwändig.

Ein entsprechender Patch wäre aktuell mit hohem Entwicklungsaufwand verbunden und steht kurzfristig nicht zur Verfügung. Es ist jedoch geplant, in Zukunft eine Ceph-basierte S3-Lösung anzubieten, bei der dieses Verhalten nicht auftritt.

Für den Moment können wir daher die Nutzung von Swiss Backup mit Proxmox Backup Server nicht garantieren.

Vielen Dank für Ihr Vertrauen, wir stehen Ihnen weiterhin zur Verfügung.