Control Web Panel
WebPanel => Installation => Topic started by: hunkah on September 21, 2021, 02:56:10 AM
-
Hello there,
It seems for the past few days I've been getting an error when trying to run the installer script.
[Recv failure: Connection reset by peer]
Does anyone know what's going on? I read that it had nothing to do with me or my server.
Transaction Summary
================================================================================
Install 111 Packages
Total download size: 17 M
Installed size: 57 M
Downloading Packages:
[MIRROR] apr-1.6.2-1.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://repo.centos-webpanel.com/repo/8/x86_64/apr-1.6.2-1.x86_64.rpm [Recv failure: Connection reset by peer]
[MIRROR] cwp-httpd-2.4.39-3.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://repo.centos-webpanel.com/repo/8/x86_64/cwp-httpd-2.4.39-3.x86_64.rpm [Recv failure: Connection reset by peer]
[MIRROR] apr-util-1.6.0-1.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://repo.centos-webpanel.com/repo/8/x86_64/apr-util-1.6.0-1.x86_64.rpm [Recv failure: Connection reset by peer]
[MIRROR] apr-1.6.2-1.x86_64.rpm: Curl error (56): Failure when receiving data from the peer for http://repo.centos-webpanel.com/repo/8/x86_64/apr-1.6.2-1.x86_64.rpm [Recv failure: Connection reset by peer]
[FAILED] apr-1.6.2-1.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success
-
I'm guessing you are running CentOS Stream using the CWP repos.
The CWP repos have had problems in the past.
If you are using Stream, you can switch back to the stream beta repos, or redo the server.
I would recommend AlmaLinux, since they also are the same company who does CloudLinux.
-
I've tried running the script in CentOS 8 (non-stream), Rocky Linux and CentOS Stream, all of them say the same thing.
http://repo.centos-webpanel.com/repo/8/x86_64/apr-1.6.2-1.x86_64.rpm [Recv failure: Connection reset by peer]
Which looks like a problem with http://repo.centos-webpanel.com, I've tried to figure this out and the only thing I've seen is that there is either an issue with the SSL credentials on the server-side or that the server can't handle the amount of traffic.
-
Is this error on a new install or update?
Again, I know CWP has had problems with their repos in the past.
But usually it's after you switch to them for updates.
-
Completely new install. Minimal, no GUI, nothing done except and update.
-
try manually to see where is the issue
wget http://repo.centos-webpanel.com/repo/8/x86_64/apr-1.6.2-1.x86_64.rpm
-
When I use wget In the CentOS 8.4 VM, this is what happens:
apr-1.5.2-2.x86_64.rpm 19%[+++++++++++++++++========> ] 41.23K --.-KB/s in 0.07s
2021-09-23 17:50:12 (195 KB/s) - Read error at byte 14092/5777628 (Connection reset by peer). Retrying.
Weirdly, and just to see the difference, when I am using Fedora on my local machine (not the VM/server), it downloads without any issues.
So that's weird. Why would it work on my local machine, but not in the VM? Is my VM being blocked or something?
-
OK, I figured it out.
I must have somehow been blocked by the centos-webpanel server for some reason. I just blew away all three of my VMs, and reinstalled CentOS 8.4 (non-stream), and used a different domain name during the install process, and everything worked.
I'm not sure how this fixed the problem, other than maybe I was blocked, but maybe if it happens to someone else, they will know how to fix it.
Thank you everyone for the help, even though it didn't fix the problem, it gave me enough clues to figure it out.
-
Alright, just to be thorough, I tried installing the script on Rocky Linux, (which is the droplet I'm using on Digital Ocean).
I'm using VirtualBox with an install of Rocky Linux, as I like to test everything locally before I do anything on a live server.
I changed line 70 of the cwp-el8-latest script from this:
centosversion=`rpm -qa \*-release | grep -Ei "oracle|redhat|centos|cloudlinux" | cut -d"-" -f3|sed 's/\..$//'`
to this:
centosversion=`rpm -qa \*-release | grep -Ei "oracle|redhat|centos|cloudlinux|rocky" | cut -d"-" -f3|sed 's/\..$//'`
What I did differently was switch the VM's NAT network connection to a Bridged network connection and the installation failed for the exact same reason.
I tried it all again, leaving the VM's network connection as a NAT connection and everything worked.
So I'm not sure why that problem exists, or if it's supposed to be like that, but that's where the problem was.
If anyone wants to report this bug, and mark this thread as fixed or resolved, I'm cool with that.