Repository navigation
fix(backup): AWS S3 regional namespace buckets - #1434
Merged
Merged
Conversation
The Amazon S3 destination always used the global endpoint. Buckets created in the "account regional namespace", the AWS console default since March 2026, are reachable only through the regional endpoint outside us-east-1, so the destination check failed with a permission error. Build the endpoint from the region field. Also set no_check_bucket, like the Synology and IDrive settings: the bucket must exist, and the access key no longer needs the permission to create buckets. Existing destination configurations are not changed: the new settings apply when a destination is added or edited, after validation. Assisted-by: Claude Code:claude-opus-5-5
Rclone messages were lost: the image enabled systemd logging, which writes to the journald socket, but that socket is not available in the rclone-gateway container. Messages of the gateway, of the destination check, and of rclone run by hand with podman exec were silently dropped. Without that setting rclone writes to stderr, as it did in the former rclone-webdav service. The destination check now copies the rclone error messages to the task log. Write access was checked by creating and removing a directory, but directories do not really exist on object storage, so the check could pass without writing anything. Write and remove a small temporary file instead. Assisted-by: Claude Code:claude-opus-5-5
gsanchietti
approved these changes
Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amazon S3 backup destinations cannot be added when the bucket is in the new AWS "account regional namespace" (the AWS console default since March 2026), or when the access key is not allowed to create buckets. When the check fails, the real error from rclone (the tool that checks the destination) is lost, so the problem is hard to troubleshoot. NethServer/dev#8241
New and edited Amazon S3 destinations now use the regional endpoint built from the region field, and expect the bucket to already exist. Existing destinations are not changed. Rclone error messages are now visible in the task log, in the system logs, and on the terminal.
s3.<region>.amazonaws.cominstead ofs3.amazonaws.com, andno_check_bucket = trueis set, as already done for Synology and IDrive.RCLONE_LOG_SYSTEMD=1: it sent every message to the journald socket, which is not available inside therclone-gatewaycontainer, so they were silently dropped. Rclone now writes to stderr, as it did in the formerrclone-webdavservice.How to test
us-east-1, and an access key for a user that can read, write and delete objects in it, but cannot create buckets.podman exec rclone-gateway rclone lsd <destination-id>:on a node: errors are printed on the terminal. Gateway messages appear withjournalctl -t rclone-gateway.See also
Generated by Claude Code:claude-opus-5-5 with nethserver-pr