Hacker for Hire

Hsphere 3.1 Update From 3.0 – UPDATED

Wyatt • • Rants

OK, so this went painfully … very painfully. Let me reiterate … I flipping HATE H-Sphere and refused to pay $70+ for a service incident that shouldn’t happen because their crew didn’t do their homework with testing and didn’t provide a “here’s what to do if things go wrong” section.

Followed the instructions here.

Did a cpupdate and received this error:

> Temporary directory = [ /var/hsphere/update/U31.0.18078 ]
> Current directory === [ /root ]
> Extracting …
=================================================================
+ UPDATE TO U31.0 2008-06-28.12:03
=================================================================
/var/hsphere/update/U31.0.18078
+ Executing …
########################################
=================================================================
+ COMMAND=’cpupdate’
=================================================================</p>

__ Update physical boxes.
|
|– Current CP version: 3.0.828
|– Current CP Postgres version: 7.4.19.
|
|– Update of CP box started.
| |– Install local package updater.
| |– Update cp box related software.
| | |– Sat Jun 28 12:03:27 EDT 2008
| | |– Downloading pkglist (64.131.90.141).
| | | |– 100% 88,482 –.–K/s
| | | `– Downloaded pkglist.
| | |– Downloading subpkglist (64.131.90.141).
| | | |– 100% 4,700 –.–K/s
| | | `– Downloaded subpkglist.
| | |
| | |– Identifying required packages.
| | |– OS: CentOS release 4.6 (Final).
| | |– Perl version: 5.8.5.
| | |– CP Postgres version: 7.4.19.
| | |– Downloading hsphere-info-1-14.rpm (64.131.90.141).
| | | |– 100% 93,483 334.84K/s
| | | `– Downloaded hsphere-info-1-14.rpm.
| | |– Installing hsphere-info-1-14 package.
| | | |– Checked system configuration files.
| | | |– Formed ips and interface files.
| | | |– Additional MANPATH entries checked.
| | | |– TimeZone files checked.
| | | |– H-Sphere related cron tasks added.
| | |– Downloading hsphere-utils-1-8.rpm (64.131.90.141).
| | | |– 100% 2,163,621 3.48M/s
| | | `– Downloaded hsphere-utils-1-8.rpm.
| | |– Installing hsphere-utils-1-8 package.
| | | `–Installing hsphere-utils-1-8 package.
| | |
| | |– Check whether logical servers are completely configured.
| | | |– List of identified logical servers: dns, cp.
| | | `– Check whether logical servers are completely configured.
| | |
| | |– Check required system packages.
| | | `– Check required system packages.
| | |
| | |– Check/download pre-install hsphere core package list.
| | | |– Downloading hsphere-sudo-1.6.9p14-1.rpm (64.131.90.141).
| | | | |– 100% 131,287 –.–K/s
| | | | `– Downloaded hsphere-sudo-1.6.9p14-1.rpm.
| | | |– hsphere-script-runner-1-10.rpm with the same md5sum exist.
| | | |– hsphere-oscommerce-2.2ms2-3.rpm with the same md5sum exist.
| | | |– hsphere-phpBB-2.0.22-1.rpm with the same md5sum exist.
| | | |– hsphere-jdk-1.5.0-13.rpm with the same md5sum exist.
| | | |– Downloading hsphere-cpanel-javart-3.1-904.rpm (64.131.90.141).
| | | | |– 100% 24,017,794 2.10M/s ETA 00:00
| | | | `– Downloaded hsphere-cpanel-javart-3.1-904.rpm.
| | | |– Downloading hsphere-jakarta-6.0.14-0.rpm (64.131.90.141).
| | | | |– 100% 4,794,818 4.46M/s
| | | | `– Downloaded hsphere-jakarta-6.0.14-0.rpm.
| | | |– Downloading hsphere-cpanel-apache2-2.2.8-2.rpm (64.131.90.141).
| | | | |– 100% 2,107,508 2.75M/s
| | | | `– Downloaded hsphere-cpanel-apache2-2.2.8-2.rpm.
| | | |– Downloading hsphere-core-3.1-904.rpm (64.131.90.141).
| | | | |– 100% 12,229,070 3.62M/s ETA 00:00
| | | | `– Downloaded hsphere-core-3.1-904.rpm.
| | | |– hsphere-aspell-0.60.3-1.rpm with the same md5sum exist.
| | | |– hsphere-oscommerce-2.2ms2-3.rpm with the same md5sum exist.
| | | |– hsphere-phpBB-2.0.22-1.rpm with the same md5sum exist.
| | | |– postgresql-libs-7.4.19-1.rpm with the same md5sum exist.
| | | |– postgresql-7.4.19-1.rpm with the same md5sum exist.
| | | |– postgresql-server-7.4.19-1.rpm with the same md5sum exist.
| | | |– postgresql-contrib-7.4.19-1.rpm with the same md5sum exist.
| | | |– Downloading hsphere-config-pgsql-1.1-5.rpm (64.131.90.141).
| | | | |– 100% 10,185 –.–K/s
| | | | `– Downloaded hsphere-config-pgsql-1.1-5.rpm.
| | | |– hsphere-sudo-1.6.9p14-1.rpm with the same md5sum exist.
| | | |– hsphere-script-runner-1-10.rpm with the same md5sum exist.
| | | `– Check/download pre-install hsphere core package list.
| | |
| | |– Check presence of the deprecated hsphere packages.
| | | `– Check presence of the deprecated hsphere packages.
| | |
| | |– Deleting deprecated hsphere packages.
| | | |– Deleting hsphere-apache-1.3.37-6 package.
| | | | `– hsphere-apache-1.3.37-6 package deleted.
| | | |– Deleting hsphere-cpanel-apache-1.3.41-1 package.
| | | | `– hsphere-cpanel-apache-1.3.41-1 package deleted.
| | | |– Deleting hsphere-php4-4.4.4-2 package.
| | | | `– hsphere-php4-4.4.4-2 package deleted (nodeps).
| | | |– Deleting hsphere-php4-plugins-4.4.4-2 package.
| | | | `– hsphere-php4-plugins-4.4.4-2 package deleted.
| | | |– Deleting hsphere-php5-5.2.0-1 package.
| | | | `– hsphere-php5-5.2.0-1 package deleted (nodeps).
| | | |– Deleting hsphere-php5-plugins-5.2.0-1 package.
| | | | `– hsphere-php5-plugins-5.2.0-1 package deleted.
| | | `– Deleting deprecated hsphere packages.
| | |
| | |– Check/Installing pre-install hsphere core package list.
| | | |– Deleting hsphere-sudo-1.6.9p6-1 package.
| | | | `– hsphere-sudo-1.6.9p6-1 package deleted (nodeps).
| | | |– Installing hsphere-sudo-1.6.9p14-1 package.
| | | | `–Installing hsphere-sudo-1.6.9p14-1 package.
| | | |– Deleting hsphere-cpanel-javart-3.0-828 package.
| | | | `– hsphere-cpanel-javart-3.0-828 package deleted.
| | | |– Installing hsphere-cpanel-javart-3.1-904 package.
| | | | |– removing redundant jar files
| | | | `–Installing hsphere-cpanel-javart-3.1-904 package.
| | | |– Deleting hsphere-jakarta-5.5.16-0 package.
| | | | `– hsphere-jakarta-5.5.16-0 package deleted (nodeps).
| | | |– Installing hsphere-jakarta-6.0.14-0 package.
| | | | |– Existing cpanel user changed.
| | | | |– *** Conversion has not been done. ***
| | | | `–Installing hsphere-jakarta-6.0.14-0 package.
| | | |– Installing hsphere-cpanel-apache2-2.2.8-2 package.
| | | | |– Temporary certificate assigned self-signed CA Certificate created.
| | | | |– Cpanel apache started.
| | | | `– hsphere-cpanel-apache2-2.2.8-2 package installed.
| | | |– Deleting hsphere-core-3.0-828 package.
| | | | `– hsphere-core-3.0-828 package deleted.
| | | |– Installing hsphere-core-3.1-904 package.
| | | | |– Existing cpanel user changed.
| | | | |– Existing cpanel user changed.
| | | | `–Installing hsphere-core-3.1-904 package.
| | | |– Deleting postgresql-libs-7.4.19-1.el4_6.1 package.
| | | | `– postgresql-libs-7.4.19-1.el4_6.1 package deleted (nodeps).
| | | |– Deleting postgresql-7.4.19-1.el4_6.1 package.
| | | | `– postgresql-7.4.19-1.el4_6.1 package deleted (nodeps).
| | | |– Deleting postgresql-server-7.4.19-1.el4_6.1 package.
| | | | `– postgresql-server-7.4.19-1.el4_6.1 package deleted (nodeps).
| | | |– Deleting postgresql-contrib-7.4.19-1.el4_6.1 package.
| | | | `– postgresql-contrib-7.4.19-1.el4_6.1 package deleted.
| | | |– Deleting hsphere-config-pgsql-1.1-4 package.
| | | | `– hsphere-config-pgsql-1.1-4 package deleted.
| | | |– Installing hsphere-config-pgsql-1.1-5 package.
| | | | |– **** Can not find startup file.
| | | | `– hsphere-config-pgsql-1.1-5 package installed.
| | | |– Deleting hsphere-sudo-1.6.9p6-1 package.
| | | | `– *** hsphere-sudo-1.6.9p6-1 package deletion error! For more details see /hsphere/pkg/updates/U31.0//U31.0/update_28.06.08_12_03.log file (209.173.159.100) ***
| | |
| | |– Sat Jun 28 12:07:21 EDT 2008 (update time: 3 min, 54 sec)
| | `– *** Update cp box related software problems ***.
=================================================================
+ COMMAND=’cpupdate’
=================================================================

__ Update physical boxes.
|
|– Current CP version: 3.1.904
`– *** CP Postgres version: authentication access problem! ***
=================================================================
+ COMMAND=’x’
=================================================================
+ Cleaning …
+ Finished

