{"record":{"id":"5e46fa8e9014505a","repo":"rustfs/rustfs","slug":"system-has-not-been-initialized","errorCode":null,"errorMessage":"System has not been initialized","messagePattern":"System has not been initialized","errorType":"exception","errorClass":"LifecycleError","httpStatus":null,"severity":"error","filePath":"crates/notify/src/error.rs","lineNumber":28,"sourceCode":"//  distributed under the License is distributed on an \"AS IS\" BASIS,\n//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n//  See the License for the specific language governing permissions and\n//  limitations under the License.\n\nuse rustfs_targets::{TargetError, arn::TargetID};\nuse std::io;\nuse thiserror::Error;\nuse tokio::task::JoinError;\n\n/// Errors related to the notification system's lifecycle.\n#[derive(Debug, Error)]\npub enum LifecycleError {\n    /// Error indicating the system has already been initialized.\n    #[error(\"System has already been initialized\")]\n    AlreadyInitialized,\n\n    /// Error indicating the system has not been initialized yet.\n    #[error(\"System has not been initialized\")]\n    NotInitialized,\n}\n\n/// Error types for the notification system\n#[derive(Debug, Error)]\npub enum NotificationError {\n    #[error(\"Target error: {0}\")]\n    Target(#[from] TargetError),\n\n    #[error(\"Configuration error: {0}\")]\n    Configuration(String),\n\n    #[error(\"ARN not found: {0}\")]\n    ARNNotFound(String),\n\n    #[error(\"Invalid ARN: {0}\")]\n    InvalidARN(String),\n","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/rustfs/rustfs/blob/35af688cd9d41b4346fbe27dcf7250ba72046c1f/crates/notify/src/error.rs#L10-L46","documentation":"Notification-system lifecycle guard: an operation required the global notification system, but it has not been initialized yet (sentinel NotInitialized). Fired when targets/rules are used before the system's init completed or after a failed init.","triggerScenarios":"Thrown at crates/notify/src/error.rs:28 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Initialize the notification system before issuing notification operations","Check startup logs for an earlier initialization failure and fix it"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35af688cd9d41b4346fbe27dcf7250ba72046c1f","analyzedAt":"2026-08-20T21:57:04.799Z","contentChangedAt":"2026-08-20T21:57:04.799Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}