cPanel version change is blocked - GLib WARNING - yum locked

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
Same here. I'd like to know what the solution is. This is an error we've never seen before.
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hi,

That message means that Yum is/was currently doing work, and it wasn't able to be used for your upgrade command. You should be able to wait 10/20 minutes and try again, and if that doesn't help, you'll need to see what Yum was doing and fix that.
 

globcom

Well-Known Member
May 24, 2008
57
3
58
Thanks cPJacob,

but when I do a yum update, I obtain this :

Code:
# yum update
Loaded plugins: fastestmirror, rhnplugin, security
Loading mirror speeds from cached hostfile
 * cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
cl-mysql-beta-5.5                                                                                               |  951 B     00:00     
cloudlinux-x86_64-server-6: [########################################################################################### ] 25862/25867
(process:400655): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing primary.xml error: Premature end of data in tag format line 93382


(process:400655): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing primary.xml error: Premature end of data in tag package line 93377


(process:400655): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: Parsing primary.xml error: Premature end of data in tag metadata line 2

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 285, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 136, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 434, in doCommands
    self._getTs(needTsRemove)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 99, in _getTs
    self._getTsInfo(remove_only)
  File "/usr/lib/python2.6/site-packages/yum/depsolve.py", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 887, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 669, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 308, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 187, in populate
    dobj = repo_cache_function(xml, csum)
  File "/usr/lib64/python2.6/site-packages/sqlitecachec.py", line 46, in getPrimary
    self.repoid))
TypeError: Parsing primary.xml error: Premature end of data in tag file line 93382
 

cPMarkF

*nix Technical Analyst
Staff member
Feb 4, 2013
18
8
78
cPanel Access Level
Root Administrator
This is a known recent issue occurring on some CloudLinux boxes. The workaround to get upcp to start is as follows:

Code:
[01:28:15 server [email protected] ~]cPs# mkdir /root/cpanelzone

[01:28:51 server [email protected] ~]cPs# mv /etc/ld.so.conf.d/alt-libxml2.conf /root/cpanelzone/

[01:29:11 server [email protected] ~]cPs# ldconfig

[01:29:16 server [email protected] ~]cPs# yum update alt-libxml2
Loaded plugins: fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
 * cloudlinux-x86_64-server-6: xmlrpc.cln.cloudlinux.com
cloudlinux-x86_64-server-6                                                                                                                                                        25867/25867
configserver                                                                                                                                                           | 2.9 kB     00:00     
kernelcare                                                                                                                                                             |  951 B     00:00     
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package alt-libxml2.x86_64 0:2.9.1-16.el6 will be updated
---> Package alt-libxml2.x86_64 0:2.9.1-18.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                    Arch                                  Version                                     Repository                                                 Size
==============================================================================================================================================================================================
Updating:
 alt-libxml2                                x86_64                                2.9.1-18.el6                                cloudlinux-x86_64-server-6                                1.3 M

Transaction Summary
==============================================================================================================================================================================================
Upgrade       1 Package(s)

Total size: 1.3 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : alt-libxml2-2.9.1-18.el6.x86_64                                                                                                                                            1/2 
  Cleanup    : alt-libxml2-2.9.1-16.el6.x86_64                                                                                                                                            2/2 
  Verifying  : alt-libxml2-2.9.1-18.el6.x86_64                                                                                                                                            1/2 
  Verifying  : alt-libxml2-2.9.1-16.el6.x86_64                                                                                                                                            2/2 

Updated:
  alt-libxml2.x86_64 0:2.9.1-18.el6                                                                                                                                                           

Complete!


