Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
1
-
SDK34
Description
the build scripts fail to prepare environment for build and test of the SDK. It should be migrated to current version.
[2024-08-05T18:07:36.967Z] + bin/jenkins/install-dependencies.sh
|
[2024-08-05T18:07:36.967Z] HOSTNAME=a4e19f371e83
|
[2024-08-05T18:07:36.967Z] NODE_NAME=build-centos7-a4e19f371e83
|
[2024-08-05T18:07:36.967Z] CONTAINER_TAG=couchbasebuild/sdk-centos7-build:20230419
|
[2024-08-05T18:07:36.967Z] JENKINS_SLAVE_LABELS=sdk centos7
|
[2024-08-05T18:07:36.967Z] NODE_LABELS=swarm build-centos7-a4e19f371e83 couchbasebuild_sdk-centos7-build:20230419 sdk centos7
|
[2024-08-05T18:07:36.967Z] + set -e
|
[2024-08-05T18:07:36.967Z] + '[' -f /etc/os-release ']'
|
[2024-08-05T18:07:36.967Z] ++ grep -o '^ID=.*' /etc/os-release
|
[2024-08-05T18:07:36.967Z] ++ sed 's/ID=\|"//g'
|
[2024-08-05T18:07:36.967Z] + OS_ID=centos
|
[2024-08-05T18:07:36.967Z] ++ grep -o '^VERSION_ID=.*' /etc/os-release
|
[2024-08-05T18:07:36.967Z] ++ sed 's/VERSION_ID=\|"//g'
|
[2024-08-05T18:07:36.967Z] + OS_VERSION=7
|
[2024-08-05T18:07:36.967Z] + case ${OS_ID} in
|
[2024-08-05T18:07:36.967Z] + exec /home/couchbase/jenkins/workspace/ruby/ruby-build-pipeline/build-centos7-2629/bin/jenkins/install-dependencies-for-centos.sh
|
[2024-08-05T18:07:36.967Z] + set -e
|
[2024-08-05T18:07:36.967Z] ++ id -u
|
[2024-08-05T18:07:36.967Z] + '[' 1000 -ne 0 ']'
|
[2024-08-05T18:07:36.967Z] + SUDO='sudo '
|
[2024-08-05T18:07:36.967Z] + command -v ruby
|
[2024-08-05T18:07:36.967Z] + '[' '!' -d /opt/rh/devtoolset-11/root ']'
|
[2024-08-05T18:07:36.967Z] + sudo yum install -y epel-release centos-release-scl
|
[2024-08-05T18:07:36.967Z] Loaded plugins: fastestmirror, ovl
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z] One of the configured repositories failed (Unknown),
|
[2024-08-05T18:07:36.967Z] and yum doesn't have enough cached data to continue. At this point the only
|
[2024-08-05T18:07:36.967Z] safe thing yum can do is fail. There are a few ways to work "fix" this:
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z] 1. Contact the upstream for the repository and get them to fix the problem.
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z] 2. Reconfigure the baseurl/etc. for the repository, to point to a working
|
[2024-08-05T18:07:36.967Z] upstream. This is most often useful if you are using a newer
|
[2024-08-05T18:07:36.967Z] distribution release than is supported by the repository (and the
|
[2024-08-05T18:07:36.967Z] packages for the previous distribution release still work).
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z] 3. Run the command with the repository temporarily disabled
|
[2024-08-05T18:07:36.967Z] yum --disablerepo=<repoid> ...
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z] 4. Disable the repository permanently, so yum won't use it by default. Yum
|
[2024-08-05T18:07:36.967Z] will then just ignore the repository until you permanently enable it
|
[2024-08-05T18:07:36.967Z] again or use --enablerepo for temporary usage:
|
[2024-08-05T18:07:36.967Z]
|
[2024-08-05T18:07:36.967Z] yum-config-manager --disable <repoid>
|
[2024-08-05T18:07:36.968Z] or
|
[2024-08-05T18:07:36.968Z] subscription-manager repos --disable=<repoid>
|
[2024-08-05T18:07:36.968Z]
|
[2024-08-05T18:07:36.968Z] 5. Configure the failing repository to be skipped, if it is unavailable.
|
[2024-08-05T18:07:36.968Z] Note that yum will try to contact the repo. when it runs most commands,
|
[2024-08-05T18:07:36.968Z] so will have to try and fail each time (and thus. yum will be be much
|
[2024-08-05T18:07:36.968Z] slower). If it is a very temporary problem though, this is often a nice
|
[2024-08-05T18:07:36.968Z] compromise:
|
[2024-08-05T18:07:36.968Z]
|
[2024-08-05T18:07:36.968Z] yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true
|
[2024-08-05T18:07:36.968Z]
|
[2024-08-05T18:07:36.968Z] Cannot find a valid baseurl for repo: base/7/x86_64
|
[2024-08-05T18:07:36.968Z] Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
|
[2024-08-05T18:07:36.968Z] 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Name or service not known"
|
script returned exit code 1
|