I am getting this error when using this flag --security-checks:
$ trivy --quiet image --security-checks .secrets $TRIVY_ARGS $TRIVY_SCAN_IMAGE
2023-02-03T17:49:34.457Z FATAL flag error: scan flag error: unable to parse security checks: unknown security check: .secrets
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
What I am trying to resolve is that I am getting an "Asymmetric Private Key" error because Trivy requires a private key when scanning secrets file.
================================================
Total: 1 (HIGH: 1, CRITICAL: 0)
HIGH: AsymmetricPrivateKey (private-key)
════════════════════════════════════════
Asymmetric Private Key
────────────────────────────────────────
/etc/ssl/private/ssl-cert-snakeoil.key:1 (added by 'apt-get install -y jq unzip python3-pan')
I am using the Trivy documentation to fix this error by adding this flag --security-checks. My initial code is this:
trivy --quiet image $TRIVY_ARGS $TRIVY_SCAN_IMAGE
I changed it to this:
trivy --quiet image --security-checks .secrets $TRIVY_ARGS $TRIVY_SCAN_IMAGE
I am getting this error:
$ trivy --quiet image --security-checks .secrets $TRIVY_ARGS $TRIVY_SCAN_IMAGE
2023-02-03T17:49:34.457Z FATAL flag error: scan flag error: unable to parse security checks: unknown security check: .secrets
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
I needed to add a valid parameter
trivy --quiet image --security-checks vuln $TRIVY_ARGS $TRIVY_SCAN_IMAGE
Related
I am follownig this tutorial - https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/get-started-chaincode.html - when i am using this command - docker exec cli peer lifecycle chaincode package ./abstore.tar.gz --path fabric-samples/chaincode/abstore/go/ --label abstore_1, this give me following error -
Error: failed to normalize chaincode path: 'go list' failed with: error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping.: exit status 1.
Expected result - it should create abstore.tar.gz file of chaincode.
I am using go version go1.18.4
could you try to add --lang go
this issue occurs when git is not configured properly.
I was trying to re-implement this code from Github and it requires me to install nvidia-docker and run it. The installation of nvidia-docker seemed successful. However, when I run the command nvidia-docker run -it --ipc=host deep-colorization, it throws the following error::
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:432: running prestart hook 1 caused \\\"error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: driver error: failed to process request\\\\n\\\"\"": unknown.
ERRO[0002] error waiting for container: context canceled
I am not sure what the error means as I don't have any previous experience with the docker ecosystem. Any kind of assistance is appreciated. I am running Ubuntu 18 by the way.
Thanking you in advance.
I have a pipeline with 3 jobs. The 2nd job would build docker file and upload.
But the 3rd stage failed with this error.
ERROR: Downloading artifacts from coordinator... error error=unexpected EOF
So I tried to use gitlab-runner artifacts-downloader to download artifacts on the runner machine.
$ sudo gitlab-runner artifacts-downloader --url https://gitlab.com/ --token xxx-xxxx --id 359820234
Runtime platform arch=amd64 os=linux pid=24718 revision=05161b14
version=12.4.1
ERROR: Downloading artifacts from coordinator... forbidden id=359820234 responseStatus=403 Forbidden status=403 Forbidden token=xxx-xxxx
FATAL: permission denied
However, I got the forbidden error. Did I miss anything?
Try
Hello there
I tried to build a linux with yocto. Usually, I use the command bitbake core-image-minimal and have no errors. Now, I'd like to use the realtime kernel version.
So I added the following lines in build/conf/local.conf according to this post:
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
COMPATIBLE_MACHINE_cyclone5 = "cyclone5"
COMPATIBLE_MACHINE_quilt-native = "cyclone5"
(I only changed the MACHINE to cyclone5 instead of beaglebone)
Error
The command bitbake core-image-rt throws the following error:
Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00
Loaded 1339 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.32.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "cyclone5"
DISTRO = "poky"
DISTRO_VERSION = "2.2"
TUNE_FEATURES = "arm armv7a vfp neon"
TARGET_FPU = "softfp"
meta
meta-poky
meta-yocto-bsp = "HEAD:73454473d7c286c41ee697f74052fed03c79f9f5"
meta-altera = "HEAD:ab2ee2812670be650d6a722de08dff9bf05131f8"
meta-ines = "master:819761a62e69ad09a14d877e2b9d9bbd5370b9e2"
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: stress-1.0.4-r0 do_fetch: Failed to fetch URL http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz, attempting MIRRORS if available
WARNING: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/linux-yocto-4.8.git;branch=standard/preempt-rt/base;name=machine, attempting MIRRORS if available
WARNING: rt-tests-1_1.1-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git, attempting MIRRORS if available
ERROR: stress-1.0.4-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/mc2/XYZ_Project_Verification/yocto/build/downloads 'http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz' --progress=dot -v failed with exit code 4, output:
--2017-11-08 17:29:51-- http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz
Resolving people.seas.harvard.edu (people.seas.harvard.edu)... 54.172.197.41
Connecting to people.seas.harvard.edu (people.seas.harvard.edu)|54.172.197.41|:80... failed: Connection refused.
ERROR: stress-1.0.4-r0 do_fetch: Fetcher failure for URL: 'http://people.seas.harvard.edu/~apw/stress/stress-1.0.4.tar.gz'. Unable to fetch URL from any source.
ERROR: stress-1.0.4-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/armv7a-neon-poky-linux-gnueabi/stress/1.0.4-r0/temp/log.do_fetch.25139
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-extended/stress/stress_1.0.4.bb:do_fetch) failed with exit code '1'
ERROR: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.yoctoproject.org/linux-yocto-4.8.git /home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.yoctoproject.org.linux-yocto-4.8.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.yoctoproject.org.linux-yocto-4.8.git'...
fatal: unable to connect to git.yoctoproject.org:
git.yoctoproject.org[0: 140.211.169.56]: errno=Connection refused
ERROR: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Fetcher failure for URL: 'git://git.yoctoproject.org/linux-yocto-4.8.git;branch=standard/preempt-rt/base;name=machine'. Unable to fetch URL from any source.
ERROR: linux-yocto-rt-4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/cyclone5-poky-linux-gnueabi/linux-yocto-rt/4.8.3+gitAUTOINC+83110d94ed_4057556c04-r0/temp/log.do_fetch.25135
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb:do_fetch) failed with exit code '1'
ERROR: rt-tests-1_1.1-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git /home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git'...
fatal: unable to connect to git.kernel.org:
git.kernel.org[0: 147.75.205.195]: errno=Connection refused
git.kernel.org[1: 2604:1380:2000:f000::7]: errno=Network is unreachable
ERROR: rt-tests-1_1.1-r0 do_fetch: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git'. Unable to fetch URL from any source.
ERROR: rt-tests-1_1.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/armv7a-neon-poky-linux-gnueabi/rt-tests/1_1.1-r0/temp/log.do_fetch.25136
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/rt-tests_1.1.bb:do_fetch) failed with exit code '1'
WARNING: hwlatdetect-1_1.1-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git, attempting MIRRORS if available
ERROR: hwlatdetect-1_1.1-r0 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-0nwPP5TSk1"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/cyclone5/usr/bin/crossscripts:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/usr/bin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/sbin:/home/mc2/XYZ_Project_Verification/yocto/build/tmp/sysroots/x86_64-linux/bin:/home/mc2/XYZ_Project_Verification/yocto/poky/scripts:/home/mc2/XYZ_Project_Verification/yocto/poky/bitbake/bin:/home/mc2/bin:/home/mc2/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"; export HOME="/home/mc2"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git /home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/mc2/XYZ_Project_Verification/yocto/build/downloads/git2/git.kernel.org.pub.scm.utils.rt-tests.rt-tests.git'...
fatal: unable to connect to git.kernel.org:
git.kernel.org[0: 147.75.205.195]: errno=Connection refused
git.kernel.org[1: 2604:1380:2000:f000::7]: errno=Network is unreachable
ERROR: hwlatdetect-1_1.1-r0 do_fetch: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git'. Unable to fetch URL from any source.
ERROR: hwlatdetect-1_1.1-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/mc2/XYZ_Project_Verification/yocto/build/tmp/work/armv7a-neon-poky-linux-gnueabi/hwlatdetect/1_1.1-r0/temp/log.do_fetch.25140
ERROR: Task (/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/hwlatdetect_1.1.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1353 tasks of which 1349 didn't need to be rerun and 4 failed.
Summary: 4 tasks failed:
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-extended/stress/stress_1.0.4.bb:do_fetch
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-kernel/linux/linux-yocto-rt_4.8.bb:do_fetch
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/rt-tests_1.1.bb:do_fetch
/home/mc2/XYZ_Project_Verification/yocto/build/../poky/meta/recipes-rt/rt-tests/hwlatdetect_1.1.bb:do_fetch
Summary: There were 4 WARNING messages shown.
Summary: There were 12 ERROR messages shown, returning a non-zero exit code.
I already checked the bb file. There is a linux-yocto_rt_4.8.bb file in yocto/poky/meta/recipes-kernel/linux
Any hints or suggestions how to solve this issue? Thanks in advance.
your error seems to fetching problem. Please connect internet it will solve your prblem.
I am following this tutorial https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html Where i have successfully generated my channel by using ./byfn.sh -m generate / up Now trying to start the network by using
# command: /bin/bash -c './scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'
I have faced following error :
Channel name : mychannel
Creating channel...
panic: Fatal error when initializing core config : Error when reading core config file:
Unsupported Config Type ""goroutine 1 [running]:panic(0xbb8400, 0xc0421fd4b0)
/opt/go/go1.7.linux.amd64/src/runtime/panic.go:500
+0x1afmain.main()/w/workspace/fabric-binaries-x86_64/gopath/src/github.com/
hyperledger/fabric/peer/main.go:94 +0x859
!!!!!!!!!!!!!!! Channel creation failed !!!!!!!!!!!!!!!!
========= ERROR !!! FAILED to execute End-2-End Scenario ===========
I think the network was not ready to run that script.
Please modify the command like this:
command: /bin/bash -c 'sleep 10s; ./scripts/script.sh ${CHANNEL_NAME}; sleep $TIMEOUT'