lakekeeper: View not found or action can_get_metadata forbidden for Principal

Description

When configuring metabase to sync metadata from lakekeeper using the following query: SHOW TABLES FROM "lakekeeper_dev"."system", we see these logs in the lakekeeper pod "View not found or action can_get_metadata forbidden for Principal(oidc~{GUID})"

System Information:

  • Deployment Type: helm chart
  • Lakekeeper Version: 0.8.3
  • Authentication Provider: EntraID
  • Authorization Provider: OpenFGA

full log line

{"timestamp":"2025-04-30T14:47:53.002601Z","level":"INFO","message":"Error response","error_id":"0196872b-21aa-7770-aa28-c18acc41d0d1","stack_s":"View not found or action can_get_metadata forbidden for Principal(oidc~{GUID})","details":"[]","message":"View not found or action can_get_metadata forbidden for Principal(oidc~85ce0e1f-24ef-4d00-8a3a-303421bc2bd9)","r#type":"ViewActionForbidden","code":"404","target":"iceberg_ext::catalog::rest::error","filename":"crates/iceberg-ext/src/catalog/rest/error.rs","line_number":252,"span":{"method":"GET","request_id":"b1cc4ca9757d0e14f3d724b2fb0c7fc4","uri":"/catalog/v1/13817976-1ac4-11f0-9bfe-d7e553d0e1cb/namespaces/slurm/views/hpc_stats","version":"HTTP/1.1","name":"request"},"spans":[{"method":"GET","request_id":"b1cc4ca9757d0e14f3d724b2fb0c7fc4","uri":"/catalog/v1/13817976-1ac4-11f0-9bfe-d7e553d0e1cb/namespaces/slurm/views/hpc_stats","version":"HTTP/1.1","name":"request"}]}

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

I will work on getting reproducible steps for this.

For the query engine we are using Trino 475. I would like to note the difference with your example is that you are querying within a specific schema of ‘finance’. That also works without issue for us. But when Metabase performs an automatic sync, this runs the command on the ‘system’ catalog and that is what fails. Are you able to run your previous example successfully with:

SHOW TABLES FROM system

I’ve been able to reproduce the error now from our minimal example

> print(cur.execute("SHOW TABLES from system").fetchall())
TrinoExternalError: TrinoExternalError(type=EXTERNAL, name=ICEBERG_CATALOG_ERROR, message="Error listing tables for catalog lakekeeper: Failed to list views", query_id=20250520_140137_00011_4bzxt)