Well, that didn’t work, so lets just try it again:

=================================================================
+ COMMAND=’cpupdate’
=================================================================</p>

__ Update physical boxes.
|
|– Current CP version: 3.1.904
`– *** CP Postgres version: authentication access problem! ***
=================================================================
+ COMMAND=’x’
=================================================================
+ Cleaning …
+ Finished

Unfortunately, searching the Internet and H-Sphere’s site turned up nothing helpful on the issue except this thread … which didn’t match my situation and didn’t have anything in it except telling me to buy a new support request.

So since I refuse to pay for something I’ve already paid for, here’s the solution to fix it for the rest of you:

rpm -qa |grep postgresql |xargs rpm -e –nodeps
rpm -Uvh /hsphere/pkg/postgresql*19*.rpm
rpm -Uvh –force /hsphere/pkg/hsphere-config-pgsql-1.15.rpm

Then back into the H-Sphere updater:

sh /hsphere/U31.0
cpupdate

And the peasants rejoice … until they try to SSH in. The stupid jaild package that’s provided is busted in so may ways. The easiest solution is to just edit /etc/passwd to a real shell location; however, you’ll give up security to make this happen so I’ll leave the choice to you.

Update 07/12/2008:
Fixed the jaild issue. Apparently, when you do the update, if ANY user is logged in and has an actively running process (yes, I tried it multiple ways) … the jail setup fails oddly and doesn’t allow ANY user to log into the system. The solution? Boot all the users off the box:

/etc/init.d/sshd stop
killall sshd

Reconfig the jaild:

/hsphere/local/config/jail/scripts/config_jail

H-sphere’s attempt here

comments powered by Disqus