AppThreat / AppThreat/vulnerability-db
Exception when running inside a container
- Dominant language
- Python
- Stars
- 151
- Forks
- 23
- Avg merge
- 22m
- Merged PRs (30d)
- 7
Description
When running the VDB inside a Docker container (through `depscan` image), we got the following exception:
```
Performing regular scan for / using plugin bom
Traceback (most recent call last):
File "/usr/local/bin/depscan", line 8, in
sys.exit(main())
^^^^^^
File "/opt/dep-scan/depscan/cli.py", line 1032, in main
vdb_results, pkg_aliases, sug_version_dict, purl_aliases = scan(
^^^^^
File "/opt/dep-scan/depscan/cli.py", line 318, in scan
results, pkg_aliases, purl_aliases = utils.search_pkgs(
^^^^^^^^^^^^^^^^^^
File "/opt/dep-scan/depscan/lib/utils.py", line 242, in search_pkgs
raw_results = db_lib.pkg_bulk_search(db, quick_res)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/vdb/lib/db.py", line 307, in pkg_bulk_search
datas = storage.stream_bulk_search(pkg_key_list, _key_func, db_file=db["db_file"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/vdb/lib/storage.py", line 93, in stream_bulk_search
fp.seek(int(store_pos))
OSError: [Errno 25] Inappropriate ioctl for device
```
For now, this is not being reproduced on Linux but only on mac os.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.