<@U04S8PLJWMT> how to pin version of source-declar...
# ask-ai
t
@kapa.ai how to pin version of source-declarative-manifest image required by connector-builder-server
k
To pin the version of the
source-declarative-manifest
image required by the Connector Builder Server, you need to ensure that the correct image version is referenced in your Airbyte deployment and that the corresponding version is present in the
declarative_manifest_image_version
table in your Airbyte database. From the issues and documentation: 1. Database Table Requirement: The Airbyte platform uses the
declarative_manifest_image_version
table to map major manifest versions to specific image versions and SHAs. If the required major version is missing from this table, the Builder Server will fail with an error like:
Copy code
Internal Server Error: No declarative manifest image version found in database for major version 5
To resolve this, you must insert the desired version into the table. For example:
Copy code
sql    INSERT INTO declarative_manifest_image_version    VALUES (5, '5.7.5', DEFAULT, DEFAULT, 'sha256:4832cc13b262b4cae4ba72b07da544e6ee2f5d216b7147483480d5ebc5d0d7ca');
This pins major version 5 to image version
5.7.5
with the specified SHA. Adjust the values as needed for your environment and the version you want to pin [see example](https://github.com/airbytehq/airbyte/issues/45398). 2. Image Version Consistency: The version of
airbyte/source-declarative-manifest
used by the Builder Server must be compatible with the manifest version in your connector. If you encounter errors like:
Copy code
The manifest version 4.6.2 is greater than the airbyte-cdk package version (4.3.0)
it means the image version is too old for the manifest. You need to update the image version in your deployment and ensure the database table reflects this version [see details](https://github.com/airbytehq/airbyte/issues/45398). 3. Helm/Kubernetes Deployments: If you are using Helm, the image version may be set in your values file or overridden in your deployment configuration. However, some users have reported that even after updating the image tag, Airbyte may reset it on pod restart if the database table is not updated accordingly [see discussion](https://github.com/airbytehq/airbyte/issues/45398). Summary: - Update the
declarative_manifest_image_version
table with the desired version and SHA. - Ensure your deployment (Helm values, Kubernetes manifests) references the same image version. - Confirm that the manifest version in your connector does not exceed the
airbyte-cdk
version in the image. If you follow these steps, you can effectively pin the version of
source-declarative-manifest
required by the Connector Builder Server. If you are missing a major version in the database, you must insert it manually as shown above.
t
How airbyte knows there is a newer version of this image
@kapa.ai
k
Sorry @Thế Minh Huỳnh, I'm not sure what you mean. Please try again. 👋
t
@kapa.ai how airbyte knows there is a newer version of this image
k
A message from kapa.ai
Airbyte determines if there is a newer version of the
source-declarative-manifest
image by periodically fetching image tags and SHAs from DockerHub. This process is handled by the
RemoteDeclarativeManifestImageVersionsProvider
, which retrieves the available versions and their corresponding SHAs for the
airbyte/source-declarative-manifest
image. The system then updates its internal records with the latest versions found. You can see this in the logs:
Copy code
INFO  RemoteDeclarativeManifestImageVersionsProvider(getTagsAndShasForRepository):52 - Fetching image tags and SHAs for airbyte/source-declarative-manifest... INFO  RemoteDeclarativeManifestImageVersionsProvider(getLatestDeclarativeManifestImageVersions):40 - Latest versions for airbyte/source-declarative-manifest: [5.4.0, 4.6.2, 3.13.0, 2.1.0, 1.7.0, 0.90.0] INFO  DeclarativeSourcesUpdater(updateDefinitions):47 - Done updating declarative sources.
This mechanism allows Airbyte to stay aware of new image versions as they are published to DockerHub, and to update its internal catalog accordingly [see source](https://github.com/airbytehq/airbyte/issues/44928).
t
How to disable this mechanism @kapa.ai
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain information on how to disable Airbyte's mechanism for checking and updating to newer versions of the
source-declarative-manifest
image. There is documentation and log evidence that Airbyte periodically fetches image tags and SHAs from DockerHub, but there are no instructions or configuration options mentioned for disabling this update mechanism in the provided sources.