How do i fix these fetching errors during image build? - embedded-linux

I'm new to build embedded linux image and i'm receiving this error message:
WARNING: gnu-config-native-20190501+gitAUTOINC+b98424c249-r0 do_fetch: Failed to fetch URL git://git.savannah.gnu.org/config.git, attempting MIRRORS if available
WARNING: pkgconfig-native-0.29.2+gitAUTOINC+edf8e6f0ea-r0 do_fetch: Failed to fetch URL git://anongit.freedesktop.org/pkg-config, attempting MIRRORS if available
WARNING: pseudo-native-1.9.0+gitAUTOINC+060058bb29-r0 do_fetch: Failed to fetch URL git://git.yoctoproject.org/pseudo, attempting MIRRORS if available
WARNING: libxcrypt-4.4.8-r0 do_fetch: Failed to fetch URL git://github.com/besser82/libxcrypt.git;branch=develop, attempting MIRRORS if available
WARNING: rpm-native-1_4.14.2.1-r0 do_fetch: Failed to fetch URL git://github.com/rpm-software-management/rpm;branch=rpm-4.18.x, attempting MIRRORS if available
WARNING: binutils-cross-arm-2.32.0-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/binutils-gdb.git;branch=binutils-2_32-branch;protocol=git, attempting MIRRORS if available
WARNING: ninja-native-1.9.0-r0 do_fetch: Failed to fetch URL git://github.com/ninja-build/ninja.git;branch=release, attempting MIRRORS if available
WARNING: kmod-26-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git, attempting MIRRORS if available
WARNING: ncurses-native-6.1+20190803-r0 do_fetch: Failed to fetch URL git://salsa.debian.org/debian/ncurses.git;protocol=https, attempting MIRRORS if available
WARNING: libnsl2-native-1.2.0+gitAUTOINC+37c5ffe303-r0 do_fetch: Failed to fetch URL git://github.com/thkukuk/libnsl;protocol=https;branch=main, attempting MIRRORS if available
WARNING: file-native-5.37-r0 do_fetch: Failed to fetch URL git://github.com/file/file.git, attempting MIRRORS if available
WARNING: e2fsprogs-native-1.45.3-r0 do_fetch: Failed to fetch URL git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git, attempting MIRRORS if available
WARNING: glibc-2.30-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/glibc.git;branch=release/2.30/master;name=glibc, attempting MIRRORS if available
WARNING: systemd-1_243.2-r0 do_fetch: Failed to fetch URL git://github.com/systemd/systemd-stable.git;protocol=git;branch=v243-stable, attempting MIRRORS if available
ERROR: libnsl2-native-1.2.0+gitAUTOINC+37c5ffe303-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; unset _PYTHON_SYSCONFIGDATA_NAME; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"; export SSH_AGENT_PID="1409"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/hetech/caio-testes/oe-repo/oe-core/scripts/native-intercept:/home/hetech/caio-testes/oe-repo/oe-core/scripts:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/work/x86_64-linux/libnsl2-native/1.2.0+gitAUTOINC+37c5ffe303-r0/recipe-sysroot-native/usr/bin/x86_64-linux:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/work/x86_64-linux/libnsl2-native/1.2.0+gitAUTOINC+37c5ffe303-r0/recipe-sysroot-native/usr/bin:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/work/x86_64-linux/libnsl2-native/1.2.0+gitAUTOINC+37c5ffe303-r0/recipe-sysroot-native/usr/sbin:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/work/x86_64-linux/libnsl2-native/1.2.0+gitAUTOINC+37c5ffe303-r0/recipe-sysroot-native/usr/bin:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/work/x86_64-linux/libnsl2-native/1.2.0+gitAUTOINC+37c5ffe303-r0/recipe-sysroot-native/sbin:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/work/x86_64-linux/libnsl2-native/1.2.0+gitAUTOINC+37c5ffe303-r0/recipe-sysroot-native/bin:/home/hetech/caio-testes/oe-repo/build/xsct/Vitis/2020.3/bin:/home/hetech/caio-testes/oe-repo/build/xsct/Vitis/2020.3/gnu/microblaze/lin/bin:/home/hetech/caio-testes/oe-repo/build/xsct/Vitis/2020.3/gnu/aarch32/lin/gcc-arm-none-eabi/bin:/home/hetech/caio-testes/oe-repo/build/xsct/Vitis/2020.3/gnu/armr5/lin/gcc-arm-none-eabi/bin:/home/hetech/caio-testes/oe-repo/build/xsct/Vitis/2020.3/gnu/aarch64/lin/aarch64-none/bin:/home/hetech/caio-testes/oe-repo/bitbake/bin:/home/hetech/caio-testes/oe-repo/build/tmp-glibc/hosttools"; export HOME="/home/hetech"; git -c core.fsyncobjectfiles=0 remote failed with exit code 1, output:
Traceback (most recent call last):
File "/home/hetech/caio-testes/oe-repo/build/tmp-glibc/hosttools/git", line 30, in
os.execv(real_git, sys.argv)
TypeError: execv: path should be string, bytes or os.PathLike, not NoneType
Summary: 10 tasks failed:
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-extended/libnsl/libnsl2_git.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/gnu-config/gnu-config_git.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-core/ncurses/ncurses_6.1+20190803.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/file/file_5.37.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.3.bb:do_fetch
virtual:native:/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/rpm/rpm_4.14.2.1.bb:do_fetch
/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-core/glibc/glibc_2.30.bb:do_fetch
/home/hetech/caio-testes/oe-repo/oe-core/meta/recipes-devtools/binutils/binutils-cross_2.32.bb:do_fetch
Summary: There were 10 WARNING messages shown.
Summary: There were 20 ERROR messages shown, returning a non-zero exit code.
I've tried to change the branches in bb files from master to main. But the error persisted even on those i'd changed.

