Re-Ingesting Data
Re-Ingest data into Xyne
Incase you have restarted the app or simply want to re-ingest your data into the Xyne app, you can use the following steps to do so :
Steps to Re-Ingest Data into the Xyne app:
-
First we need to bash into the docker container running the database, i.e.,
xyne-db
. For this use : -
This will take you inside the docker container. You will see that you’re logged-in as a
root
user and also see thecontainer id
with it. -
This means you’re now inside the docker container successfully, after this you need to login to the postgres database as a xyne user.
-
For this, use the following command :
-
Once you’ve logged in to the postgres database as a Xyne user, you will see this :
-
Next, you wanna see the list of tables in the database, use :
-
This will show you the list of tables in the postgres database, out of the tables, we will be working with
connectors
andoauth_providers
,sync_jobs
and alsosync_history
. -
Now we will have a look at the contents of each table using the following commands :
You can useq
to exit viewing the table contents- Oauth Providers
- Connectors
- Sync Jobs
and
- Sync History
id
for each table because you might need it later. -
This will show you the contents of the table.
-
Now lets remove the contents of the tables, for this use either:
Truncate
OR [If you face issues with the truncation]
Delete
-
Oauth Providers
- Connectors
- Sync Jobs
and
- Sync History
-
Once this is done, you can
exit
out of the db and docker-container using the command: -
After doing this, when you revisit your connectors page for ingestion, you will see the form for the account like you initially did when ingesting.