"Encountered end of file" on yum update

Latest response

Hello,

I have a fresh RHEL 7.2 server (via the developer access programme), however despite installing three (!) times now, I seem to be having severe issues with Yum:

https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/Packages/abrt-addon-ccpp-2.1.11-35.el7.x86_64.rpm: [Errno 14] curl#35 - "Encountered end of file"

If I disable EUS, then I see errors on other CDN areas. Re-running yum multiple times eventually seems to get all of the packages to eventually come through, but it is a very slow process.

After installing, I login over SSH as root, register the system and it pulls down the expected repo information. The next stage is doing a "yum update", which is where I see the above errors.

Some points:

  • I've tried multiple times following guides (too many to list) about actually accessing the above URLs via curl -- everything seems to work fine (happy to post any diagnostic messages that might help).

  • There is a physical firewall (Dell SonicWALL) between myself and the "outside world", however this box does no filtering/etc., and simply acts as an end point to route traffic over a certain domain to my company's main offices (I am remote worker). I need to no proxies, etc. to be able to access the internet.

Any help would be greatly appreciated!

Cheers,

Andrew

Responses

Any ideas?

I'm still plagued by this, and it seems now all my updates are failing with the same end-of-file!

A bit more information (from here: https://access.redhat.com/solutions/189533) after running "strace -ttT -s1024 -v -o /tmp/yum.update.strace yum -d10 check-update":

2016-04-27 13:17:18,545 attempt 1/10: https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml
2016-04-27 13:17:18,545 opening local file "/var/cache/yum/x86_64/7Server/rhel-7-server-eus-rpms/repomdNlrOiotmp.xml" with mode wb
* About to connect() to cdn.redhat.com port 443 (#11)
*   Trying 95.101.84.251...
* Connected to cdn.redhat.com (95.101.84.251) port 443 (#11)
* warning: CURLOPT_CAPATH not a directory (/etc/rhsm/ca/redhat-uep.pem)
*   CAfile: /etc/rhsm/ca/redhat-uep.pem
  CApath: /etc/rhsm/ca/redhat-uep.pem
* NSS: client certificate from file
*   subject: CN=8a85f98254562955015457964a474cc6
*   start date: Apr 01 04:00:00 2016 GMT
*   expire date: Apr 01 03:59:59 2017 GMT
*   common name: 8a85f98254562955015457964a474cc6
*   issuer: E=ca-support@redhat.com,CN=Red Hat Candlepin Authority,OU=Red Hat Network,O="Red Hat, Inc.",ST=North Carolina,C=US
* NSS error -5938 (PR_END_OF_FILE_ERROR)
* Encountered end of file
* Closing connection 11
2016-04-27 13:17:44,312 exception: [Errno 14] curl#35 - "Encountered end of file"
2016-04-27 13:17:44,312 calling callback: (<bound method YumBaseCli.failureReport of <cli.YumBaseCli object at 0x1522590>>, (), {})
https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#35 - "Encountered end of file"
Trying other mirror.
2016-04-27 13:17:44,314 MIRROR: failed
2016-04-27 13:17:44,314 GR   mirrors: [] 0
2016-04-27 13:17:44,314 MAIN mirrors: [https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/] 0

Trying:

openssl s_client -connect cdn.redhat.com:443 -CAfile /etc/rhsm/ca/redhat-uep.pem

Also seems to work fine.

However:

curl -v -u "user":"pass" --cacert /etc/rhsm/ca/redhat-uep.pem https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml

Gives:

HTTP/1.1 403 Forbidden

Additionally (for reference) see https://access.redhat.com/solutions/61720 -- Let us know if that helps or not.

Hello R.,

Wow:

sysctl -w net.ipv4.ip_no_pmtu_disc=1

as root seems to have sorted it!

I feel slightly embarrassed I didn't find that post myself, but thank you!

Cheers,

Andrew

Glad it worked out Andrew!

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.