rustfs/rustfs · error · rustfs_policy::error::Error

NoSuchResource

NoSuchResource

Error message

group '{0}' does not exist

What it means

Policy error variant meaning the named group is absent from the identity store when resolving membership or attaching policy. The group name is embedded; callers map it to NoSuchEntity. It is the missing-entity guard — GroupNotEmpty is the related but distinct integrity guard on group removal.

Source

Thrown at crates/policy/src/error.rs:42

    #[error("{0}")]
    StringError(String),

    #[error("crypto: {0}")]
    CryptoError(#[from] rustfs_crypto::Error),

    #[error("user '{0}' does not exist")]
    NoSuchUser(String),

    #[error("account '{0}' does not exist")]
    NoSuchAccount(String),

    #[error("service account '{0}' does not exist")]
    NoSuchServiceAccount(String),

    #[error("temp account '{0}' does not exist")]
    NoSuchTempAccount(String),

    #[error("group '{0}' does not exist")]
    NoSuchGroup(String),

    #[error("policy does not exist")]
    NoSuchPolicy,

    #[error("policy in use")]
    PolicyInUse,

    #[error("group not empty")]
    GroupNotEmpty,

    #[error("invalid arguments specified")]
    InvalidArgument,

    #[error("not initialized")]
    IamSysNotInitialized,

    #[error("invalid service type: {0}")]

View on GitHub (pinned to 35af688cd9)

Solutions

  1. Create the group before referencing it
  2. Fix the group name or remove stale group references
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/policy/src/error.rs:42 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of rustfs/rustfs@35af688cd9 (2026-08-20). Data as JSON: /api/errors/d5780f1371d3049d. Report an issue: GitHub.