{"record":{"id":"c25e045e801a8318","repo":"influxdata/influxdb","slug":"s3-support-not-enabled-recompile-with-the-aws-feature","errorCode":null,"errorMessage":"S3 support not enabled, recompile with the aws feature enabled","messagePattern":"S3 support not enabled, recompile with the aws feature enabled","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"critical","filePath":"influxdb3_clap_blocks/src/object_store.rs","lineNumber":960,"sourceCode":"                        r\n                    };\n\n                    Ok(r)\n                }\n\n                #[cfg(feature = \"aws\")]\n                pub fn build_s3_signer(&self) -> Result<object_store::aws::AmazonS3, ParseError> {\n                    let builder = self.s3_builder()?;\n\n                    builder.build().context(InvalidS3ConfigSnafu)\n                }\n\n                #[cfg(not(feature = \"aws\"))]\n                fn new_s3(\n                    &self,\n                    _semaphore_metrics: &Arc<tracker::AsyncSemaphoreMetrics>,\n                ) -> Result<object_store_limit::LimitObjectStore, ParseError> {\n                    panic!(\"S3 support not enabled, recompile with the aws feature enabled\")\n                }\n\n                #[cfg(feature = \"azure\")]\n                fn new_azure(\n                    &self,\n                    semaphore_metrics: &Arc<tracker::AsyncSemaphoreMetrics>,\n                ) -> Result<object_store_limit::LimitObjectStore, ParseError> {\n                    use object_store::azure::MicrosoftAzureBuilder;\n\n                    info!(bucket=?self.bucket, account=?self.azure_storage_account,\n                          endpoint=?self.azure_endpoint, object_store_type=\"Azure\", \"Object Store\");\n\n                    let mut builder = MicrosoftAzureBuilder::from_env().with_client_options(self.client_options()?);\n\n                    if let Some(bucket) = &self.bucket {\n                        builder = builder.with_container_name(bucket);\n                    }\n                    if let Some(account) = &self.azure_storage_account {","sourceCodeStart":942,"sourceCodeEnd":978,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_clap_blocks/src/object_store.rs#L942-L978","documentation":"A runtime panic in `influxdb3_clap_blocks::object_store`. When the `aws` cargo feature is not compiled in, the stub `new_s3` constructor unconditionally panics with this message. Selecting Amazon S3 (or S3-compatible) as the object store in a binary built without that feature triggers the panic at store construction time.","triggerScenarios":"Building influxdb3 without `--features aws` and then configuring the object store as S3 (e.g. `object-store = s3 ...`), so `new_s3` is invoked during config parsing/store setup.","commonSituations":"Running a locally built binary (default features) against an AWS deployment, or a slim Docker image stripped of the aws feature while the environment's config points at S3.","solutions":["Rebuild/reinstall influxdb3 with the aws feature enabled (e.g. `cargo build --features aws` or use an S3-enabled distribution).","Switch the configured object store to a type supported by the current build (e.g. file) if S3 is not required.","Audit build scripts/CI so release binaries always include the storage features the deployment target needs."],"exampleFix":"// before\ncargo build --release\n\n// after\ncargo build --release --features aws","handlingStrategy":"validation","validationCode":"# Verify S3 support before deploying:\ncargo tree -e features -p influxdb3_clap_blocks | grep -q 'feature \"aws\"' && echo aws-enabled || echo aws-MISSING","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Build release binaries with --features aws when targeting S3 backends.","Match the configured object-store type to the build's enabled features.","Add a smoke test that constructs the S3 store from the production config.","Keep CI release builds aligned with deployment storage requirements."],"tags":["panic","feature-flags","s3","aws","object-store","build-configuration"],"backgroundTag":"feature-not-enabled","analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}