Daily upcp try to downlond stupid file. How to fix?

WindyT

Active Member
Nov 30, 2004
39
0
156
Yeah, I haven't updated my cpanel for about six weeks, but I'm not sure if that's the reason why it hangs at the same place.

Is it that it's trying to install the latest version of Compress-Zlib and that install script has those bad links (http://1.42) such that if we did install that version manually, the server would see no reason to (re)install that and so the rest of the upcp would go normally??

EDIT to add: If I do have to end up installing Compress-Zlib, the latest non-beta version looks to be Compress-Zlib-2.001 -- I'll assume this will also fix things as far as future updating scripts goes?
 
Last edited:

WindyT

Active Member
Nov 30, 2004
39
0
156
I'll confirm that /scripts/upcp now functions for my server where it didn't before.
I made no changes.

Thanks, invisible server elves!
 

coderoyal

Well-Known Member
Mar 8, 2005
58
0
156
I'll confirm that /scripts/upcp now functions for my server where it didn't before.
I made no changes.

Thanks, invisible server elves!

It's 11/24/06, I ran the "Update System Software" script today and still ran into the same exact error. It happens everytime I execute the script, even after I:

1. Force kill the upcp script when I shell into the server.
2. Manually install the Compress::zlib Perl component.

My cPanel version is updated often and wasn't far behind. The latest version it was updated to was 10.9.0-C30.

Will this cause any components or services on Cpanel to not work correctly, or can I sit and wait for cPanel to correct the script before trying again?

Take care,
Alan
Hermon School District
 

NETSource

Member
Oct 15, 2003
5
0
151
I just have one question that the support staff haven't answered - HOW DO YOU INSTALL THAT PATCH?

Why give us exactly half of what we need? Save yourself and your clients some damn headaches and do more than "apply this".

The DNSONLY version released Nov. 10 STILL has this error.
 
Last edited:

RazorBlue LTD

Member
Jun 1, 2006
6
0
151
Well the patch doesn't seem to be working to be honest;

PHP:
Index: Cpanel/cPCPAN.pm
===================================================================
--- Cpanel/cPCPAN.pm    (revision 1500)
+++ Cpanel/cPCPAN.pm    (revision 1501)
@@ -233,8 +233,8 @@
                 print "cPCPAN: Module holdback ($oldversion held back to $newversion)\n"
                     if $oldversion ne $newversion;
 
-                $rq->{'RO'}{'CPAN_FILE'} =~ s{ [-] $oldversion [.] }
-                                             { [-] $newversion [.] }xms;
+                $rq->{'RO'}{'CPAN_FILE'} =~ s{ [-] [\d.]+ [.] }
+                                             {-$newversion.}xms;
 
                 $rq->{'RO'}{'CPAN_VERSION'} = $newversion;
Right so above, copy that into a file, and name it "cPCPAN.patch" i would place it in root / to be honest.

Then run "updatedb" and then "slocate cPCPAN.pm" it might output something like;

/usr/local/cpanel/Cpanel/cPCPAN.pm

Then do the following "patch /usr/local/cpanel/Cpanel/cPCPAN.pm /cPCPAN.patch"

That's how it's meant to be done, but it doesn't seem to make any difference, it still tries grabbing the file from an invalid IP.
 

pshepperd

Well-Known Member
Feb 12, 2005
147
0
166
I can confirm this patch does NOT work on the DNS- Only version of cpanel.
 

pshepperd

Well-Known Member
Feb 12, 2005
147
0
166
Sigh, had to solve my own problem, I hope this helps you guys, it worked for me.


Basically I first compiled Zlib 1.42 from source, or install it with Cpan manually what that will do is give you the fuctionality in your OS and other scripts such as the dns only installer script.

Then what we want to do is fake out he scripts so they dont take so long / fail, do that like this
Code:
cd /home/.cpan/sources/authors/id/P/PM/PMQS/
wget http://cpan.org/modules/by-authors/id/PMQS/Compress-Zlib-1.42.tar.gz
mv Compress-Zlib-1.42.tar.gz Compress-Zlib\ [-]\ 1.42\ [.]\ .tar.gz
then go run your /scripts/upcp or for dns only installers just

Code:
cd /root
sh cpanel-universal-dnsonly-install.sea

Like i said make sure you somehow really get it installed (compile it manually!) I dont know if the automated perl/cpanel scripts will actually install from that muxed up name like that.

