Hello,
I have a IDS cluster with Zeek and I try to add some packages using the Zeek Package Manager.
The thing is that this cluster has not internet access, so I try to use the bundle/unbundle method.
I have a different system with zeek installed where I have done the package installation, and then zkg bundle.
When I do the unbundle on my Zeek Manager node I get the following error:
[zeek@idslog01 ~]$ zkg -vvv unbundle zeek-packages.bundle
2020-10-19 18:00:38 DEBUG init Manager version 2.3.1
2020-10-19 18:00:38 DEBUG creating source clone of “zeek” at /opt/zeek/.zkg/clones/source/zeek
2020-10-19 18:00:38 WARNING failed to clone git repo: ‘git clone --recursive --depth=1 https://github.com/zeek/packages /opt/zeek/.zkg/clones/source/zeek --no-single-branch’ returned with exit code 128
stderr: ‘fatal: unable to access ‘https://github.com/zeek/packages/’: Failed to connect to 140.82.118.4: Network is unreachable’
warning: skipped using package source named “zeek”: failed to clone git repo
2020-10-19 18:00:38 DEBUG getting bundle info for file “zeek-packages.bundle”
2020-10-19 18:00:38 DEBUG getting info for bundled package “hassh”
2020-10-19 18:00:38 DEBUG getting info on “/opt/zeek/.zkg/scratch/bundle/hassh”
2020-10-19 18:00:38 INFO getting info on “/opt/zeek/.zkg/scratch/bundle/hassh”: invalid git repo path: ‘git fetch --tags --no-recurse-submodules’ returned with exit code 128
stderr: 'fatal: attempt to fetch/clone from a shallow repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.’
2020-10-19 18:00:38 INFO getting info on “/opt/zeek/.zkg/scratch/bundle/hassh”: matched no source package
2020-10-19 18:00:38 DEBUG getting info for bundled package “ja3”
2020-10-19 18:00:38 DEBUG getting info on “/opt/zeek/.zkg/scratch/bundle/ja3”
2020-10-19 18:00:38 INFO getting info on “/opt/zeek/.zkg/scratch/bundle/ja3”: invalid git repo path: ‘git fetch --tags --no-recurse-submodules’ returned with exit code 128
stderr: 'fatal: attempt to fetch/clone from a shallow repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.’
2020-10-19 18:00:38 INFO getting info on “/opt/zeek/.zkg/scratch/bundle/ja3”: matched no source package
error: bundle zeek-packages.bundle contains invalid package /opt/zeek/.zkg/scratch/bundle/hassh: package name not found in sources and also not a usable git URL (invalid or inaccessible, use -vvv for details)
Zeek itself and the package manager are installed using RPM.
Zeek version 3.0.11
zkg version 2.3.1
Could someone help me getting this fixed, or help me understand what I’m doing wrong?