[01:29:46 server [email protected] ~]cPs# /scripts/upcp --force
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (496292) at Sun Feb 22 01:29:55 2015
[20150222.012955]   Detected cron=0 (SSH connection detected)
[20150222.012955]   1% complete
[20150222.012955]   Running Standardized hooks
[20150222.012955]   2% complete
[20150222.012955]   mtime on upcp is 1423468655 (Mon Feb  9 01:57:35 2015)
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (496295) at Sun Feb 22 01:29:55 2015
[20150222.012955]   Detected version '11.48.0.12' from version file.
[20150222.012955]   Running version '11.48.0.12' of updatenow.
[20150222.012955]   --force passed on command line. Upgrade will disregard update config settings.
[20150222.012955]   Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150222.012955]   Target version set to '11.48.0.13'
[20150222.012955]   Switching to 11.48.0.13 to determine if we can reach that version without failure.
[20150222.012955]   Retrieving and staging /cpanelsync/11.48.0.13/cpanel/scripts/updatenow.static.bz2
[20150222.012955]   Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150222.012956]   Set permissions on /usr/local/cpanel/scripts/updatenow.static-cpanelsync to 0700
[20150222.012956]   Become an updatenow.static for version: 11.48.0.13
=> Log closed Sun Feb 22 01:29:56 2015
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow.static-cpanelsync (496295) at Sun Feb 22 01:29:56 2015
[20150222.012956]   Detected version '11.48.0.12' from version file.
[20150222.012956]   Running version '11.48.0.13' of updatenow.
[20150222.012956]   --force passed on command line. Upgrade will disregard update config settings.
[20150222.012956]   Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150222.012956]   Target version set to '11.48.0.13'
[20150222.012956]   Checking license
[20150222.012956]   License file check complete
[20150222.012956]   Checking that the RPM DB is OK...
[20150222.012956]   glibc-2.12-1.132.el6.i686
[20150222.012956]   glibc-2.12-1.132.el6.x86_64
[20150222.012956]   OK: RPM DB is responding to queries
[20150222.012956]   Testing if rpm_is_working RPM is installed
[20150222.012956]   package rpm_is_working is not installed
[20150222.012956]   Testing if it's possible to install a simple RPM
[20150222.012956]   Preparing...                ##################################################
[20150222.012956]   rpm_is_working              ##################################################
[20150222.012956]   Switching to version '11.48.0.13' of updatenow to perform sync.
[20150222.012957]   All Needed RPMS are installed.
[20150222.012957]   Staging 11.48.0.13 cpanelsync files prior to updating /usr/local/cpanel
...
[20150222.013835]   ==> Post Install Complete
[20150222.013835]   95% complete
=> Log closed Sun Feb 22 01:38:35 2015
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (496292) at Sun Feb 22 01:38:35 2015
[20150222.013835]   Post-sync cleanup completed successfully
[20150222.013835]   Polling updatenow to see if a newer version is available for upgrade
=> Log closed Sun Feb 22 01:38:35 2015
----------------------------------------------------------------------------------------------------
=> Log opened from /usr/local/cpanel/scripts/updatenow (508683) at Sun Feb 22 01:38:35 2015
[20150222.013835]   Detected version '11.48.0.13' from version file.
[20150222.013835]   Running version '11.48.0.13' of updatenow.
[20150222.013835]   Using mirror '67.222.0.10' for host 'httpupdate.cpanel.net'.
[20150222.013835]   Target version set to '11.48.0.13'
[20150222.013835]   Up to date (11.48.0.13)
=> Log closed Sun Feb 22 01:38:35 2015
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (496292) at Sun Feb 22 01:38:35 2015
[20150222.013835]   95% complete
[20150222.013835]   Running /usr/local/cpanel/scripts/postupcp
[20150222.014008]   Running Standardized hooks
[20150222.014008]   100% complete
[20150222.014008]   
[20150222.014008] 	cPanel update completed
[20150222.014008]   A log of this update is available at /var/cpanel/updatelogs/update.1424590195.log
[20150222.014008]   Removing upcp pidfile
[20150222.014008]   
[20150222.014008] Completed all updates
=> Log closed Sun Feb 22 01:40:08 2015
If these steps do not work for you, please continue to open a ticket with us. Thank you.