but i have my dns only working properly now!
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Perhaps I wasn't clear, but the fact that upcp is looking for host http://1.42/ is nothing to do with DNS/resolution setup. That's a bug somewhere in cPanel code (that the patch fixes).
Correct. The script would try to download via wget and if it failed, try via curl. However there was an oddity in how the URL was parsed before(?) handing off to curl. It caused the Zlib version number (1.42) to be passed to curl as the host name.

pshepperd said:
I can confirm this patch does NOT work on the DNS- Only version of cpanel.
Again, correct. We are currently internally testing the next version of DNSONLY, which will resolve this problem (along with others). Thanks for sharing that helpful step-by-step with others, I'm certain it will help.
 

naren

Member
Dec 11, 2004
7
0
151
Hi,

We too were getting the same problem in most of the servers, but the issue got resolved by doing
/scripts/sysup
/scripts/rpmup

After the rpmup we could get the module installed correctly without any issue.

Running get for module Compress::Zlib
Fetching with LWP:
http://cpan.erlbaum.net/authors/id/P/PM/PMQS/Compress-Zlib-1.42.tar.gz
Fetching with LWP:
http://cpan.erlbaum.net/authors/id/P/PM/PMQS/CHECKSUMS
Checksum for /home/.cpan/sources/authors/id/P/PM/PMQS/Compress-Zlib-1.42.tar.gz ok


With regards,
Narendra.
 

silversurfer

Well-Known Member
Dec 29, 2002
274
0
168
Anyone got further suggestions? I tried everything. Given that this post is a few months old, you would have thought it's fixed. But we only installed the DNSONLY version last week.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Anyone got further suggestions? I tried everything. Given that this post is a few months old, you would have thought it's fixed. But we only installed the DNSONLY version last week.
If you read this thread, then likely you saw my message posted on Dec 10 regarding DNSONLY.
 

silversurfer

Well-Known Member
Dec 29, 2002
274
0
168
Hi Kenneth

Yes I saw it. That was almost a month ago. Is it still in testing? I have 4 DNS servers to deploy and none of them is working, and it's part of a migration for 20-30 full licensed cpanel servers. This threw a spanner in the works for our schedule.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hi Kenneth

Yes I saw it. That was almost a month ago. Is it still in testing? I have 4 DNS servers to deploy and none of them is working, and it's part of a migration for 20-30 full licensed cpanel servers. This threw a spanner in the works for our schedule.
My apologies to you. I just returned from vacation and psoted my prior reply without fully learning what is happening. The installer for DNSONLY was updated on Dec 22, 2006. It should resolve this issue, along with a few other DNSONLY specific problems.
 

silversurfer

Well-Known Member
Dec 29, 2002
274
0
168
Hi Kenneth,

Thank you. I am still facing the very same issues mentioned in this post. That is why I came here looking for answers, and we installed it only last week which is after the update. The issue seem to be still existing.

Is there anything else we can do to fix this?

Thank you.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hi Kenneth,

Thank you. I am still facing the very same issues mentioned in this post. That is why I came here looking for answers, and we installed it only last week which is after the update. The issue seem to be still existing.

Is there anything else we can do to fix this?

Thank you.
If you could let me know your OS/Distro, I'll do a DNSONLY install test today and see what is going wrong.

You could attempt to apply the patch posted in the bug report mentioned earlier in this thread. I believe someone posted simplified instructions on applying it.

Once i have more definitive answers I'll post them in the bug report and likely here.
 

silversurfer

Well-Known Member
Dec 29, 2002
274
0
168
Hi Kenneth,

I did apply the patch, and it didn't work. I did everything suggested in the forums including renaming the Compress-Zlib file.

This is on Centos 4.4 i386

Thanks.
 

whitemd

Registered
Jan 27, 2007
1
0
151
I am having the same issue with the DNS only installer. I am using CentOS 4.4 as well -- any update on this?
 

d_t

Well-Known Member
Sep 20, 2003
245
3
168
Bucharest
The patch is working but it has to be applied to /scripts/cPScript/cPCPAN.pm

I don't know why this problem still exists in DNSONLY version. However, the DNSONLY-BETA version contains the patch. To upgrade to this version you need to edit /etc/cpupdate.conf file and replace line:
Code:
CPANEL=dnsonly
with
Code:
CPANEL=dnsonly-beta
Then run /scripts/upcp --force

To see if any error appear, watch the file /usr/local/cpanel/logs/error_log (it's truncated after each cPanel restart).
 
Last edited: