-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot scan rustc software - keeps timing out - after 24 hours #1623
Comments
I do not know how to diagnose these errors, but I ran the scan_codebase pipeline for this archive (also with SCIO v34.9.5 on an Ubuntu server. I tried this because a source archive is not really a package. The scan completed in 5.9 hours with the following key stats:
Unfortunately the XLSX (80 MB) and JSON (200+ MB) files are too large to upload here - which points to the fact that this is a very large codebase. I have uploaded the MESSAGES sheet from the Scan here. |
so it is now 7:16AM and my job has been running again for 10 hours, and it is at the point "Running 6/8 run_scan" - and so far there are 68 messages (all from extract archive, appears to be files in a bad format), not sure this affects the overall scan, or just that it ends up skipping files it doesn't understand. but I don't have any faith this will succeed. so I'm stuck, and not sure what to do. |
@ilovemaui See https://scancodeio.readthedocs.io/en/latest/application-settings.html#scancodeio-task-timeout |
Some stats from the error MESSAGES:
So the primary reason for errors seems to be large test files which is not an uncommon issue for scanning. |
Describe the bug
So I have been trying for a week now to scan Rust for licenses, and no matter what I do, it keeps timing out after 24 hours. I am not sure how to get this to scan, or possibly to extend the 24 hour timeout.
System configuration
Device name PF4FF87R
Processor 12th Gen Intel(R) Core(TM) i7-1270P 2.20 GHz
Installed RAM 32.0 GB (31.6 GB usable)
Device ID 2BFEED46-1F14-4226-9935-88F501727E7A
Product ID 00330-80000-00000-AA029
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 10 Enterprise
Version 22H2
Installed on 8/25/2023
OS build 19045.5487
Experience Windows Feature Experience Pack 1000.19061.1000.0
https://static.rust-lang.org/dist/rustc-1.85.0-src.tar.xz
Scan_single_package
To Reproduce
Steps to reproduce the behavior:
Task exceeded maximum timeout value (86400 seconds)
Traceback:
File "/opt/scancodeio/aboutcode/pipeline/init.py", line 199, in execute
step(self)
File "/opt/scancodeio/scanpipe/pipelines/scan_single_package.py", line 107, in run_scan
scanning_errors = scancode.run_scan(
^^^^^^^^^^^^^^^^^^
File "/opt/scancodeio/scanpipe/pipes/scancode.py", line 749, in run_scan
_success, results = scancode_run_scan(
^^^^^^^^^^^^^^^^^^
File "/opt/scancodeio/.venv/lib/python3.12/site-packages/scancode/cli.py", line 944, in run_scan
scan_success = run_scanners(
^^^^^^^^^^^^^
File "/opt/scancodeio/.venv/lib/python3.12/site-packages/scancode/cli.py", line 1186, in run_scanners
scan_success = scan_codebase(
^^^^^^^^^^^^^^
File "/opt/scancodeio/.venv/lib/python3.12/site-packages/scancode/cli.py", line 1294, in scan_codebase
scan_timings) = next(scans)
^^^^^^^^^^^
File "/opt/scancodeio/.venv/lib/python3.12/site-packages/scancode/pool.py", line 74, in wrap
result = func(self, timeout=timeout or 3600)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/multiprocessing/pool.py", line 861, in next
self._cond.wait(timeout)
File "/usr/local/lib/python3.12/threading.py", line 359, in wait
gotit = waiter.acquire(True, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/scancodeio/.venv/lib/python3.12/site-packages/rq/timeouts.py", line 63, in handle_death_penalty
raise self._exception('Task exceeded maximum timeout value ({0} seconds)'.format(self._timeout))
The text was updated successfully, but these errors were encountered: