The last attempt to update cPanel & WHM was blocked - Workaround

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
We're up at 11.48.1.2 so should we downgrade (never a good idea..) or what?
This was implemented with case number 169045 for cPanel version 11.48. You can switch to the "Release" build tier to update to a version of cPanel 11.48 that includes this feature (11.48.2.3 is the most recent as of now).

Thank you.
 

PPNSteve

Well-Known Member
Mar 13, 2003
422
9
168
Somewhere in Ilex Forest
cPanel Access Level
Root Administrator
Twitter
Apparently I can not..
Code:
[20150326.185129]
[20150326.185129]  cPanel update completed
[20150326.185129] A log of this update is available at /var/cpanel/updatelogs/update.1427395708.log
[20150326.185129] Removing upcp pidfile
[20150326.185129] W NOTE: A system upgrade was not possible due to the following blockers:
[20150326.185129] W [FATAL] - cPanel & WHM cannot update due to insufficient disk space in the staging directory, '/usr/local/cpanel'. The system requires 3 GB to update; this directory only has 2.63 GB available. The system automatically selected '/home2' as a staging directory. All update data will be stored here. If you take no action, the system will continue to use this directory for future updates. To change the location of the staging directory, use WHM's Update Preferences interface.
=> Log closed Thu Mar 26 18:51:29 2015
whm_update_prefs_no_options20150326.png
 

PCZero

Well-Known Member
Dec 13, 2003
735
92
178
Earth
Nice fix for going forward. Thank you VERY much for the efforts by all the development team. The catch 22 is obvious though. Someone who has a previous version and is stuck with the old patition scheme, they don't have this parameter to set until they update and they cannot update until they have this parameter. Oops fatal loop! :)
 
  • Like
Reactions: PPNSteve

Metro2

Well-Known Member
May 24, 2006
574
94
178
USA
cPanel Access Level
Root Administrator
Hello,

Internal case number 167909 was included with cPanel version 11.46.3.3. You can see the new staging options when you browse to "WHM Home »Server Configuration » Update Preferences" after updating to this version (assuming you are using cPanel 11.46).

Thank you.
Hi cPanelMichael,

I have servers that have been "stuck" at 11.46.0 (Build 15) since last November when cPanel changed the required free space in /usr from 1.6GB to 3GB.

Based on your post, should I assume that the forthcoming solution at http://features.cpanel.net/response...nstall-blocker-revert-back-to-16gb-from-3gb_3 will not be available to me?

Thank you.
 

PPNSteve

