Closed TheMasterFX closed 3 years ago
Thanks for reaching out! How did you configure the mirror?
Thanks for reaching out! How did you configure the mirror?
I made a mirror via reposync and just made it public via nginx and the *.repo files points to that server. yum installs/updates are working fine. But I don't get buildah to run. Interestingly the first step "install bash coreutils" is working fine. Errors are coming on all repos != BaseOS
Could you add this to your dnf/yum lines --setopt=tsflags=nocontexts
I tried it. Doesn't help either. I realized that after bash and coreutils it hangs at downloading Appstream
Verifying : p11-kit-trust-0.23.14-5.el8_0.x86_64 30/37
Verifying : pcre-8.42-4.el8.x86_64 31/37
Verifying : pcre2-10.32-2.el8.x86_64 32/37
Verifying : popt-1.16-14.el8.x86_64 33/37
Verifying : sed-4.5-2.el8.x86_64 34/37
Verifying : setup-2.12.2-6.el8.noarch 35/37
Verifying : tzdata-2021a-1.el8.noarch 36/37
Verifying : zlib-1.2.11-16.el8_2.x86_64 37/37
2021-02-02 23:36:22,355 [ERROR] yum:1981:MainThread @logutil.py:194 - [Errno 13] Permission denied: '/var/log/rhsm/rhsm.log' - Further logging output will be written to stderr
2021-02-02 23:36:22,360 [ERROR] yum:1981:MainThread @product-id.py:196 - Unable to read cache: /var/lib/rhsm/cache/productid_repo_mapping.json
2021-02-02 23:36:22,361 [ERROR] yum:1981:MainThread @product-id.py:197 - [Errno 13] Permission denied: '/var/lib/rhsm/cache/productid_repo_mapping.json'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf-plugins/product-id.py", line 189, in __read_cache_file
with open(file_name) as file:
PermissionError: [Errno 13] Permission denied: '/var/lib/rhsm/cache/productid_repo_mapping.json'
Installed products updated.
Installed:
basesystem-11-5.el8.noarch bash-4.4.19-12.el8.x86_64
ca-certificates-2020.2.41-80.0.el8_2.noarch centos-gpg-keys-1:8-2.el8.noarch
centos-linux-release-8.3-1.2011.el8.noarch centos-linux-repos-8-2.el8.noarch
chkconfig-1.13-2.el8.x86_64 coreutils-8.30-8.el8.x86_64
coreutils-common-8.30-8.el8.x86_64 crypto-policies-20200713-1.git51d1222.el8.noarch
filesystem-3.8-3.el8.x86_64 glibc-2.28-127.el8.x86_64
glibc-all-langpacks-2.28-127.el8.x86_64 glibc-common-2.28-127.el8.x86_64
gmp-1:6.1.2-10.el8.x86_64 grep-3.1-6.el8.x86_64
info-6.5-6.el8.x86_64 libacl-2.2.53-1.el8.x86_64
libattr-2.4.48-3.el8.x86_64 libcap-2.26-4.el8.x86_64
libffi-3.1-22.el8.x86_64 libselinux-2.9-4.el8_3.x86_64
libsepol-2.9-1.el8.x86_64 libtasn1-4.13-3.el8.x86_64
ncurses-6.1-7.20180224.el8.x86_64 ncurses-base-6.1-7.20180224.el8.noarch
ncurses-libs-6.1-7.20180224.el8.x86_64 openssl-libs-1:1.1.1g-12.el8_3.x86_64
p11-kit-0.23.14-5.el8_0.x86_64 p11-kit-trust-0.23.14-5.el8_0.x86_64
pcre-8.42-4.el8.x86_64 pcre2-10.32-2.el8.x86_64
popt-1.16-14.el8.x86_64 sed-4.5-2.el8.x86_64
setup-2.12.2-6.el8.noarch tzdata-2021a-1.el8.noarch
zlib-1.2.11-16.el8_2.x86_64
Complete!
+ yum install --installroot /home/admin/.local/share/containers/storage/overlay/5ad0ad09c1438a90b40cf1d18ef5017a0cb8665744dfd6f4ad6e3fbf571a4200/merged epel-release --releasever 8 --setopt=install_weak_deps=false --setopt=tsflags=nocontexts --setopt=override_install_langs=en_US.utf8 -y
Failed to set locale, defaulting to C.UTF-8
Main config did not have a override_install_langs attr. before setopt
Main config did not have a override_install_langs attr. before setopt
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 01:36
Errors during downloading metadata for repository 'appstream':
- Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
- Curl error (28): Timeout was reached for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Connection timed out after 30000 milliseconds]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
+ dnf config-manager --installroot /home/admin/.local/share/containers/storage/overlay/5ad0ad09c1438a90b40cf1d18ef5017a0cb8665744dfd6f4ad6e3fbf571a4200/merged --set-enabled powertools --setopt=tsflags=nocontexts -y
Failed to set locale, defaulting to C.UTF-8
+ yum install --installroot /home/admin/.local/share/containers/storage/overlay/5ad0ad09c1438a90b40cf1d18ef5017a0cb8665744dfd6f4ad6e3fbf571a4200/merged wine --releasever 8 --setopt=install_weak_deps=false --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nocontexts -y
Failed to set locale, defaulting to C.UTF-8
Main config did not have a override_install_langs attr. before setopt
Main config did not have a override_install_langs attr. before setopt
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 01:11
Errors during downloading metadata for repository 'appstream':
- Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
+ yum clean all -y --installroot /home/admin/.local/share/containers/storage/overlay/5ad0ad09c1438a90b40cf1d18ef5017a0cb8665744dfd6f4ad6e3fbf571a4200/merged --releasever 8
Failed to set locale, defaulting to C.UTF-8
48 files removed
+ sudo buildah config --cmd /bin/bash working-container-9
sudo: /etc/sudo.conf is owned by uid 65534, should be 0
sudo: /etc/sudo.conf is owned by uid 65534, should be 0
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/libexec/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
+ buildah config --label name=wine-minimal working-container-9
+ buildah unmount working-container-9
cf026d209cd70b157d8f469277a3d7e2074355c9e42b0abe3fb8ba8082df2fc1
+ buildah commit working-container-9 wine-minmal
Getting image source signatures
Copying blob 35f77c1df77f done
Copying config c3035279df done
Writing manifest to image destination
Storing signatures
c3035279df105a8e710c52724de1b17fa39b30d23743125f25896129a0fc2b87
Are you saying with that flag you still see the xattr errors?
So I just setup everything from the ground up again.
I made a Repo-Mirror with:
reposync --exclude "*.iso" --newest-only --download-metadata -p /media/nfs/repos/centos/8.3
So I have
ls /media/nfs/repos/centos/8.3
drwxr-xr-x. 9 1008 1008 4096 29. Jan 21:29 .
drwxr-xr-x. 3 root root 4096 31. Jan 16:44 ..
drwxr-xr-x. 4 root root 4096 30. Jan 02:58 appstream
drwxr-xr-x. 4 root root 4096 30. Jan 03:01 baseos
drwxr-xr-x. 4 root root 4096 30. Jan 03:03 epel
drwxr-xr-x. 4 root root 4096 30. Jan 03:02 epel-modular
drwxr-xr-x. 4 root root 4096 30. Jan 03:01 extras
drwxr-xr-x. 4 root root 4096 30. Jan 03:01 plus
drwxr-xr-x. 4 root root 4096 30. Jan 03:01 powertools
nginx config
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
# for more information.
include /etc/nginx/conf.d/*.conf;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
# root /usr/share/nginx/html;
#root /mnt/samba;
root /media/nfs/repos;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
autoindex on;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
VM with minimal install (boot iso and Internet connection). After installation:
yum install buildah
yum install epel-release
run the buildah script
Repos is reachable via http and after correcting the baseurls in the /etc/yum.repo/*.repo to the repo mirror "yum makecache" works fine. Installing stuff is no problem.
Then the buildah script with the following content:
#!/bin/bash
set -x
# build a minimal image
newcontainer=$(buildah from scratch)
scratchmnt=$(buildah mount $newcontainer)
# install the packages
yum install --installroot $scratchmnt bash coreutils --releasever 8 --setopt=install_weak_deps=false --setopt=tsflags=nodocs --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nocontexts -y
yum install --installroot $scratchmnt epel-release --releasever 8 --setopt=install_weak_deps=false --setopt=tsflags=nodocs --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nocontexts -y
dnf config-manager --installroot $scratchmnt --set-enabled powertools
yum install --installroot $scratchmnt wine --releasever 8 --setopt=install_weak_deps=false --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nodocs --setopt=tsflags=nocontexts -y
yum clean all -y --installroot $scratchmnt --releasever 8
sudo buildah config --cmd /bin/bash $newcontainer
# set some config info
buildah config --label name=wine-minimal $newcontainer
# commit the image
buildah unmount $newcontainer
buildah commit $newcontainer wine-minmal
then after builda unshare ./wine_minimal.sh I got the following output
[masterfx@localhost container]$ buildah unshare
[root@localhost container]# ./wine_minimal.sh
++ buildah from scratch
+ newcontainer=working-container-4
++ buildah mount working-container-4
+ scratchmnt=/home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged
+ yum install --installroot /home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged bash coreutils --releasever 8 --setopt=install_weak_deps=false --setopt=tsflags=nodocs --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nocontexts -y
Failed to set locale, defaulting to C.UTF-8
Main config did not have a override_install_langs attr. before setopt
Main config did not have a override_install_langs attr. before setopt
CentOS Linux 8 - AppStream 28 MB/s | 6.3 MB 00:00
CentOS Linux 8 - BaseOS 32 MB/s | 2.3 MB 00:00
CentOS Linux 8 - Extras 1.0 MB/s | 8.6 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 31 MB/s | 8.8 MB 00:00
Dependencies resolved.
=========================================================================================================================================================================================================================
Package Architecture Version Repository Size
=========================================================================================================================================================================================================================
Installing:
bash x86_64 4.4.19-12.el8 baseos 1.5 M
coreutils x86_64 8.30-8.el8 baseos 1.2 M
Installing dependencies:
basesystem noarch 11-5.el8 baseos 10 k
ca-certificates noarch 2020.2.41-80.0.el8_2 baseos 391 k
centos-gpg-keys noarch 1:8-2.el8 baseos 12 k
centos-linux-release noarch 8.3-1.2011.el8 baseos 22 k
centos-linux-repos noarch 8-2.el8 baseos 20 k
chkconfig x86_64 1.13-2.el8 baseos 194 k
coreutils-common x86_64 8.30-8.el8 baseos 2.0 M
crypto-policies noarch 20200713-1.git51d1222.el8 baseos 62 k
filesystem x86_64 3.8-3.el8 baseos 1.1 M
glibc x86_64 2.28-127.el8 baseos 3.6 M
glibc-all-langpacks x86_64 2.28-127.el8 baseos 25 M
glibc-common x86_64 2.28-127.el8 baseos 1.3 M
gmp x86_64 1:6.1.2-10.el8 baseos 322 k
grep x86_64 3.1-6.el8 baseos 274 k
info x86_64 6.5-6.el8 baseos 198 k
libacl x86_64 2.2.53-1.el8 baseos 35 k
libattr x86_64 2.4.48-3.el8 baseos 27 k
libcap x86_64 2.26-4.el8 baseos 60 k
libffi x86_64 3.1-22.el8 baseos 37 k
libselinux x86_64 2.9-4.el8_3 baseos 165 k
libsepol x86_64 2.9-1.el8 baseos 340 k
libtasn1 x86_64 4.13-3.el8 baseos 76 k
ncurses x86_64 6.1-7.20180224.el8 baseos 387 k
ncurses-base noarch 6.1-7.20180224.el8 baseos 81 k
ncurses-libs x86_64 6.1-7.20180224.el8 baseos 335 k
openssl-libs x86_64 1:1.1.1g-12.el8_3 baseos 1.5 M
p11-kit x86_64 0.23.14-5.el8_0 baseos 272 k
p11-kit-trust x86_64 0.23.14-5.el8_0 baseos 139 k
pcre x86_64 8.42-4.el8 baseos 208 k
pcre2 x86_64 10.32-2.el8 baseos 246 k
popt x86_64 1.16-14.el8 baseos 61 k
sed x86_64 4.5-2.el8 baseos 298 k
setup noarch 2.12.2-6.el8 baseos 181 k
tzdata noarch 2021a-1.el8 baseos 473 k
zlib x86_64 1.2.11-16.el8_2 baseos 102 k
Transaction Summary
=========================================================================================================================================================================================================================
Install 37 Packages
Total download size: 42 M
Installed size: 479 M
Downloading Packages:
(1/37): basesystem-11-5.el8.noarch.rpm 1.7 MB/s | 10 kB 00:00
(2/37): centos-gpg-keys-8-2.el8.noarch.rpm 3.3 MB/s | 12 kB 00:00
(3/37): centos-linux-release-8.3-1.2011.el8.noarch.rpm 5.5 MB/s | 22 kB 00:00
(4/37): centos-linux-repos-8-2.el8.noarch.rpm 5.2 MB/s | 20 kB 00:00
(5/37): ca-certificates-2020.2.41-80.0.el8_2.noarch.rpm 9.1 MB/s | 391 kB 00:00
(6/37): chkconfig-1.13-2.el8.x86_64.rpm 9.0 MB/s | 194 kB 00:00
(7/37): bash-4.4.19-12.el8.x86_64.rpm 10 MB/s | 1.5 MB 00:00
(8/37): coreutils-8.30-8.el8.x86_64.rpm 9.8 MB/s | 1.2 MB 00:00
(9/37): crypto-policies-20200713-1.git51d1222.el8.noarch.rpm 3.3 MB/s | 62 kB 00:00
(10/37): coreutils-common-8.30-8.el8.x86_64.rpm 9.7 MB/s | 2.0 MB 00:00
(11/37): filesystem-3.8-3.el8.x86_64.rpm 9.5 MB/s | 1.1 MB 00:00
(12/37): glibc-common-2.28-127.el8.x86_64.rpm 11 MB/s | 1.3 MB 00:00
(13/37): gmp-6.1.2-10.el8.x86_64.rpm 11 MB/s | 322 kB 00:00
(14/37): grep-3.1-6.el8.x86_64.rpm 8.1 MB/s | 274 kB 00:00
(15/37): info-6.5-6.el8.x86_64.rpm 11 MB/s | 198 kB 00:00
(16/37): libacl-2.2.53-1.el8.x86_64.rpm 6.9 MB/s | 35 kB 00:00
(17/37): libattr-2.4.48-3.el8.x86_64.rpm 7.4 MB/s | 27 kB 00:00
(18/37): libcap-2.26-4.el8.x86_64.rpm 10 MB/s | 60 kB 00:00
(19/37): libffi-3.1-22.el8.x86_64.rpm 7.4 MB/s | 37 kB 00:00
(20/37): glibc-2.28-127.el8.x86_64.rpm 9.5 MB/s | 3.6 MB 00:00
(21/37): libselinux-2.9-4.el8_3.x86_64.rpm 3.6 MB/s | 165 kB 00:00
(22/37): libtasn1-4.13-3.el8.x86_64.rpm 9.4 MB/s | 76 kB 00:00
(23/37): libsepol-2.9-1.el8.x86_64.rpm 9.8 MB/s | 340 kB 00:00
(24/37): ncurses-base-6.1-7.20180224.el8.noarch.rpm 10 MB/s | 81 kB 00:00
(25/37): ncurses-6.1-7.20180224.el8.x86_64.rpm 9.3 MB/s | 387 kB 00:00
(26/37): ncurses-libs-6.1-7.20180224.el8.x86_64.rpm 10 MB/s | 335 kB 00:00
(27/37): p11-kit-0.23.14-5.el8_0.x86_64.rpm 12 MB/s | 272 kB 00:00
(28/37): p11-kit-trust-0.23.14-5.el8_0.x86_64.rpm 11 MB/s | 139 kB 00:00
(29/37): pcre-8.42-4.el8.x86_64.rpm 10 MB/s | 208 kB 00:00
(30/37): pcre2-10.32-2.el8.x86_64.rpm 12 MB/s | 246 kB 00:00
(31/37): popt-1.16-14.el8.x86_64.rpm 11 MB/s | 61 kB 00:00
(32/37): openssl-libs-1.1.1g-12.el8_3.x86_64.rpm 11 MB/s | 1.5 MB 00:00
(33/37): sed-4.5-2.el8.x86_64.rpm 7.4 MB/s | 298 kB 00:00
(34/37): setup-2.12.2-6.el8.noarch.rpm 8.1 MB/s | 181 kB 00:00
(35/37): zlib-1.2.11-16.el8_2.x86_64.rpm 8.4 MB/s | 102 kB 00:00
(36/37): tzdata-2021a-1.el8.noarch.rpm 11 MB/s | 473 kB 00:00
(37/37): glibc-all-langpacks-2.28-127.el8.x86_64.rpm 20 MB/s | 25 MB 00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 27 MB/s | 42 MB 00:01
warning: /home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged/var/cache/dnf/baseos-a952f3eb82b3d6f5/packages/basesystem-11-5.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS Linux 8 - BaseOS 93 kB/s | 1.6 kB 00:00
Importing GPG key 0x8483C65D:
Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Running scriptlet: filesystem-3.8-3.el8.x86_64 1/1
warning: Unable to get systemd shutdown inhibition lock: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Preparing : 1/1
Installing : tzdata-2021a-1.el8.noarch 1/37
Installing : ncurses-base-6.1-7.20180224.el8.noarch 2/37
Installing : crypto-policies-20200713-1.git51d1222.el8.noarch 3/37
Running scriptlet: crypto-policies-20200713-1.git51d1222.el8.noarch 3/37
Installing : centos-gpg-keys-1:8-2.el8.noarch 4/37
Installing : centos-linux-release-8.3-1.2011.el8.noarch 5/37
Installing : centos-linux-repos-8-2.el8.noarch 6/37
Installing : setup-2.12.2-6.el8.noarch 7/37
Running scriptlet: setup-2.12.2-6.el8.noarch 7/37
Installing : filesystem-3.8-3.el8.x86_64 8/37
Installing : basesystem-11-5.el8.noarch 9/37
Installing : pcre2-10.32-2.el8.x86_64 10/37
Installing : libselinux-2.9-4.el8_3.x86_64 11/37
Installing : ncurses-libs-6.1-7.20180224.el8.x86_64 12/37
Installing : glibc-all-langpacks-2.28-127.el8.x86_64 13/37
Installing : glibc-common-2.28-127.el8.x86_64 14/37
Running scriptlet: glibc-2.28-127.el8.x86_64 15/37
Installing : glibc-2.28-127.el8.x86_64 15/37
Running scriptlet: glibc-2.28-127.el8.x86_64 15/37
Installing : bash-4.4.19-12.el8.x86_64 16/37
Running scriptlet: bash-4.4.19-12.el8.x86_64 16/37
Installing : libsepol-2.9-1.el8.x86_64 17/37
Running scriptlet: libsepol-2.9-1.el8.x86_64 17/37
Installing : libattr-2.4.48-3.el8.x86_64 18/37
Installing : libacl-2.2.53-1.el8.x86_64 19/37
Installing : libffi-3.1-22.el8.x86_64 20/37
Installing : p11-kit-0.23.14-5.el8_0.x86_64 21/37
Running scriptlet: p11-kit-0.23.14-5.el8_0.x86_64 21/37
Installing : zlib-1.2.11-16.el8_2.x86_64 22/37
Installing : info-6.5-6.el8.x86_64 23/37
Installing : coreutils-common-8.30-8.el8.x86_64 24/37
Running scriptlet: coreutils-common-8.30-8.el8.x86_64 24/37
Installing : sed-4.5-2.el8.x86_64 25/37
Running scriptlet: sed-4.5-2.el8.x86_64 25/37
install-info: No such file or directory for /dev/null
Installing : gmp-1:6.1.2-10.el8.x86_64 26/37
Running scriptlet: gmp-1:6.1.2-10.el8.x86_64 26/37
Installing : libcap-2.26-4.el8.x86_64 27/37
Installing : libtasn1-4.13-3.el8.x86_64 28/37
Running scriptlet: libtasn1-4.13-3.el8.x86_64 28/37
Installing : ncurses-6.1-7.20180224.el8.x86_64 29/37
Installing : pcre-8.42-4.el8.x86_64 30/37
Installing : grep-3.1-6.el8.x86_64 31/37
Running scriptlet: grep-3.1-6.el8.x86_64 31/37
install-info: No such file or directory for /usr/share/info/grep.info.gz
Installing : popt-1.16-14.el8.x86_64 32/37
Installing : chkconfig-1.13-2.el8.x86_64 33/37
Installing : p11-kit-trust-0.23.14-5.el8_0.x86_64 34/37
Running scriptlet: p11-kit-trust-0.23.14-5.el8_0.x86_64 34/37
Installing : openssl-libs-1:1.1.1g-12.el8_3.x86_64 35/37
Running scriptlet: openssl-libs-1:1.1.1g-12.el8_3.x86_64 35/37
Installing : coreutils-8.30-8.el8.x86_64 36/37
Running scriptlet: ca-certificates-2020.2.41-80.0.el8_2.noarch 37/37
Installing : ca-certificates-2020.2.41-80.0.el8_2.noarch 37/37
Running scriptlet: ca-certificates-2020.2.41-80.0.el8_2.noarch 37/37
Running scriptlet: filesystem-3.8-3.el8.x86_64 37/37
Running scriptlet: glibc-all-langpacks-2.28-127.el8.x86_64 37/37
Running scriptlet: ca-certificates-2020.2.41-80.0.el8_2.noarch 37/37
Running scriptlet: glibc-common-2.28-127.el8.x86_64 37/37
Running scriptlet: info-6.5-6.el8.x86_64 37/37
Verifying : basesystem-11-5.el8.noarch 1/37
Verifying : bash-4.4.19-12.el8.x86_64 2/37
Verifying : ca-certificates-2020.2.41-80.0.el8_2.noarch 3/37
Verifying : centos-gpg-keys-1:8-2.el8.noarch 4/37
Verifying : centos-linux-release-8.3-1.2011.el8.noarch 5/37
Verifying : centos-linux-repos-8-2.el8.noarch 6/37
Verifying : chkconfig-1.13-2.el8.x86_64 7/37
Verifying : coreutils-8.30-8.el8.x86_64 8/37
Verifying : coreutils-common-8.30-8.el8.x86_64 9/37
Verifying : crypto-policies-20200713-1.git51d1222.el8.noarch 10/37
Verifying : filesystem-3.8-3.el8.x86_64 11/37
Verifying : glibc-2.28-127.el8.x86_64 12/37
Verifying : glibc-all-langpacks-2.28-127.el8.x86_64 13/37
Verifying : glibc-common-2.28-127.el8.x86_64 14/37
Verifying : gmp-1:6.1.2-10.el8.x86_64 15/37
Verifying : grep-3.1-6.el8.x86_64 16/37
Verifying : info-6.5-6.el8.x86_64 17/37
Verifying : libacl-2.2.53-1.el8.x86_64 18/37
Verifying : libattr-2.4.48-3.el8.x86_64 19/37
Verifying : libcap-2.26-4.el8.x86_64 20/37
Verifying : libffi-3.1-22.el8.x86_64 21/37
Verifying : libselinux-2.9-4.el8_3.x86_64 22/37
Verifying : libsepol-2.9-1.el8.x86_64 23/37
Verifying : libtasn1-4.13-3.el8.x86_64 24/37
Verifying : ncurses-6.1-7.20180224.el8.x86_64 25/37
Verifying : ncurses-base-6.1-7.20180224.el8.noarch 26/37
Verifying : ncurses-libs-6.1-7.20180224.el8.x86_64 27/37
Verifying : openssl-libs-1:1.1.1g-12.el8_3.x86_64 28/37
Verifying : p11-kit-0.23.14-5.el8_0.x86_64 29/37
Verifying : p11-kit-trust-0.23.14-5.el8_0.x86_64 30/37
Verifying : pcre-8.42-4.el8.x86_64 31/37
Verifying : pcre2-10.32-2.el8.x86_64 32/37
Verifying : popt-1.16-14.el8.x86_64 33/37
Verifying : sed-4.5-2.el8.x86_64 34/37
Verifying : setup-2.12.2-6.el8.noarch 35/37
Verifying : tzdata-2021a-1.el8.noarch 36/37
Verifying : zlib-1.2.11-16.el8_2.x86_64 37/37
2021-02-13 22:18:06,873 [ERROR] yum:1904:MainThread @logutil.py:194 - [Errno 13] Permission denied: '/var/log/rhsm/rhsm.log' - Further logging output will be written to stderr
2021-02-13 22:18:06,876 [ERROR] yum:1904:MainThread @product-id.py:196 - Unable to read cache: /var/lib/rhsm/cache/productid_repo_mapping.json
2021-02-13 22:18:06,876 [ERROR] yum:1904:MainThread @product-id.py:197 - [Errno 13] Permission denied: '/var/lib/rhsm/cache/productid_repo_mapping.json'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/dnf-plugins/product-id.py", line 189, in __read_cache_file
with open(file_name) as file:
PermissionError: [Errno 13] Permission denied: '/var/lib/rhsm/cache/productid_repo_mapping.json'
Installed products updated.
Installed:
basesystem-11-5.el8.noarch bash-4.4.19-12.el8.x86_64 ca-certificates-2020.2.41-80.0.el8_2.noarch centos-gpg-keys-1:8-2.el8.noarch centos-linux-release-8.3-1.2011.el8.noarch
centos-linux-repos-8-2.el8.noarch chkconfig-1.13-2.el8.x86_64 coreutils-8.30-8.el8.x86_64 coreutils-common-8.30-8.el8.x86_64 crypto-policies-20200713-1.git51d1222.el8.noarch
filesystem-3.8-3.el8.x86_64 glibc-2.28-127.el8.x86_64 glibc-all-langpacks-2.28-127.el8.x86_64 glibc-common-2.28-127.el8.x86_64 gmp-1:6.1.2-10.el8.x86_64
grep-3.1-6.el8.x86_64 info-6.5-6.el8.x86_64 libacl-2.2.53-1.el8.x86_64 libattr-2.4.48-3.el8.x86_64 libcap-2.26-4.el8.x86_64
libffi-3.1-22.el8.x86_64 libselinux-2.9-4.el8_3.x86_64 libsepol-2.9-1.el8.x86_64 libtasn1-4.13-3.el8.x86_64 ncurses-6.1-7.20180224.el8.x86_64
ncurses-base-6.1-7.20180224.el8.noarch ncurses-libs-6.1-7.20180224.el8.x86_64 openssl-libs-1:1.1.1g-12.el8_3.x86_64 p11-kit-0.23.14-5.el8_0.x86_64 p11-kit-trust-0.23.14-5.el8_0.x86_64
pcre-8.42-4.el8.x86_64 pcre2-10.32-2.el8.x86_64 popt-1.16-14.el8.x86_64 sed-4.5-2.el8.x86_64 setup-2.12.2-6.el8.noarch
tzdata-2021a-1.el8.noarch zlib-1.2.11-16.el8_2.x86_64
Complete!
+ yum install --installroot /home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged epel-release --releasever 8 --setopt=install_weak_deps=false --setopt=tsflags=nodocs --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nocontexts -y
Failed to set locale, defaulting to C.UTF-8
Main config did not have a override_install_langs attr. before setopt
Main config did not have a override_install_langs attr. before setopt
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 01:36
Errors during downloading metadata for repository 'appstream':
- Curl error (28): Timeout was reached for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Connection timed out after 30000 milliseconds]
- Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
+ dnf config-manager --installroot /home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged --set-enabled powertools
Failed to set locale, defaulting to C.UTF-8
+ yum install --installroot /home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged wine --releasever 8 --setopt=install_weak_deps=false --setopt=override_install_langs=en_US.utf8 --setopt=tsflags=nodocs --setopt=tsflags=nocontexts -y
Failed to set locale, defaulting to C.UTF-8
Main config did not have a override_install_langs attr. before setopt
Main config did not have a override_install_langs attr. before setopt
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 01:12
Errors during downloading metadata for repository 'appstream':
- Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=stock [Failed to connect to mirrorlist.centos.org port 80: No route to host]
+ yum clean all -y --installroot /home/masterfx/.local/share/containers/storage/overlay/7bf65738395cf27e68086816cdbb364afc7eaeb08884eada34bf019cba6efb13/merged --releasever 8
Failed to set locale, defaulting to C.UTF-8
28 files removed
+ sudo buildah config --cmd /bin/bash working-container-4
sudo: /etc/sudo.conf is owned by uid 65534, should be 0
sudo: /etc/sudo.conf is owned by uid 65534, should be 0
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/libexec/sudo/sudoers.so must be owned by uid 0
sudo: fatal error, unable to load plugins
+ buildah config --label name=wine-minimal working-container-4
+ buildah unmount working-container-4
df8ec9ff21868b2db32acb60940ee7f9056d3c727d9f97957452953514f462c9
+ buildah commit working-container-4 wine-minmal
Getting image source signatures
Copying blob 4aae3eda6c49 done
Copying config fa37e9319a done
Writing manifest to image destination
Storing signatures
fa37e9319af17ba320331a38c3acd6035fa1f838f244dba267034e56cd8d86ad
Then I shut down the VM and connect to Internet, corrected the repo to the original and ran the same script again => works fine. If I list the containers I the "offline" generated is only 292 MB the "online" version is 883MB It seems like in the "offline" version yum still tries to use not the local repos adresses but mirrorlist.centos.org.... but not everywhere (baseimage seems to be ok) which results in the 292MB
[masterfx@localhost container]$ buildah images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/wine-minmal latest c55f66e61340 4 minutes ago 292 MB
<none> <none> e390a8427f09 35 minutes ago 883 MB
<none> <none> 0d0e1c38a68c 44 minutes ago 292 MB
I just want to let you know, that I got it to run now. After "yum install --installroot $scratchmnt bash coreutils..." is done, yum uses from now on the just new installed .repo in the $scratchmnt (which of cause does have the default url in it). So the next step must be to copy the .repo from the build system to the $scratchmnt
rm -f $scratchmnt/etc/yum.repos.d/*.repo
cp /etc/yum.repos.d/*.repo $scratchmnt/etc/yum.repos.d/
@TheMasterFX TYVM for the follow up. I'm going to close this issue now, if you feel I'm too hasty, please reopen.
Description I have a pretty simple bash script for building an container. It works fine on my VM which is directly connected over a bridge network to my router. But it doesn't work when I have an "offline" vm with a own mirrored repository mirror. I have mirrored all needed repositorys on a local webserver (Appstream, baseos, plus, powetools, extras, epel, epel-modular). I build rootless so before => buildah unshare Build script:
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected: No errors.
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:*Output of `cat /etc/release`:**
Output of
uname -a
:Output of
cat /etc/containers/storage.conf
: