Skip to content

[Bug]: Exception: The bucket will not be created because the name is not dns compatible ( backblaze S3 bucket) #51185

Description

@Retidurc

⚠️ This issue respects the following points: ⚠️

Bug description

While trying to create a folder backed by backblaze S3 solution, nextcloud complains that the name is not DNS compatible.
I am following Backblaze instructions : https://www.backblaze.com/docs/cloud-storage-integrate-nextcloud-with-backblaze-b2

To do so, i've created a bucket like so :

Image
named "rhebryn-archives", the endpoint is s3.us-west-004.backblazeb2.com

Yet, when trying to add the config as follow, nextcloud complains about an invalid dns name :

Image

This may looks like a valid error, but there is no indication whatsoever on how to fix it

Steps to reproduce

  1. Try to add a backblaze bucket in nextcloud
  2. Save the configuration

Expected behavior

Having the bucket mounted

Nextcloud Server version

30

Operating system

Other

PHP engine version

PHP 8.2

Web server

None

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.retidurc.fr",
            "cloud.ryckaert.me",
            "cloud.zaziss.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.retidurc.fr",
        "dbtype": "pgsql",
        "version": "30.0.6.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbpersistent": true,
        "installed": true,
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "updater.release.channel": "stable",
        "app_install_overwrite": [
            "admin_notifications",
            "tasks",
            "ocr",
            "ransomware_detection",
            "calendar",
            "workflow_pdf_converter",
            "deck",
            "event_update_notification",
            "audioplayer",
            "metadata",
            "files_external_gdrive",
            "camerarawpreviews",
            "extract",
            "impersonate",
            "news",
            "polls",
            "ransomware_protection",
            "files_snapshots",
            "unsplash",
            "dropit",
            "checksum",
            "mindmap_app",
            "breezedark",
            "contacts",
            "keeporsweep",
            "social",
            "dicomviewer",
            "occweb",
            "files_archive",
            "duplicatefinder",
            "maps",
            "quicknotes"
        ],
        "mail_smtpmode": "sendmail",
        "mail_sendmailmode": "pipe",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "1025",
        "encryption.legacy_format_support": false,
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "debug": false,
        "profiler": false,
        "default_phone_region": "FR",
        "enabledPreviewProviders": [
            "OC\\Preview\\PDF",
            "OC\\Preview\\Image",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita"
        ],
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "maintenance_window_start": 2
    }
}

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Activity

  1. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Mar 2, 2025
  2. susnux commented on Mar 2, 2025

    @susnux
    Contributor

    Can you enable debug log level (log_level = 0) and check for log messaged for app = objectstore ?

  3. joshtrichards commented on Mar 2, 2025

    @joshtrichards
    Member

    Are you certain there isn't a space at the end of the bucket name or something?

    Check by running occ files_external:list --output=json_pretty maybe?

  4. susnux commented on Mar 2, 2025

    @susnux
    Contributor

    Are you certain there isn't a space at the end of the bucket name or something?

    Thats also my guess (and why I asked for the log)

  5. Retidurc commented on Mar 2, 2025

    @Retidurc
    ContributorAuthor

    There was indeed a whitespace, but in the beginning of both the bucket name, and the domain name.
    Trailing whitespaces where what I double checked first. And due to the wording of the error I was thinking about something more technical as the cause .

    Should I mark this as resolved? Technically not a bug, but I think maaaaybe the error messages need to be a bit more explicit about leading or trailing whitespaces, just to not mislead about the real issue.

  6. joshtrichards commented on Mar 2, 2025

    @joshtrichards
    Member

    Technically not a bug, but I think maaaaybe the error messages need to be a bit more explicit about leading or trailing whitespaces, just to not mislead about the real issue.

    I agree.

    Not everyone knows the acceptable characters for DNS hostnames off the top of their head. ;-)

    And "DNS compatible" may be a bit too vague.

    As for spaces, we could trim them I think safely automatically. We do that in many other places already.

  7. changed the issue type fromtoon Aug 26, 2025
  8. moved this from Backlog to Triaged in 🧑‍🤝‍🧑 Community triageon Aug 26, 2025
  9. added a commit that references this issue on Apr 8, 2026
    805c293
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions