Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard resources began to fail with Nexus 3.70.1-02 #467

Open
1 task done
splatch opened this issue Sep 3, 2024 · 1 comment
Open
1 task done

Standard resources began to fail with Nexus 3.70.1-02 #467

splatch opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@splatch
Copy link

splatch commented Sep 3, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

I started update of nexus to more recent versions and as I had close-to-recent version I started tinkering with terraform config. Sadly, some of resources which worked earlier started to throw errors.

│   with module.nexus_config.nexus_security_realms.security_realms,
│   on ../../modules/repository-connectorio-cloud/main.tf line 31, in resource "nexus_security_realms" "security_realms":
│   31: resource "nexus_security_realms" "security_realms" {
│ 
╵
╷
│ Error: could not read file blobstores: HTTP: 401, 
│ 
│   with module.nexus_config.data.nexus_blobstore_file.default,
│   on ../../modules/repository-connectorio-cloud/main.tf line 37, in data "nexus_blobstore_file" "default":
│   37: data "nexus_blobstore_file" "default" {
│ 
╵
╷
│ Error: could not read file blobstores: HTTP: 401, 
│ 
│   with module.nexus_config.nexus_blobstore_file.yocto-downloads,
│   on ../../modules/repository-connectorio-cloud/main.tf line 41, in resource "nexus_blobstore_file" "yocto-downloads":
│   41: resource "nexus_blobstore_file" "yocto-downloads" {
│ 
╵
╷
│ Error: could not read file blobstores: HTTP: 401, 
│ 
│   with module.nexus_config.nexus_blobstore_file.yocto-states,
│   on ../../modules/repository-connectorio-cloud/main.tf line 52, in resource "nexus_blobstore_file" "yocto-states":
│   52: resource "nexus_blobstore_file" "yocto-states" {
│ 
╵
╷
│ Error: Empty Summary: This is always a bug in the provider and should be reported to the provider developers.
│ 
│   with module.nexus_config.nexus_security_role.nx-bot,
│   on ../../modules/repository-connectorio-cloud/main.tf line 87, in resource "nexus_security_role" "nx-bot":
│   87: resource "nexus_security_role" "nx-bot" {
│ 
╵
╷
│ Error: Empty Summary: This is always a bug in the provider and should be reported to the provider developers.
│ 
│   with module.nexus_config.nexus_security_role.nx-thing4-bot,
│   on ../../modules/repository-connectorio-cloud/main.tf line 113, in resource "nexus_security_role" "nx-thing4-bot":
│  113: resource "nexus_security_role" "nx-thing4-bot" {

Terraform Version

v1.9.5

Nexus Provider Version

2.4.0

Nexus Version

3.70.1-02

Affected Resource(s)/Data Source(s)

nexus_security_realms, nexus_blobstore_file, nexus_security_role

Terraform Configuration Files

resource "nexus_security_realms" "security_realms" {
  active = [
    "NexusAuthenticatingRealm"
  ]
}

data "nexus_blobstore_file" "default" {
  name = "default"
}


resource "nexus_blobstore_file" "yocto-downloads" {
  name = "yocto-downloads"
  path = "/yocto/repositories"

  soft_quota {
    limit = 78643200
    type  = "spaceUsedQuota"
  }

}

resource "nexus_security_role" "nx-bot" {
  description = "Bot which can access and read/write to repositories."
  name        = "CI/CD Bot"
  privileges = [
    "nx-repository-view-maven2-co7io-public-releases-add",
    "nx-repository-view-maven2-co7io-public-releases-edit",
    "nx-repository-view-maven2-co7io-public-releases-read",
    "nx-repository-view-maven2-co7io-public-snapshots-add",
    "nx-repository-view-maven2-co7io-public-snapshots-edit",
    "nx-repository-view-maven2-co7io-public-snapshots-read",
    "nx-repository-view-maven2-maven-central-read",
    "nx-repository-view-maven2-maven-jcenter-read",
    "nx-repository-view-maven2-openhab-read"
  ]
  roleid = "nx-bot"
  roles = [
    "nx-anonymous",
  ]
}

resource "nexus_security_role" "nx-thing4-bot" {
  description = "Bot which can access and read/write to repositories."
  name        = "CI/CD Bot - thing4"
  privileges = [
    "nx-repository-view-maven2-thing4-releases-add",
    "nx-repository-view-maven2-thing4-releases-edit",
    "nx-repository-view-maven2-thing4-releases-read",
    "nx-repository-view-maven2-thing4-snapshots-add",
    "nx-repository-view-maven2-thing4-snapshots-edit",
    "nx-repository-view-maven2-thing4-snapshots-read"
  ]
  roleid = "nx-thing4-bot"
  roles = [
    "nx-anonymous",
  ]
}

Debug Output/Panic Output

https://gist.github.com/splatch/d2ac47e50fe6d28d3c008bdd0dcea089

Expected Behaviour

No response

Actual Behaviour

No response

Steps to Reproduce

No response

References

No response

@splatch splatch added the bug Something isn't working label Sep 3, 2024
@chris-ruecker
Copy link
Contributor

Hi, @splatch i could not reproduce the issue with v.2.4.0 and Nexus 3.70.1.

Is this error still occuring for you?

Since you were getting 401's, i suspect some access token must have expired or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants