# Cannot authenticate to terraform repository

**URL:** <https://community.sonatype.com/t/cannot-authenticate-to-terraform-repository/16208>\
**Category:** Sonatype Nexus Repository\
**Tags:** help\
**Created:** [April 1, 2026, 8:28pm UTC](https://community.sonatype.com/t/cannot-authenticate-to-terraform-repository/16208 "2026-04-01T20:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![OrfeasZ](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@OrfeasZ](https://community.sonatype.com/u/OrfeasZ)\
**Post date:** [May 6, 2026, 3:04pm UTC](https://community.sonatype.com/t/cannot-authenticate-to-terraform-repository/16208/6 "2026-05-06T15:04:44Z")

</div>

After a lot of head scratching I managed to fix the issue by updating my user’s roles (added one, saved, removed it again, and saved again). Maybe something went wrong during the migration to H2? Not entirely sure, but at least it works now!

---

_[View the full topic](https://community.sonatype.com/t/cannot-authenticate-to-terraform-repository/16208)._