Related

Exporting dependencies from package which is existing vendor

I am new to golang and glide dependency management tool. I am trying to run glide install in created my company project. I have met an error about go-xorm library.
[ERROR] Update failed for github.com/go-xorm/xorm: Unable to get repository: Cloning into '/Users/xxx/.glide/cache/src/https-github.com-go-xorm-xorm'...
remote: Repository `go-xorm/xorm' is disabled.
remote: Please ask the owner to check their account.
fatal: unable to access 'https://github.com/go-xorm/xorm/': The requested URL returned error: 403
: exit status 128
[ERROR] Failed to checkout packages: Unable to get repository: Cloning into '/Users/xxx/.glide/cache/src/https-github.com-go-xorm-xorm'...
remote: Repository `go-xorm/xorm' is disabled.
remote: Please ask the owner to check their account.
fatal: unable to access 'https://github.com/go-xorm/xorm/': The requested URL returned error: 403
: exit status 128
It's seem that I am not able to download it from github because the owner made it disabled to clone.
How can I fix this error or Is there any way to export directly from local vendor without fetching from github. I am sure that the package is already on my local vendor folder. Thank you so much!!!
This is because XORM moved from Github (repo is still available as Public Archive) to Gitea and instead of github.com/go-xorm/xorm they now use xorm.io/xorm.
I'd recommend to stop using glide completely and replace it with Go Modules based workflow; but if you must use it, you will need to remove github.com/go-xorm/xorm from your glide.yaml, add xorm.io/xorm (you can use glide get to do so) and fix your imports everywhere in codebase.

Go get from GCP source repositories

I'm trying to go get a repository from GCP Source repositories.
This seems to be very very poorly documented but what I tried to do was running go get source.developers.google.com/p/[MY-PROJECT]/r/[MY_REPO].git.
But I got the error:
go: downloading source.developers.google.com/p/[MY-PROJECT]/r/[MY_REPO].git v0.0.0-20210621185528-a62b060bc13d
go get: source.developers.google.com/p/[MY-PROJECT]/r/[MY_REPO].git#v0.0.0-20210621185528-a62b060bc13d: verifying
module: source.developers.google.com/p/[MY-PROJECT]/r/[MY_REPO].git#v0.0.0-20210621185528-a62b060bc13d: reading https://sum.golang.org/lookup/source.developers.google.com/p/[MY-PROJECT]/r/[MY_REPO].git#v0.0.0-20210621185528-a62b060bc13d: 410 Gone
server response:
not found: source.developers.google.com/p/[MY-PROJECT]/r/[MY_REPO].git#v0.0.0-20210621185528-a62b060bc13d: invalid version: git fetch -f origin refs/heads/:refs/heads/ refs/tags/:refs/tags/ in /tmp/gopath/pkg/mod/cache/vcs/3eb4fda67ba3d1beb54fafd4a7594a34c06a66c44b1ffd91759a1b7362ecfa4d: exit status 128:
fatal: unable to connect to source.developers.google.com:
source.developers.google.com[0: 173.194.200.82]: errno=Connection refused
source.developers.google.com[1: 2607:f8b0:4003:c0d::52]: errno=Connection refused
How can I make it work?
Fixed by adding GOPRIVATE=source.developers.google.com. Seems that go mod was trying to use a public connection which was being refused by Source.

