<@U04SE163WC8>, how to downgrade source or destin...
# ask-ai
a
@kapa.ai, how to downgrade source or destination version?
k
To downgrade a source or destination version in Airbyte, you can follow these steps based on the provided knowledge sources: ### Downgrading a Source or Destination Version 1. Identify the Version to Downgrade To: - Determine the specific version you want to downgrade to. This could be based on a previously working version or a version known to be stable. 2. Modify the Version in the Airbyte Configuration: - If you are using the Airbyte platform, you can change the version by editing the
VERSION
at the top of the
./run-ab-platform.sh
script. 3. Execute the Downgrade Commands: - Follow these steps to change the version and restart your Airbyte instance:
Copy code
bash # Change version on `./run-ab-platform.sh` to the desired version VERSION=0.50.20  # Replace with your desired version  # If your instance is running, bring it down docker compose down  # Remove your docker-compose and .env files ./run-ab-platform.sh -r  # Bring your instance back up for the required version ./run-ab-platform.sh -b
- This will download the
docker-compose.yml
and
.env
files for your required version. If you have customized these files, you can run
./run-ab-platform.sh -d
to download them without running
docker compose up
. 4. Reset Configuration if Necessary: - If the Airbyte instance does not start properly, you may need to reset your configuration. This means redoing all sources, destinations, and connections.
Copy code
bash # Warning: Resetting your configuration # You may have to reset your configuration if the Airbyte instance does not start properly. # This means redoing all sources, destinations, and connections.
### Additional Considerations - Rolling Back to Legacy Normalization: - If you are an Open Source user and encounter issues after upgrading to Destinations V2, you can optionally roll back. This process involves clearing each of your upgraded connections and manually typing in the previous destination version in the Airbyte UI. For more detailed instructions, you can refer to the following knowledge sources: - [Downgrading Airbyte Version](https://github.com/airbytehq/airbyte/issues/30287) - [Rolling Back to Legacy Normalization](https://docs.airbyte.com/release_notes/upgrading_to_destinations_v2#open-source-only-rolling-back-to-legacy-normalization) If you encounter any issues or need further assistance, feel free to reach out to the Airbyte support team or community forums.
a
@kapa.ai not entire deployment but just single actor
k
A message from kapa.ai
To downgrade a single actor (source or destination) in Airbyte without affecting the entire deployment, you can follow these steps: ### Downgrading a Single Actor 1. Identify the Actor and Version: - Determine the specific actor (source or destination) and the version you want to downgrade to. 2. Update the Actor Definition Version: - You can manually update the actor definition version in the Airbyte database. This involves running a SQL command to set the desired version for the specific actor. 3. Execute the SQL Command: - Use the following SQL command to update the actor definition version. Replace
ACTOR_DEFINITION_ID
with the ID of the actor you want to downgrade and
NEW_VERSION
with the desired version.
Copy code
sh docker exec -ti airbyte-db psql -U docker -d airbyte -c "UPDATE actor_definition_version SET version = 'NEW_VERSION' WHERE actor_definition_id = 'ACTOR_DEFINITION_ID';"
### Example If you want to downgrade a specific source or destination to version
0.44.0
, you would replace
NEW_VERSION
with
0.44.0
and
ACTOR_DEFINITION_ID
with the actual ID of the actor.
Copy code
sh docker exec -ti airbyte-db psql -U docker -d airbyte -c "UPDATE actor_definition_version SET version = '0.44.0' WHERE actor_definition_id = 'your_actor_definition_id';"
### Additional Considerations - Check for Null Documentation URLs: - If you encounter issues related to documentation URLs being null, you can run the following command to update the
documentation_url
field:
Copy code
sh docker exec -ti airbyte-db psql -U docker -d airbyte -c "UPDATE actor_definition_version SET documentation_url = '' WHERE documentation_url IS NULL;"
This command ensures that any null
documentation_url
fields are set to an empty string, which can resolve certain issues. For more detailed instructions and troubleshooting, you can refer to the following knowledge sources: - [Downgrading Airbyte Version](https://github.com/airbytehq/airbyte/issues/30287) - [Updating Actor Definition Version](https://github.com/airbytehq/airbyte/issues/28779) If you encounter any issues or need further assistance, feel free to reach out to the Airbyte support team or community forums.