Well-Known Member
Mar 13, 2003
422
9
168
Somewhere in Ilex Forest
cPanel Access Level
Root Administrator
Twitter
partial update log on server running 11.48.2.3:
Code:
------------------------------
----------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (13985) at Tue Mar 31 09:03:01 2015
[20150331.090301]   Detected cron=1 (cron mode set from command line)
[20150331.090301]   1% complete
[20150331.090301]   Running Standardized hooks
[20150331.090302]   2% complete
[20150331.090302]   mtime on upcp is 1423472845 (Mon Feb  9 09:07:25 2015)
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (13987) at Tue Mar 31 09:03:02 2015
[20150331.090302]   Detected version '11.48.2.3' from version file.
[20150331.090302]   Running version '11.48.2.3' of updatenow.
[20150331.090302]   Using mirror '74.200.212.130' for host 'httpupdate.cpanel.net'.
[20150331.090302]   Target version set to '11.48.1.3'
[20150331.090302]   Switching to 11.48.1.3 to determine if we can reach that version without failure.
[20150331.090303]   Retrieving and staging /cpanelsync/11.48.1.3/cpanel/scripts/updatenow.static.bz2
[20150331.090303]   Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150331.090307]   Set permissions on /usr/local/cpanel/scripts/updatenow.static-cpanelsync to 0700
[20150331.090307]   Become an updatenow.static for version: 11.48.1.3
=> Log closed Tue Mar 31 09:03:07 2015
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow.static-cpanelsync (13987) at Tue Mar 31 09:03:08 2015
[20150331.090308]   Detected version '11.48.2.3' from version file.
[20150331.090308]   Running version '11.48.1.3' of updatenow.
[20150331.090308]   Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150331.090308]   Target version set to '11.48.2.3'
[20150331.090308]   Up to date (11.48.2.3)
=> Log closed Tue Mar 31 09:03:08 2015
[20150331.090308]   17% complete
=> Log closed Tue Mar 31 09:03:08 2015
and the same partial log from a server running 11.48.1.2:
Code:
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (20182) at Tue Mar 31 22:14:01 2015
[20150331.221401]  Detected cron=1 (cron mode set from command line)
[20150331.221401]  1% complete
[20150331.221401]  Running Standardized hooks
[20150331.221401]  2% complete
[20150331.221401]  mtime on upcp is 1422397059 (Tue Jan 27 22:17:39 2015)
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (20184) at Tue Mar 31 22:14:02 2015
[20150331.221402]  Detected version '11.48.1.2' from version file.
[20150331.221402]  Running version '11.48.1.2' of updatenow.
[20150331.221402]  Using mirror '208.74.125.43' for host 'httpupdate.cpanel.net'.
[20150331.221402]  Target version set to '11.48.2.3'
[20150331.221402]  Switching to 11.48.2.3 to determine if we can reach that version without failure.
[20150331.221402]  Retrieving and staging /cpanelsync/11.48.2.3/cpanel/scripts/updatenow.static.bz2
[20150331.221402]  Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150331.221402]  Set permissions on /usr/local/cpanel/scripts/updatenow.static-cpanelsync to 0700
[20150331.221402]  Become an updatenow.static for version: 11.48.2.3
=> Log closed Tue Mar 31 22:14:02 2015
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow.static-cpanelsync (20184) at Tue Mar 31 22:14:03 2015
[20150331.221403]  Detected version '11.48.1.2' from version file.
[20150331.221403]  Running version '11.48.2.3' of updatenow.
[20150331.221403]  Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150331.221403]  Target version set to '11.48.2.3'
[20150331.221403]  Checking license
[20150331.221403]  License file check complete
[20150331.221403] E Blocker found: cPanel & WHM cannot update due to insufficient disk space in the staging directory, '/usr/local/cpanel'. The system requires 3 GB to update; this directory only has 2.72 GB available. The system automatically selected '/home2' as a staging directory. All update data will be stored here. If you take no action, the system will continue to use this directory for future updates. To change the location of the staging directory, use WHM's Update Preferences interface.
[20150331.221403]  Checking that the RPM DB is OK...
[20150331.221403]  glibc-2.12-1.149.el6_6.5.x86_64
[20150331.221403]  glibc-2.12-1.149.el6_6.5.i686
[20150331.221403]  OK: RPM DB is responding to queries
[20150331.221403]  Testing if rpm_is_working RPM is installed
[20150331.221403]  package rpm_is_working is not installed
[20150331.221403]  Testing if it's possible to install a simple RPM
[20150331.221403]  Preparing...  ##################################################
[20150331.221403]  rpm_is_working  ##################################################
[20150331.221404] W An attempt to up/downgrade to 11.48.2.3 was blocked. Please review blockers.
=> Log closed Tue Mar 31 22:14:04 2015
[20150331.221404]  17% complete
=> Log closed Tue Mar 31 22:14:04 2015
NOT QUITE READY FOR PRIME TIME.
 

Venomous21

Well-Known Member
Jun 28, 2012
85
0
6
cPanel Access Level
Root Administrator
Hello,

I checked a few servers that are running 11.48.2.1...however, when I check the release version on the "Update Preferences" page in WHM, it says the target "release" version is 11.48.1.3...very odd...

If I upgrade, will it try to force a downgrade to 11.48.1.3 from 11.48.2.1? I will wait before I do anything since this affects multiple servers. Please, advise. Thank you.
 

Venomous21

Well-Known Member
Jun 28, 2012
85
0
6
cPanel Access Level
Root Administrator
Is it safe to upgrade from 11.48.2.1 to 11.48.2.3 now? It's now showing 11.48.2.3 in the release tier instead of 11.48.1.3, which would have been a downgrade. Please, advise. Thanks.
 

jestep

Well-Known Member
Dec 18, 2006
52
1
158
Just an FYI for anyone else looking to do this.

We performed this last week on a server still running 11.46.0. It did work, but required us to reboot into single user. No matter what we did, there was still a process using a file under /usr/local/cpanel

Once we figured that part out, upgrade worked without issue after rebooting.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

The issue reported here happens on servers where the "STAGING_DIR=" entry in /etc/cpupdate.conf is removed during the upcp process (e.g. cPanel versions 11.46.0.0 through 11.46.3.1 and 11.48.1.2). The removal of the entry prevents the definition of the staging directory and blocks updates. Internal case number 181689 is open to address this issue, but you can run the following command in the meantime as a temporary workaround:

Code:
echo 'STAGING_DIR=/home' >> /etc/cpupdate.conf ; chattr +i /etc/cpupdate.conf ; /scripts/upcp ; chattr -i /etc/cpupdate.conf
Note this command assumes you want to use /home as the staging directory.

Thank you.
 
  • Like
Reactions: DougK94