Using golang-ci lint error fetch corp package

Im using golangci-lint and getting the following error in CI, any idea what could be the reason? and how can I avoid this.
Our GitHub repo is already have all the vendor packages so it shouldn't install it in first place.
golangci-lint run --config golangci.yml
level=error msg="Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit
status 1: stderr: go: github.avt.corp/ding/logger-ut#v1.1.0:
unrecognized import path "github.avt.corp/ding/logger-ut" (https
fetch: Get https://github.avt.corp/ding/logger-ut?go-get=1: x509:
certificate signed by unknown authority)\n"
btw I was able to clone the project and run it
Use the following:
run:
modules-download-mode: vendor
or add this to the command you are runnig
--modules-download-mode vendor

GitLab CI Error: Uploading artifacts to coordinator - failed - responseStatus 400 Bad Request

I'm working with GitLab (free edition) pipelines and started receiving the error below on a pipeline that was working.
This is a minimal example from my .gitlab-ci.yml that reproduce the error (Although I don't think it is related to my code):
default:
image: node:10-alpine
stages:
- build
build:
stage: build
script:
- npm install
artifacts:
paths:
- node_modules/
only:
- Staging
.
.
.
Error's log:
64 packages are looking for funding
run `npm fund` for details
Running after_script
Saving cache
Uploading artifacts for successful job
Uploading artifacts...
node_modules/: found 62788 matching files
WARNING: Uploading artifacts to coordinator... failed id=512111 responseStatus=400 Bad Request status=400 Bad Request token=4Dwaaa
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts to coordinator... failed id=512111 responseStatus=400 Bad Request status=400 Bad Request token=4Dwaaa
WARNING: Retrying... context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts to coordinator... failed id=512111 responseStatus=400 Bad Request status=400 Bad Request token=4Dwaaa
FATAL: invalid argument
ERROR: Job failed: exit code 1
Found this thread in Stackoverfow but it is related to different status error.
There are multiple threads (1 , 2 , 3 ) on this issue on Gitlab forum but it is hard to understand the cause of the problem and how to resolve it.
Any help will be highly appriciated.

How see what exactly cookbook were uploaded fail?

I try to upload cookbook with dependencies, here is a log:
[root#redhat cookbooks]# knife cookbook upload reference-app --include-dependencies
Uploading my-cookbook [0.1.0]
Uploading maven [1.2.0]
Uploading hipsnip-jetty [0.9.0]
Uploading ark [0.9.0]
Uploading java [1.29.0]
Uploading windows [1.34.8]
Uploading 7-zip [1.0.2]
Uploading chef_handler [1.1.6]
WARNING: Uploaded 8 cookbooks ok but 2 cookbooks upload failed.
It is all log. Is there a way to sse what cookbook were failed exactly?
Using the verbose flag will show you why it didn't upload correctly.
For instance I added some bad code to the apt cookbook...
[scarman#coldlight cookbooks]$ knife cookbook upload apt --include-dependencies -n -V
Uploading apt [2.6.0]
INFO: Validating ruby files
FATAL: Cookbook file recipes/default.rb has a ruby syntax error:
FATAL: /home/scarman/DevOps/cookbooks/apt/recipes/default.rb:29: `##' is not allowed as an instance variable name
FATAL: /home/scarman/DevOps/cookbooks/apt/recipes/default.rb:29: syntax error, unexpected end-of-input, expecting '('
FATAL: uha897*#S::##!!
FATAL: ^
And also turned my internet off for a moment...
[scarman#coldlight cookbooks]$ knife cookbook upload apt --include-dependencies -n -V
ERROR: Error connecting to https://api.opscode.com/organizations/cls-chef/cookbooks?num_versions=all, retry 1/5
ERROR: Error connecting to https://api.opscode.com/organizations/cls-chef/cookbooks?num_versions=all, retry 2/5
ERROR: Error connecting to https://api.opscode.com/organizations/cls-chef/cookbooks?num_versions=all, retry 3/5
ERROR: Error connecting to https://api.opscode.com/organizations/cls-chef/cookbooks?num_versions=all, retry 4/5
ERROR: Error connecting to https://api.opscode.com/organizations/cls-chef/cookbooks?num_versions=all, retry 5/5
ERROR: Network Error: Error connecting to https://api.opscode.com/organizations/cls-chef/cookbooks?num_versions=all - getaddrinfo: Name or service not known
Check your knife configuration and network settings
That should hopefully provide you with more insight as to why it's failing.

Resources