quickwit-oss/quickwit · error

Quickwit was compiled without the `sqs` feature

Error message

Quickwit was compiled without the `sqs` feature

What it means

The file source was configured with SQS queue notifications, but the Quickwit binary was built without the `sqs` cargo feature, so the SQS queue-coordinator code is not compiled in. `typed_create_source` bails instead of silently creating a non-functional source.

Source

Thrown at quickwit/quickwit-indexing/src/source/file_source.rs:186

                )
                .await?;
                FileSourceState::Filepath {
                    batch_reader,
                    num_bytes_processed: 0,
                    num_lines_processed: 0,
                }
            }
            #[cfg(feature = "sqs")]
            FileSourceParams::Notifications(quickwit_config::FileSourceNotification::Sqs(
                sqs_config,
            )) => {
                let coordinator =
                    QueueCoordinator::try_from_sqs_config(sqs_config, source_runtime).await?;
                FileSourceState::Notification(Box::new(coordinator))
            }
            #[cfg(not(feature = "sqs"))]
            FileSourceParams::Notifications(quickwit_config::FileSourceNotification::Sqs(_)) => {
                anyhow::bail!("Quickwit was compiled without the `sqs` feature")
            }
        };

        Ok(FileSource {
            state,
            source_id,
            source_type,
        })
    }
}

#[cfg(test)]
mod tests {
    use std::num::NonZeroUsize;
    use std::str::FromStr;

    use bytes::Bytes;
    use quickwit_actors::{Command, Universe};

View on GitHub (pinned to a39730c5cd)

Solutions

  1. Rebuild Quickwit with the `sqs` feature enabled (it is on by default in the standard build): `cargo build --features sqs` or use the official release binary/image.
  2. Alternatively, change the source to a non-SQS notification type or push mode.

Example fix

// before (source config with sqs notifications on a no-sqs build)
notifications:
  type: sqs
  queue_url: https://sqs.us-east-1.amazonaws.com/123/my-queue
// after: build with the feature
cargo build --release --features sqs
Defensive patterns

Strategy: validation

Validate before calling

// before deploying, check the binary supports sqs
quickwit version && cargo tree -p quickwit-indexing -e features | grep -q sqs || echo 'sqs feature missing'

Prevention

When it happens

Trigger: Creating/starting a file source whose `FileSourceParams::Notifications` is `FileSourceNotification::Sqs(_)` on a binary compiled with `#[cfg(not(feature = "sqs"))]`.

Common situations: Running an official Docker image or a custom build that omits the `sqs` feature while an index config points at an S3-backed file source with SQS notifications.

Related errors


AI-assisted analysis of quickwit-oss/quickwit@a39730c5cd (2026-09-08). Data as JSON: /api/errors/c6a2af21f16ea03e. Report an issue: GitHub.