Júlia Lemes
09/11/2025, 4:50 PMkapa.ai
09/11/2025, 4:51 PMERROR i.a.c.s.e.h.IdNotFoundExceptionHandler(handle):33 - Not found exception class NotFoundKnownExceptionInfo { id: null message: Id not found: Could not find attempt stats for job_id: 4 and attempt no: 0 exceptionClassName: io.airbyte.commons.server.errors.IdNotFoundKnownException means that Airbyte's server is unable to find the statistics for the specified job attempt (in this case, job_id: 4, attempt no: 0). This is typically thrown by the AttemptHandler when it tries to retrieve attempt statistics from the persistence layer, but the data is missing or inaccessible. This issue has been reported by other users, especially in environments where external storage (like GCS or S3) is used for logs, states, or workload outputs. It can be related to misconfiguration or issues with how Airbyte accesses or stores job attempt data in external storage. For example, users have encountered this after migrating from MinIO to GCS, or when using Helm deployments with GCS or S3 for storage. The error is not specific to Postgres, but rather to the job/attempt tracking infrastructure in Airbyte itself. The root cause can include: - Misconfigured environment variables for storage backends (e.g., GCS/S3 credentials or bucket names). - Incomplete or failed migrations of job/attempt metadata. - Airbyte not being able to read/write attempt stats due to permission or connectivity issues with the storage backend. You can find more details and similar reports in these sources: - [Github Issue: Using GCS Results in could not find attempt stats for job_id](https://github.com/airbytehq/airbyte/issues/48503) - [Forum Post: JobHistoryHandler - "Missing stats for job" warning](https://discuss.airbyte.io/t/4016) Recommended next steps: 1. Double-check your storage backend configuration (GCS/S3/MinIO) and ensure all relevant environment variables are set correctly on all Airbyte components (server, worker, etc.). 2. Verify that Airbyte has the necessary permissions to read/write to the configured storage. 3. If you recently migrated storage backends or upgraded Airbyte, ensure all migrations completed successfully and that no data was lost or left behind. 4. Review the logs for any related errors or warnings that might indicate storage or connectivity issues. If the problem persists, consider sharing your configuration and deployment details in the Airbyte community forums or GitHub for more targeted troubleshooting.