Thanks for the response. I have no proxy in the environment, from the machine I confirmed it can ping the server public.dhe.ibm.com. But as the dnf is not working, I can't have wget installed.
Original Message:
Sent: Tue October 03, 2023 03:17 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hello Roger,
to clarify, myself is an IBM customer.
Are you sure your proxy settings are correctly set to reach the internet
HTTPS_PROXY [protocol://]<host>[:port] Sets the proxy server to use for HTTPS.
See bottom of the man page URL:
https://man7.org/linux/man-pages/man1/curl.1.html
If you are sure the proxy settings are correct and you have wget installed, try the below command to test the proxy.
wget anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml
Else, I think it will be good if you start a new topic with your question.
Error 28 is not the same as error 56.
Good luck!
------------------------------
Jan Robinson
Original Message:
Sent: Mon October 02, 2023 06:30 PM
From: Roger Gong
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hi Jan,
I got the same issue on AIX7.2 with the latest openssl installed. When running dnf_aixtoolbox.sh, it showed those errors,
I managed to get the packages installed by manually download the tar ball, and in the script to copy the tar ball to the script needed subdir, then it installed the packages. But the issue I have now is if I try to install bash by "dnf install gcc", it gives the same error. Tried your fix by adding the
proxy_auth_method=basic
To
/opt/freeware/etc/dnf/dnf.conf
the error I got is still the same:
# ./dnf install gcc
AIX generic repository 0.0 B/s | 0 B 02:00
Errors during downloading metadata for repository 'AIX_Toolbox':
- Curl error (28): Timeout was reached for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Connection timed out after 30004 milliseconds]
- Curl error (28): Timeout was reached for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Connection timed out after 30002 milliseconds]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Please help.
Thanks.
------------------------------
Roger Gong
Original Message:
Sent: Mon December 12, 2022 12:52 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hello All.
The curl error 56 was solved by adding this line to:
/opt/freeware/etc/dnf/dnf.confproxy_auth_method=basic
------------------------------
Jan Robinson
Original Message:
Sent: Fri July 08, 2022 08:02 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hello Stephan.
Have updated to your suggestion and c_rehash works, great, thank you.
Were on openssl.base 1.1.1.1200
- openssh.base.client 8.1.112.1201 COMMITTED Open Secure Shell Commands
- openssh.base.server 8.1.112.1201 COMMITTED Open Secure Shell Server
- openssl.base 1.1.1.1201 COMMITTED Open Secure Socket Layer
Now for the curl 56 error on the suggested upgrade of dnf to:dnf-4.2.17-32_50
Found a hit that suggested a space in the URL, for error 56, but that is not easy to investigate here.
Regards,
------------------------------
Jan Robinson
Original Message:
Sent: Fri July 08, 2022 03:45 AM
From: Stephan Dietl
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hello @Jan Robinson !
Your error sounds a lot like the breakage I experienced when a new OpenSSL version and new certificates came together:
https://community.ibm.com/community/user/power/communities/community-home/digestviewer/viewthread?GroupId=6211&MessageKey=e49c17f8-a616-42e6-99c8-42fcac08fa9f&CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fCommunityKey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9#bme49c17f8-a616-42e6-99c8-42fcac08fa9f
and
https://community.ibm.com/community/user/power/discussion/certificate-issue?ReturnUrl=%2fcommunity%2fuser%2fpower%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d10c1d831-47ee-4d92-a138-b03f7896f7c9
Which version of OpenSSL are you using? openssl.base 1.1.1.1201 fixed the issue with c_rehash!
"
Latest fix for openssl (1.1.1.1201) made c_rehash work again as it should.
------------------------------
Philip Krab
------------------------------
"
HTH,
With kind regards,
------------------------------
Stephan Dietl
Original Message:
Sent: Thu July 07, 2022 09:34 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hi
Just an update to share a procedure that worked for me:
There were no <hash>.0 files in /var/ssl/certs.
Using truss -f curl anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
showed this:
14156258: 27066733: statx("/var/ssl/certs//e83d98dd.0", 0x0FFFFFFFFFFFE440, 176, 0) Err#2 ENOENT
14156258: 27066733: statx("/var/ssl/certs//3513523f.0", 0x0FFFFFFFFFFFE440, 176, 0) Err#2 ENOENT
14156258: 27066733: statx("/var/ssl/certs//3513523f.0", 0x0FFFFFFFFFFFE440, 176, 0) Err#2 ENOENT
14156258: 27066733: statx("/var/ssl/certs//82585ccb.0", 0x0FFFFFFFFFFFE300, 176, 0) Err#2 ENOENT
This worked:
curl --cacert DigiCert_Global_Root_CA.crt anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
Then for fun and profit.... this:
# https://www.ibm.com/support/pages/ibm-aix-import-ca-certificate
#
cd /var/ssl/certs
for i in $(ls *.crt)
do
ln -s $i $(openssl x509 -hash -noout -in $i).0
done
Regards.
------------------------------
Jan Robinson
Original Message:
Sent: Thu May 12, 2022 04:41 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hello Sangamesh
Un setting the https_proxy and setting http_proxy resulted in:
dnf --refresh makecache
AIX generic repository 0.0 B/s | 0 B 00:02
Errors during downloading metadata for repository 'AIX_Toolbox':
- Curl error (6): Couldn't resolve host name for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Could not resolve host: public.dhe.ibm.com]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
AIX noarch repository
Un setting both and adding it to /opt/freeware/etc/dnf/dnf.conf
###
sslverify=false
proxy=http://proxy.myco:8080
proxy_username=myuser
proxy_password=mypasswd
###
Causes the old error:
Errors during downloading metadata for repository 'AIX_Toolbox':
- Curl error (56): Failure when receiving data from the peer for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Empty reply from server]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Nothing has changed.
Thanks so much.
------------------------------
Jan Robinson
Original Message:
Sent: Tue May 10, 2022 11:08 AM
From: SANGAMESH MALLAYYA
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hi Jan,
Could you check if unsetting the https_proxy and setting http_proxy works ?
------------------------------
SANGAMESH
Original Message:
Sent: Fri May 06, 2022 02:01 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hi Sangamesh
It is seen in both instances:
1. after installing dnf from the bundle, then librepo
2. after installing dnf from the bundle, then dnf update
All three AIX installations 2 x 7.2 and 1 x 7.1.
Just redid the above for fun: wiped dnf, step 1 and 2
dnf --refresh makecache
AIX generic repository 0.0 B/s | 0 B 00:05
Errors during downloading metadata for repository 'AIX_Toolbox':
- Curl error (56): Failure when receiving data from the peer for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Empty reply from server]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
AIX noarch repository 0.0 B/s | 0 B 00:04
Errors during downloading metadata for repository 'AIX_Toolbox_noarch':
- Curl error (56): Failure when receiving data from the peer for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/repodata/repomd.xml [Empty reply from server]
Error: Failed to download metadata for repo 'AIX_Toolbox_noarch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
AIX 7.2 specific repository 0.0 B/s | 0 B 00:04
Errors during downloading metadata for repository 'AIX_Toolbox_72':
- Curl error (56): Failure when receiving data from the peer for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/repodata/repomd.xml [Empty reply from server]
Error: Failed to download metadata for repo 'AIX_Toolbox_72': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: AIX_Toolbox, AIX_Toolbox_noarch, AIX_Toolbox_72
Metadata cache created.
------------------------------
Jan Robinson
Original Message:
Sent: Thu May 05, 2022 02:06 PM
From: SANGAMESH MALLAYYA
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hi Jan,
I don't see any error with just update of librepo after setting up the dnf from dnf bundle.
However, I haven't checked with proxy if that's an issue.
Do you see the same error with "dnf update" after installing dnf from the bundle not just librepo ?
------------------------------
SANGAMESH
Original Message:
Sent: Thu May 05, 2022 01:46 AM
From: Jan Robinson
Subject: dnf: upgrade to librepo-1.11.0-100.ppc breaks curl - Curl error (56) - on AIX 7.1/7.2
Hi All
Yesterday, after ugrading dnf (fnf upgrade dnf) curl could not download ANY other RPM due to a curl error.
Sample error for all repositories.
dnf --refresh makecache
AIX generic repository 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'AIX_Toolbox':
- Curl error (56): Failure when receiving data from the peer for anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml">https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/repodata/repomd.xml [Empty reply from server]
Error: Failed to download metadata for repo 'AIX_Toolbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Then:
- undo changes and reinstall dnf - dnf works - dnf-4.2.17-32_2.noarch
- Only update to librepo-1.11.0-100.ppc python3-librepo-1.11.0-100.ppc
- dnf gave Curl error (56)
We use environment variables for the proxy:
http_proxy=
https_proxy=
The only package update that broke curl was:
librepo-1.11.0-100.ppc python3-librepo-1.11.0-100.ppc
Unless something else should have been done that was missed.
Please advise.
dnf.conf
[main]
cachedir=/var/cache/dnf
keepcache=1
debuglevel=2
logfile=/var/log/dnf.log
obsoletes=1
plugins=1
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True
skip_if_unavailable=True
[AIX_Toolbox]
name=AIX generic repository
baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/
enabled=1
gpgcheck=0
[AIX_Toolbox_noarch]
name=AIX noarch repository
baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/
enabled=1
gpgcheck=0
[AIX_Toolbox_71]
name=AIX 7.1 specific repository
baseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.1/
enabled=1
gpgcheck=0
------------------------------
Regards
Jan Robinson
------------------------------