Skip to content

A process in the process pool was terminated abruptly #522

Description

@bwjohnson-ss

When running scancode.io locally on my mac, I get this odd error when trying to run a scan_codebase pipeline. It seems it fails, but doesn't provide enough info on why. Here's the information it provides:

2022-09-09 21:52:44.04 Pipeline [scan_codebase] starting
2022-09-09 21:52:44.15 Step [copy_inputs_to_codebase_directory] starting
2022-09-09 21:52:44.24 Step [copy_inputs_to_codebase_directory] completed in 0.09 seconds
2022-09-09 21:52:44.25 Step [extract_archives] starting
2022-09-09 21:52:45.00 Step [extract_archives] completed in 0.76 seconds
2022-09-09 21:52:45.01 Step [collect_and_create_codebase_resources] starting
2022-09-09 21:52:49.75 Step [collect_and_create_codebase_resources] completed in 4.74 seconds
2022-09-09 21:52:49.75 Step [tag_empty_files] starting
2022-09-09 21:52:49.81 Step [tag_empty_files] completed in 0.06 seconds
2022-09-09 21:52:49.81 Step [scan_for_application_packages] starting
2022-09-09 21:53:17.12 Step [scan_for_application_packages] completed in 27.30 seconds
2022-09-09 21:53:17.13 Step [scan_for_files] starting
2022-09-09 21:53:20.83 Pipeline failed
Task output
A process in the process pool was terminated abruptly while the future was running or pending.

Traceback:
  File "/app/scanpipe/pipelines/__init__.py", line 115, in execute
    step(self)
  File "/app/scanpipe/pipelines/scan_codebase.py", line 99, in scan_for_files
    scancode.scan_for_files(self.project)
  File "/app/scanpipe/pipes/scancode.py", line 310, in scan_for_files
    _scan_and_save(resource_qs, scan_file, save_scan_file_results)
  File "/app/scanpipe/pipes/scancode.py", line 297, in _scan_and_save
    scan_results, scan_errors = future.result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception

Mac Specs:
image

Docker Desktop version:
image

Repro Steps:

  1. git clone https://github.com/nexB/scancode.io.git && cd scancode.io
  1. make envfile
  2. docker-compose build
  3. docker-compuse up
  4. navigate to localhost
  5. add a new project
  6. upload source (https://github.com/bcicen/ctop) and start scan_codebase pipeline
  7. it fails with error

Here are the logs from docker:
docker-logs.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions