average-vr-23088
08/05/2022, 5:03 PMUnable to emit metadata to DataHub GMS
401 Client Error: Unauthorized for url: <http://datahub-gms.datahub.local:8080/aspects?action=ingestProposal>
I’m running DataHub v0.8.40 and DataHub Actions v0.0.4. The above log is showing up in the DataHub actions container.
I have configured the DataHub Actions container with the client id and secret for GMS as well.
It is worth noting that this setup was working previously but I migrated data from one DataHub deployment to another deployment. They both had the same version of containers but the client id / secrets and token generation secrets differed between the two. After the migration, which involved copying the metadata v2 table and ReIndexing, i’m getting ingestion failures.
I’ve also tried deleting the ingestion as well as the secrets it references and recreating them with no success.
I noticed another warning in the logs:
❗Client-Server Incompatible❗ Your client version 0.8.38.2 is older than your server version 0.8.40. Upgrading the cli to 0.8.40 is recommended
I’m guessing the latest release of the actions container doesn’t use the up to date CLI version? Would i need to set the UI_INGESTION_DEFAULT_CLI_VERSION=0.8.38.2
in GMS?incalculable-ocean-74010
08/05/2022, 5:07 PMincalculable-ocean-74010
08/05/2022, 5:07 PMaverage-vr-23088
08/05/2022, 5:09 PMincalculable-ocean-74010
08/05/2022, 5:15 PMincalculable-ocean-74010
08/05/2022, 5:16 PMaverage-vr-23088
08/05/2022, 5:22 PMaverage-vr-23088
08/05/2022, 8:28 PMincalculable-ocean-74010
08/08/2022, 8:37 AMaverage-vr-23088
08/08/2022, 2:58 PMsink
definition thinking that DataHub Actions container would fill in the appropriate details for GMS. However, although it does fill in the address of GMS, it doesn’t seem to pass along the auth info — I have auth enabled on GMS. I checked the docs and they state to pass along a user generated token, but these tokens have a max lifetime of 3 months, which isn’t ideal. I ended up adding a sink definition which uses the client_id and secret from the datahub actions container to pass along an Authorization header as part of the calls to gms.
sink:
type: datahub-rest
config:
server: '<http://datahub-gms.datahub.local:8080>'
extra_headers:
Authorization: 'Basic ${DATAHUB_SYSTEM_CLIENT_ID}:${DATAHUB_SYSTEM_CLIENT_SECRET}'
This configuration ends up working. I’m kind of surprised that I need to explicitly add this though. I would think that this would be a default config. Maybe i’m doing something else wrong. cc @incalculable-ocean-74010incalculable-ocean-74010
08/08/2022, 3:03 PMbig-carpet-38439
08/11/2022, 8:25 PMbig-carpet-38439
08/11/2022, 8:25 PMaverage-vr-23088
08/11/2022, 8:28 PMbig-carpet-38439
08/18/2022, 4:42 AMbig-carpet-38439
08/18/2022, 4:42 AMbig-carpet-38439
08/18/2022, 4:45 AMbig-carpet-38439
08/18/2022, 4:46 AMbig-carpet-38439
08/18/2022, 4:46 AMtall-queen-61078
08/29/2022, 1:44 PM