Skip to content

Broken environment for Web UI LDAP ingestion. #17943

Description

@Linux-oiD

Describe the bug
Looks like the LDAP ingestion from the UI stopped working because of dependencies issue for python-ldap

To Reproduce
Set up an LDAP sync via Web UI:

  1. Go to Data Sources
  2. Create new Ingestion source for LDAP
  3. Try to execute
  4. See error

Expected behavior
An ingestion run completed successfully/
Logs

~~~~ Execution Summary - RUN_INGEST ~~~~
Execution finished with errors.
{'exec_id': 'ee1c46d4-906b-4428-b619-543e12fe458b',
 'infos': ['2026-06-17 01:00:00.147336 INFO: Starting execution for task with name=RUN_INGEST',
           '2026-06-17 01:00:02.168483 INFO: Caught exception EXECUTING task_id=ee1c46d4-906b-4428-b619-543e12fe458b, name=RUN_INGEST, stacktrace=  '
           '+ Exception Group Traceback (most recent call last):\n'
           '  |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 241, in collapse_excgroups\n'
           '  |     yield\n'
           '  |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 281, in execute\n'
           '  |     async with self._process, anyio.create_task_group() as tg:\n'
           '  |   File "/home/datahub/.venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 799, in __aexit__\n'
           '  |     raise BaseExceptionGroup(\n'
           '  | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)\n'
           '  +-+---------------- 1 ----------------\n'
           '    | Traceback (most recent call last):\n'
           '    |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 292, in '
           '_setup_venv\n'
           '    |     venv_ref = await setup_venv(\n'
           '    |                ^^^^^^^^^^^^^^^^^\n'
           '    |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 459, in setup_venv\n'
           '    |     await runner.execute(\n'
           '    |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 280, in execute\n'
           '    |     with collapse_excgroups():\n'
           '    |   File "/usr/lib/python3.11/contextlib.py", line 158, in __exit__\n'
           '    |     self.gen.throw(typ, value, traceback)\n'
           '    |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 247, in collapse_excgroups\n'
           '    |     raise exc\n'
           '    |   File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 301, in execute\n'
           '    |     raise subprocess.CalledProcessError(\n'
           "    | subprocess.CalledProcessError: Command '['/usr/bin/uv', 'pip', 'install', '-r', "
           "'/tmp/datahub/ingest/ee1c46d4-906b-4428-b619-543e12fe458b/venv-ldap-c0ca1e3a310d1804/requirements.txt']' returned non-zero exit status "
           '1.\n'
           '    +------------------------------------\n'
           '\n'
           'During handling of the above exception, another exception occurred:\n'
           '\n'
           'Traceback (most recent call last):\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 292, in '
           '_setup_venv\n'
           '    venv_ref = await setup_venv(\n'
           '               ^^^^^^^^^^^^^^^^^\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 459, in setup_venv\n'
           '    await runner.execute(\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 280, in execute\n'
           '    with collapse_excgroups():\n'
           '  File "/usr/lib/python3.11/contextlib.py", line 158, in __exit__\n'
           '    self.gen.throw(typ, value, traceback)\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 247, in collapse_excgroups\n'
           '    raise exc\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/runner.py", line 301, in execute\n'
           '    raise subprocess.CalledProcessError(\n'
           "subprocess.CalledProcessError: Command '['/usr/bin/uv', 'pip', 'install', '-r', "
           "'/tmp/datahub/ingest/ee1c46d4-906b-4428-b619-543e12fe458b/venv-ldap-c0ca1e3a310d1804/requirements.txt']' returned non-zero exit status "
           '1.\n'
           '\n'
           'The above exception was the direct cause of the following exception:\n'
           '\n'
           'Traceback (most recent call last):\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/default_executor.py", line 153, in execute_task\n'
           '    task_event_loop.run_until_complete(task_future)\n'
           '  File "/usr/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete\n'
           '    return future.result()\n'
           '           ^^^^^^^^^^^^^^^\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 372, in execute\n'
           '    await self._execute_with_debug(validated_args, ctx, exec_id)\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 424, in '
           '_execute_with_debug\n'
           '    ingest_process = await self._create_subprocess(\n'
           '                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 320, in '
           '_create_subprocess\n'
           '    venv_ref = await self._setup_venv(\n'
           '               ^^^^^^^^^^^^^^^^^^^^^^^\n'
           '  File "/home/datahub/.venv/lib/python3.11/site-packages/acryl/executor/execution/sub_process_ingestion_task.py", line 306, in '
           '_setup_venv\n'
           '    raise TaskError(f"Failed to set up virtual environment: {e}") from e\n'
           "acryl.executor.execution.task.TaskError: Failed to set up virtual environment: Command '['/usr/bin/uv', 'pip', 'install', '-r', "
           "'/tmp/datahub/ingest/ee1c46d4-906b-4428-b619-543e12fe458b/venv-ldap-c0ca1e3a310d1804/requirements.txt']' returned non-zero exit status "
           '1.\n'],
 'errors': []}

~~~~ Ingestion Logs ~~~~

Desktop (please complete the following information):

  • Version 1.5.0.6
  • Datahub-actions container tag:
    docker.io/acryldata/datahub-actions:v1.5.0.6
    Additional context
    Looks like pip is trying to build python-ldap dependency from source but datahub-actions container image doesn't have gcc and headers libraries installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug report

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions