Unable to mount GCS bucket with underscores in the name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 03:42 PM
I have two buckets with the same configurations and labels.One is named my-bucket and the other is my_bucket. I am able to mount my-bucket but get an opaque error message when trying to mount my_bucket. Is this known/expected behavior? Are underscores unsupported in bucket names? I know AWS does not support them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2024 08:37 AM
Hello it seems this is a known issue which is being worked by our engineering team. This is because when handling the mount point information we are using java.net.URI which does not accept _
in the hostname.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2024 12:53 AM
Thanks Walter. Is there a workaround beyond deleting/renaming/duplicating the buckets? That would be duping a lot of data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 02:04 AM
@Walter_C thanks again for the update. Following up with another question as we need to make a decision on our bucket naming this week. Is there documentation explaining any other limitations, or any other unsupported characters? We'd hate to have to migrate everything again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 04:25 AM
Hi @legobricks ,
Curious on the error that you are getting. However, for GCS - https://cloud.google.com/storage/docs/buckets#naming I do see underscores are allowed but there is also a note below:
You can use a bucket name in a DNS record as part of a CNAME
or A
redirect.This means that your bucket name should not use underscores (_
) or have a period next to another period or dash. For example, ..
, -.
, and .-
are invalid character combinations within DNS names.
This lists the general bucket naming rules for AWS. https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
Thanks!

