mysterious-portugal-30527
03/02/2022, 9:34 PMpermission denied for table someschema.blahblahblah
…but the user connecting to the instance can query said tables, validated via Postgres CLI. It is failing every table even though the user has select on all tables via role membership. Help!
Ingestion script follows:
source:
type: postgres
config:
host_port: 'somepostgreshost:port'
database: someuserdatabase
username: avaliduser
password: '${userpassword}'
schema_pattern:
allow:
- public
include_tables: true
include_views: true
profiling:
enabled: true
sink:
type: datahub-rest
config:
server: '<http://datahub-gms:8080>'
Error text snippet:
['Profiling exception (psycopg2.errors.InsufficientPrivilege) permission denied for "
"table '\n"
loud-island-88694
chilly-holiday-80781
03/02/2022, 10:03 PMmysterious-portugal-30527
03/02/2022, 10:06 PMloud-island-88694
loud-island-88694
"schema_pattern": {
"deny": ["information_schema"]
}
mysterious-portugal-30527
03/02/2022, 10:11 PMchilly-holiday-80781
03/02/2022, 10:13 PMmysterious-portugal-30527
03/02/2022, 10:15 PMmysterious-portugal-30527
03/02/2022, 10:16 PMdatahub docker check
The following issues were detected:
- datahub-gms is not running
mysterious-portugal-30527
03/02/2022, 10:23 PM'prodcat_mlflow_svc.public.tags': ['Profiling exception (psycopg2.errors.InsufficientPrivilege) permission denied for "
"table tags\\n'\n"
" '\\n'\n"
" '[SQL: SELECT count(*) AS count_1 \\n'\n"
" 'FROM public.tags]\\n'\n"
" '(Background on this error at: <http://sqlalche.me/e/13/f405)']>},\n"
" 'tables_scanned': 10,\n"
" 'views_scanned': 0,\n"
" 'entities_profiled': 10,\n"
" 'filtered': ['information_schema.*'],\n"
" 'soft_deleted_stale_entities': [],\n"
" 'query_combiner': {'total_queries': 50,\n"
" 'uncombined_queries_issued': 50,\n"
" 'combined_queries_issued': 10,\n"
" 'queries_combined': 10,\n"
" 'query_exceptions': 10}}\n"
'Sink (datahub-rest) report:\n'
"{'records_written': 27,\n"
" 'warnings': [],\n"
" 'failures': [],\n"
" 'downstream_start_time': datetime.datetime(2022, 3, 2, 22, 21, 24, 213217),\n"
" 'downstream_end_time': datetime.datetime(2022, 3, 2, 22, 21, 26, 371107),\n"
" 'downstream_total_latency_in_seconds': 2.15789}\n"
'\n'
'Pipeline finished with failures\n',
"2022-03-02 22:21:28.116367 [exec_id=4e3ce6f9-767b-40f2-ad08-93729d4634ab] INFO: Failed to execute 'datahub ingest'",
'2022-03-02 22:21:28.122718 [exec_id=4e3ce6f9-767b-40f2-ad08-93729d4634ab] INFO: Caught exception EXECUTING '
'task_id=4e3ce6f9-767b-40f2-ad08-93729d4634ab, name=RUN_INGEST, stacktrace=Traceback (most recent call last):\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/default_executor.py", line 119, in execute_task\n'
' self.event_loop.run_until_complete(task_future)\n'
' File "/usr/local/lib/python3.9/site-packages/nest_asyncio.py", line 81, in run_until_complete\n'
' return f.result()\n'
' File "/usr/local/lib/python3.9/asyncio/futures.py", line 201, in result\n'
' raise self._exception\n'
' File "/usr/local/lib/python3.9/asyncio/tasks.py", line 256, in __step\n'
' result = coro.send(None)\n'
' File "/usr/local/lib/python3.9/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 115, in execute\n'
' raise TaskError("Failed to execute \'datahub ingest\'")\n'
"acryl.executor.execution.task.TaskError: Failed to execute 'datahub ingest'\n"]}
Execution finished with errors.
chilly-holiday-80781
03/02/2022, 10:33 PMchilly-holiday-80781
03/02/2022, 10:33 PMmysterious-portugal-30527
03/02/2022, 10:38 PMchilly-holiday-80781
03/02/2022, 10:39 PMbig-carpet-38439
03/03/2022, 1:32 AMgray-shoe-75895
03/03/2022, 1:44 AMpgcli
and run the query
SELECT count(*) AS count_1 FROM public.tags
does that work? It seems to be complaining about a permissions issue which is pretty odd, so just want to make sure it’s an issue on our endmysterious-portugal-30527
03/03/2022, 1:45 AMSELECT count(*) AS count_1 FROM public.tags;
count_1
---------
678
(1 row)
gray-shoe-75895
03/03/2022, 1:48 AMprofiling -> query_combiner_enabled
set to false?mysterious-portugal-30527
03/03/2022, 2:19 AMmysterious-portugal-30527
03/03/2022, 2:41 AMFailed to load ingestion sources! An unknown error occurred.
loud-island-88694
mysterious-portugal-30527
03/03/2022, 4:54 PMbig-carpet-38439
03/03/2022, 5:05 PMbig-carpet-38439
03/03/2022, 5:05 PM