Hello! I’m having trouble <enabling metadata serv...
# troubleshoot
h
Hello! I’m having trouble enabling metadata service authentication. I’ve added env variable
METADATA_SERVICE_AUTH_ENABLED=true
to frontend AND gms. I restarted them and logged out/in again. I receive this error in gms logs showing that it’s not sending the token over as it should:
Copy code
com.datahub.authentication.AuthenticationException: Failed to authenticate inbound request: Authorization header is missing 'Basic' prefix.
👋 1
I’m using version
v0.8.26
. Any ideas? @big-carpet-38439
I don’t know if I’m looking at the right file, but it seems if OIDC is enabled then token is not sent to gms from frontend (because of the ordering of ifs): https://github.com/linkedin/datahub/blob/master/datahub-frontend/app/controllers/Application.java#L269
Could it be the issue? since I have enabled Okta integration.
e
I believe this is to make sure requests from the frontend gets authenticated as well as the requests from the api
Are you using Bearer tokens when sending the curl requests to frontend for API access?
👍 1
b
@hallowed-gpu-49827 Are things working functionally? You can typically ignore this error - we've recently downgraded it to a debug log
🙏 1
b
im also seeing the same exception messages inside the logs, although its doesnt seem to break anything (metadata-authentication enabled instance)
👍 2
h
It seems the
analytics
is not working but that might be another problem. Thanks for your reply folks!
e
On the analytics page, did you run elasticsearch-setup job before running gms?
b
Yeah that should be unrelated