# Bucket exists but is not owned by you

**URL:** <https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798>\
**Category:** Sonatype Nexus Repository\
**Tags:** nexus-repository\
**Created:** [December 7, 2021, 3:20pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798 "2021-12-07T15:20:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio.carretero](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@antonio.carretero](https://community.sonatype.com/u/antonio.carretero)\
**Post date:** [December 7, 2021, 3:20pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/1 "2021-12-07T15:20:37Z")

</div>

Hi,

I did the upgrade to the OSS 3.36.0-01 but I can’t connect the S3 bucket for the blobs now. I tested this same user/bucket in 3.29 version and worked fine… so isn’t a permission thing.

I can’t do another upgrade right now… anyone can help me with that?

Thank you.

---

<div class="post-metadata">

**Author:** ![oshiyanbade](https://avatars.discourse-cdn.com/v4/letter/o/34f0e0/32.png) [@oshiyanbade](https://community.sonatype.com/u/oshiyanbade)\
**Post date:** [December 7, 2021, 4:06pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/2 "2021-12-07T16:06:30Z")

</div>

Hi Antonio,

Please can you confirm how you’re specifying your credentials to your Nexus Repository instance? That is, is it through IAM or directly via the ‘Authentication’ section of the S3 Blob Store Configuration?

If you’re specifying via IAM can you please try via the ‘Authentication’ section using temporary access keys in order to ascertain whether or not it’s an issue with your environment/deployment?

Thanks  
Olu

---

<div class="post-metadata">

**Author:** ![antonio.carretero](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@antonio.carretero](https://community.sonatype.com/u/antonio.carretero)\
**Post date:** [December 7, 2021, 4:38pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/3 "2021-12-07T16:38:13Z")

</div>

Hi Olu, I’m doing it in the “Authentication” section of the s3 blob store configuration as I did in the previous version with another one.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/a/a9b5e3d7fb8e6cf3f41b23d6598d28c7fe80adb3.png)

I put here my access key and secret access. it worked before with the same credentials.

---

<div class="post-metadata">

**Author:** ![oshiyanbade](https://avatars.discourse-cdn.com/v4/letter/o/34f0e0/32.png) [@oshiyanbade](https://community.sonatype.com/u/oshiyanbade)\
**Post date:** [December 7, 2021, 4:42pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/4 "2021-12-07T16:42:57Z")

</div>

Antonio,

Thanks for confirming. Please can you also confirm that the region you specified in the S3 Blobstore configuration page is the same as the region where the S3 bucket actually is?

Thanks  
Olu Shiyanbade

---

<div class="post-metadata">

**Author:** ![antonio.carretero](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@antonio.carretero](https://community.sonatype.com/u/antonio.carretero)\
**Post date:** [December 7, 2021, 5:04pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/5 "2021-12-07T17:04:58Z")

</div>

Yes, is the same and also the machine are in the same region.

Thank you.

---

<div class="post-metadata">

**Author:** ![antonio.carretero](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@antonio.carretero](https://community.sonatype.com/u/antonio.carretero)\
**Post date:** [December 9, 2021, 4:24pm UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/6 "2021-12-09T16:24:51Z")

</div>

Hi!  
Any ideas?

Thanks!

---

<div class="post-metadata">

**Author:** ![879582094](https://avatars.discourse-cdn.com/v4/letter/8/ea5d25/32.png) [@879582094](https://community.sonatype.com/u/879582094)\
**Post date:** [June 2, 2022, 7:52am UTC](https://community.sonatype.com/t/bucket-exists-but-is-not-owned-by-you/7798/7 "2022-06-02T07:52:01Z")

</div>

You need more privileges. Here is the minimal privileges for Nexus to manage s3 blob:

- ListBucket
- GetBucketAcl
- GetLifecycleConfiguration
- GetObject
- DeleteObject
- PutLifecycleConfiguration
- PutObject

You can using a user who has admin privileges to test this via CloudTrail’ log.  
Here is the Official Docs: [Configuring Blob Stores](https://help.sonatype.com/repomanager3/nexus-repository-administration/repository-management/configuring-blob-stores#ConfiguringBlobStores-AWSSimpleStorageService(S3))
