Hi Guys ever since these updates installed below having two errors pop up in yum update.
app-base-2.7.8-1.v7 Updated Oct 02, 09:21:19
app-base-core-2.7.8-1.v7 Updated Oct 02, 09:21:18
app-web-server-2.5.2-1.v7 Installed Oct 02, 08:02:58
The errors found during manual yum update are:
1.) ClearCenter Marketplace: global name 'section_id' is not defined
2.) NameError: global name 'wc_repos' is not defined
I have researched around saw a fix to similar question posted in 2017 not so sure that particular fix still applies?
Your guidance is much appreciated.
app-base-2.7.8-1.v7 Updated Oct 02, 09:21:19
app-base-core-2.7.8-1.v7 Updated Oct 02, 09:21:18
app-web-server-2.5.2-1.v7 Installed Oct 02, 08:02:58
The errors found during manual yum update are:
1.) ClearCenter Marketplace: global name 'section_id' is not defined
2.) NameError: global name 'wc_repos' is not defined
I have researched around saw a fix to similar question posted in 2017 not so sure that particular fix still applies?
Your guidance is much appreciated.
Share this post:
Responses (69)
-
Accepted Answer
:O I probably speak out not clearly
At the moment, I cannot install the operating system on a new computer.
I describe the order of my actions:
1. Downloading http://mirror.clearos.com/clearos/7/iso/x86_64/ClearOS-DVD-x86_64.iso
2. Install. At the end, an update occurs that breaks everything.
3. Trying to install any package, I get an error:
Downloading packages:
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 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 281, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 683, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2635, in downloadPkgs
self.plugins.run('postdownload', pkglist=pkglist, errors=errors)
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/clearcenter-marketplace.py", line 291, in postdownload_hook
if pkg.repo in wc_repos:
NameError: global name 'wc_repos' is not defined
How to fix this error? -
Accepted Answer
Nick Howitt wrote:
@khvalera, can you try a "yum update" from the command line? Either use the Console and do an alt+f2 to get a command line or use PuTTy.
You don’t hear me, I indicated an error from the command terminal yum update:
Downloading packages:
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 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 281, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 683, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2635, in downloadPkgs
self.plugins.run('postdownload', pkglist=pkglist, errors=errors)
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/clearcenter-marketplace.py", line 291, in postdownload_hook
if pkg.repo in wc_repos:
NameError: global name 'wc_repos' is not defined
There was no problem a month ago, the error appeared in the latest updates. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
A previous fix was posted here (I cannot locate the later fix at the moment) -> https://www.clearos.com/clearfoundation/social/community/marketplace-is-currently-disabled-for
I am on community edition for the moment. Updates were originally ran through the web gui for them to re appear the next day so did the yum update in console to see what is going on. I am not aware of auto updates or a setting to enable auto updates? I am interested in playing with clear glass but that is to be discussed separately as the registration email are wonky. -
Accepted Answer
As a new user, your first couple of posts get moderated so don't appear immediately. I've deleted your other post.
Are you on Home, Business or Community? Which fix have you seen as I am not aware of any issues. Are you running updates manually only as app-web-server should have been updated a while ago.
Please can you do a:
and give the result of the "yum update".yum clean all --enablerepo=*
yum update -
Accepted Answer
Yum Update Result:
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
ClearCenter Marketplace: global name 'section_id' is not defined
Determining fastest mirrors
* clearos: www.mirrorservice.org
* clearos-centos: download4.clearsdn.com
* clearos-centos-sclo-rh: download4.clearsdn.com
* clearos-centos-updates: download4.clearsdn.com
* clearos-contribs: www.mirrorservice.org
* clearos-epel: download4.clearsdn.com
* clearos-fast-updates: download4.clearsdn.com
* clearos-infra: www.mirrorservice.org
clearos | 3.7 kB 00:00
clearos-centos | 3.6 kB 00:00
clearos-centos-sclo-rh | 3.0 kB 00:00
clearos-centos-updates | 2.9 kB 00:00
clearos-contribs | 3.5 kB 00:00
clearos-epel | 2.9 kB 00:00
clearos-fast-updates | 3.0 kB 00:00
clearos-infra | 3.5 kB 00:00
download.mono-project.com_repo_centos_ | 2.9 kB 00:00
(1/13): clearos/7/group_gz | 1.6 kB 00:01
(2/13): clearos-centos/x86_64/group_gz | 166 kB 00:01
(3/13): clearos-contribs/7/updateinfo | 96 B 00:00
(4/13): clearos-contribs/7/primary_db | 73 kB 00:01
(5/13): clearos/7/primary_db | 759 kB 00:04
(6/13): clearos-fast-updates/x86_64/primary_db | 10 kB 00:00
(7/13): clearos-infra/7/updateinfo | 96 B 00:00
(8/13): clearos-infra/7/primary_db | 11 kB 00:00
(9/13): download.mono-project.com_repo_centos_/primary_db | 1.4 MB 00:06
(10/13): clearos-centos-sclo-rh/x86_64/primary_db | 3.6 MB 00:17
(11/13): clearos-centos/x86_64/primary_db | 6.0 MB 00:36
(12/13): clearos-epel/7/x86_64/primary_db | 8.9 MB 00:43
(13/13): clearos-centos-updates/x86_64/primary_db | 7.1 MB 00:50
Resolving Dependencies
--> Running transaction check
---> Package libgdiplus-devel.x86_64 0:6.0.2-0.xamarin.1.epel7 will be updated
---> Package libgdiplus-devel.x86_64 0:6.0.4-0.xamarin.1.epel7 will be an update
---> Package libgdiplus0.x86_64 0:6.0.2-0.xamarin.1.epel7 will be updated
---> Package libgdiplus0.x86_64 0:6.0.4-0.xamarin.1.epel7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package
Arch Version Repository Size
================================================================================
Updating:
libgdiplus-devel
x86_64 6.0.4-0.xamarin.1.epel7 download.mono-project.com_repo_centos_ 180 k
libgdiplus0
x86_64 6.0.4-0.xamarin.1.epel7 download.mono-project.com_repo_centos_ 527 k
Transaction Summary
================================================================================
Upgrade 2 Packages
Total download size: 707 k
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): libgdiplus-devel-6.0.4-0.xamarin.1.epel7.x86_64.rpm | 180 kB 00:04
(2/2): libgdiplus0-6.0.4-0.xamarin.1.epel7.x86_64.rpm | 527 kB 00:04
--------------------------------------------------------------------------------
Total 166 kB/s | 707 kB 00:04
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 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 281, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 683, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_call back_total_cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2635, in downloa dPkgs
self.plugins.run('postdownload', pkglist=pkglist, errors=errors)
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/clearcenter-marketplace.py", line 291, in postdownl oad_hook
if pkg.repo in wc_repos:
NameError: global name 'wc_repos' is not defined -
Accepted Answer
From that thread, you could try a:
Which is a more brutal way of clearing the cache.rm -rf /var/cache/yum
Can I also suggest you disable the download.mono-project.com_repo_centos_ repo? Apart from it looking wrong in the first place, it is best not to have third party repos permanently enabled. You can find the repo file in /etc/yum.repos.d and change "enabled" from 1 to 0. Clear the cache afterwards. -
Accepted Answer
Disabled mono repo and ran:
1.) rm -rf /var/cache/yum
2.) sudo yum clean all && sudo yum clean metadata && sudo yum -y update yum && sudo yum update --skip-broken
No updated due at the moment as I've installed manually yesterday with rpm up to a point - leaving mono to figure the error.
I do not know if a yum plugin is relevant with "section_id" where this line occurs -> ClearCenter Marketplace: global name 'section_id' is not defined.
Also not sure how to install marketplace packages with yum - Perhaps with all the tinkering - install test remove - I may have unintentionally removed/disabled - causing the error. Since reinstalling packages with marketplace returns error global name 'wc_repos' is not defined. It appears the best recourse to install what was removed from newest removed to oldest until the error is gone. Reinstalling sadly is not an option :/
Unless off course you have better ideas than my grinding it out lol -
Accepted Answer
Can I suggest you don't do a "skip-broken" with yum unless you really know what you are doing. It can end in tears.
If you have been removing packages, almost never do it with yum, or at least, be very careful as it indiscriminately removes dependencies and this can take you system down. Have a look at what it proposes and think carefully before hitting the "y". If you have been using yum, check your yum log for other packages removed at the same time.
You can see a list of the free marketplace apps with a "yum list app-*". These can all be installed with yum. It is not possible to install paid apps with yum. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
I have a similar problem, after installation the system does not update:
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 370, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 276, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 671, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2634, in downloadPkgs
self.plugins.run('postdownload', pkglist=pkglist, errors=errors)
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/clearcenter-marketplace.py", line 291, in postdownload_hook
if pkg.repo in wc_repos:
NameError: global name 'wc_repos' is not defined -
Accepted Answer
-
Accepted Answer
Nick Howitt wrote:
Have you tried the:rm -rf /var/cache/yum
yum update
What are the last few updates in /var/log/yum.log? Perhaps list a couple of weeks worth.
Yes I tried it all, it doesn't help! This is the first update to a newly installed system. I downloaded the installation image a long time ago, I'll try to download a fresh one! -
Accepted Answer
-
Accepted Answer
I downloaded ClearOS-DVD-x86_64-7.6.0.261741.iso and reinstalled it. The following packages were updated:
(1/27): app-base-2.8.8-1.v7.noarch.rpm
(2/27): app-configuration-backup-2.5.4-1.v7.noarch.rpm
(3/27): app-dhcp-2.5.23-2.v7.noarch.rpm
(4/27): app-dns-2.7.2-1.v7.noarch.rpm
(5/27): app-dns-core-2.7.2-1.v7.noarch.rpm
(6/27): app-certificate-manager-core-2.6.1-1.v7.noarch.rpm
(7/27): app-edition-2.5.2-1.v7.noarch.rpm
(8/27): app-firewall-2.7.3-1.v7.noarch.rpm
(9/27): app-edition-core-2.5.2-1.v7.noarch.rpm
(10/27): app-base-core-2.8.8-1.v7.noarch.rpm
(11/27): app-software-updates-2.5.4-1.v7.noarch.rpm
(12/27): app-dhcp-core-2.5.23-2.v7.noarch.rpm
(13/27): app-configuration-backup-core-2.5.4-1.v7.noarch.rpm
(14/27): clearos-release-7-7.1.v7.x86_64.rpm
(15/27): app-firewall-core-2.7.3-1.v7.noarch.rpm
(16/27): app-software-updates-core-2.5.4-1.v7.noarch.rpm
(17/27): app-storage-core-2.6.16-1.v7.noarch.rpm
(18/27): initscripts-9.49.47-1.v7.x86_64.rpm
(19/27): iptables-1.4.21-33.v7.x86_64.rpm
(20/27): openldap-2.4.44-21.1.v7.x86_64.rpm
(21/27): kernel-tools-3.10.0-957.21.3.v7.x86_64.rpm
(22/27): kernel-tools-libs-3.10.0-957.21.3.v7.x86_64.rpm
(23/27): yum-marketplace-plugin-2.3-1.v7.noarch.rpm
(24/27): python-perf-3.10.0-957.21.3.v7.x86_64.rpm
(25/27): theme-clearos-admin-7.5.9-1.v7.noarch.rpm
(26/27): kernel-3.10.0-957.21.3.v7.x86_64.rpm
(27/27): gconsole-60.3.0-1.v7.2.x86_64.rpm
After which the above error appears.
When updating, I noticed a warning: warning: /etc/yum.repos.d/centos-unverified.repo created as /etc/yum.repos.d/centos-unverified.repo.rpmnew -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
The ClearOS 7.7.1.272661 ISO is a beta ISO. You should have received this warning when you performed the install. If you are trying to install a non-beta version of ClearOS, please use the 7.6 ISO and then perform the upgrade.
As for the viability, 'I can not install the operating system', it sounds like the OS installed just fine. In fact, you can always just use the webconfig to manage the install. If you don't know the current IP, you can hit CTRL+ALT+F3 and the log in and see the ip address by running 'ip a'.
Again, this ISO is a test ISO and there could be other problems. I appreciate the feedback.
If you need the current production 7.x ISO instead of the testing ISO, you can ALWAYS download it here:
http://mirror.clearos.com/clearos/7/iso/x86_64/ClearOS-DVD-x86_64.iso -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Nick Howitt wrote:
Sorry for that. Can you post your yum log (/var/log/yum.log)?
Oct 22 19:25:58 Updated: clearos-release-7-7.1.v7.x86_64
Oct 22 19:25:59 Updated: initscripts-9.49.47-1.v7.x86_64
Oct 22 19:25:59 Updated: theme-clearos-admin-7.5.9-1.v7.noarch
Oct 22 19:25:59 Updated: iptables-1.4.21-33.v7.x86_64
Oct 22 19:25:59 Updated: kernel-tools-libs-3.10.0-957.21.3.v7.x86_64
Oct 22 19:25:59 Updated: kernel-tools-3.10.0-957.21.3.v7.x86_64
Oct 22 19:25:59 Updated: yum-marketplace-plugin-2.3-1.v7.noarch
Oct 22 19:26:00 Updated: 1:app-edition-core-2.5.2-1.v7.noarch
Oct 22 19:26:00 Updated: 1:app-edition-2.5.2-1.v7.noarch
Oct 22 19:26:02 Updated: 1:app-base-core-2.8.9-1.v7.noarch
Oct 22 19:26:02 Updated: 1:app-base-2.8.9-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-dns-core-2.7.2-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-firewall-core-2.7.3-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-configuration-backup-core-2.5.4-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-certificate-manager-core-2.6.1-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-software-updates-core-2.5.4-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-dhcp-core-2.5.24-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-dhcp-2.5.24-1.v7.noarch
Oct 22 19:26:03 Updated: 1:app-software-updates-2.5.4-1.v7.noarch
Oct 22 19:26:04 Updated: 1:app-smtp-core-2.5.5-1.v7.noarch
Oct 22 19:26:04 Updated: 1:app-configuration-backup-2.5.4-1.v7.noarch
Oct 22 19:26:04 Updated: 1:app-firewall-2.7.3-1.v7.noarch
Oct 22 19:26:04 Updated: 1:app-dns-2.7.2-1.v7.noarch
Oct 22 19:26:05 Updated: 1:app-storage-core-2.6.24-1.v7.noarch
Oct 22 19:26:08 Installed: kernel-3.10.0-957.21.3.v7.x86_64
Oct 22 19:26:09 Updated: python-perf-3.10.0-957.21.3.v7.x86_64
Oct 22 19:26:09 Updated: openldap-2.4.44-21.1.v7.x86_64
Oct 22 19:26:17 Updated: gconsole-60.3.0-1.v7.2.x86_64
Nick Howitt wrote:
And another thought. Can you go to /etc/product. If jws_version is 1.4, please try changing it to 1.2 then try the "yum update" again. If it is 1.2, please try changing it to 1.4 then try the "yum update" again.
It was jws_version = 1.4 changed to jws_version = 1.2, it did not help -
Accepted Answer
If I am right, if you are going for a Community install, try doing a:
If you want Business or Home you may have to wait until 7.7 is released, hopefully next Tuesday.rm -rf /var/cache/yum/
yum update --enablerepo=clearos-updates,clearos-centos,clearos-centos-updates
If that does not work, what is the output of "yum repolist". -
Accepted Answer
Nick Howitt wrote:
If I am right, if you are going for a Community install, try doing a:
If you want Business or Home you may have to wait until 7.7 is released, hopefully next Tuesday.rm -rf /var/cache/yum/
yum update --enablerepo=clearos-updates,clearos-centos,clearos-centos-updates
If that does not work, what is the output of "yum repolist".
did not help
# yum repolist
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
ClearCenter Marketplace: global name 'section_id' is not defined
Loading mirror speeds from cached hostfile
* clearos: mirror1-frankfurt.clearos.com
* clearos-centos: download3.clearsdn.com
* clearos-centos-sclo-rh: download3.clearsdn.com
* clearos-contribs: mirror1-frankfurt.clearos.com
* clearos-fast-updates: download3.clearsdn.com
* clearos-infra: mirror1-frankfurt.clearos.com
* clearos-updates: mirror1-frankfurt.clearos.com
repo id repo name status
clearos/7 ClearOS 7 - x86_64 - OS 649
clearos-centos/x86_64 CentOS-7 - x86_64 - Base 10,042+55
clearos-centos-sclo-rh/x86_64 CentOS-7 - x86_64 - CentOS Software Collections 8,548
clearos-contribs/7 ClearOS 7 - x86_64 - Contribs 126
clearos-fast-updates/x86_64 ClearOS 7 - x86_64 - Fast Updates 3
clearos-infra/7 ClearOS 7 - x86_64 - Infrastructure 16
clearos-updates/7 ClearOS 7 - x86_64 - Updates 461
repolist: 19,845 -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Dave has indicated there my be a workaround but it requires a fresh install. Can you do the install, then before you do the first-run wizard in the browser, drop to the command line (alt+f2 from the console or use PuTTy) then do a "yum update", ignoring the warnings about not being registered. Then you should be able to proceed with the first-run wizard. -
Accepted Answer
The recent update to app-base to fix the upgrade script did not go as planned. As a result, if you see things like "kernel-*" and "samba-*" in /etc/yum.repos.d/centos-unverified.repo or /etc/yum.repos.d/clearos-centos.repo then your upgrade wont work properly. We have just pushed a fix and it is syncing to the mirrors. If you upgrade has failed, please do a:
You are looking for app-base-2.8.10-1.v7. If you do not get it, try waiting for a bit, do a "yum clean all" then try the update again. Most of the mirrors should be sync'd within a couple of hours.yum update app-base --enablerepo-clearos-updates-testing
yum clean all
yum update
The aim is to reduce the "exclude" lines in /etc/yum.repos.d/centos-unverified.repo or /etc/yum.repos.d/clearos-centos.repo to:
The order of the parameters does not matter, just that they and only they exist after upgrading to 7.7.exclude=shim-aa64-* centos-release centos-logos anaconda-* arpwatch cloud-init-* cyrus-imapd-* debugmode grub2-* initscripts iptables-* mokutil-* openldap-* ppp-* rp-pppoe shim-ia32-* shim-x64-*
-
Accepted Answer
Nick,
tried to update my 7.7 VM but it is still failing.
================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================
Updating:
app-base noarch 1:2.8.10-1.v7 clearos-updates-testing 31 k
Updating for dependencies:
app-base-core noarch 1:2.8.10-1.v7 clearos-updates-testing 455 k
Transaction Summary
================================================================================================================================================================
Upgrade 1 Package (+1 Dependent package)
Total size: 487 k
Is this ok [y/d/N]: y
Downloading packages:
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 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 281, in main
return_code = base.doTransaction()
File "/usr/share/yum-cli/cli.py", line 683, in doTransaction
problems = self.downloadPkgs(downloadpkgs, callback_total=self.download_callback_total_cb)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2633, in downloadPkgs
self.plugins.run('postdownload', pkglist=pkglist, errors=errors)
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/clearcenter-marketplace.py", line 291, in postdownload_hook
if pkg.repo in wc_repos:
NameError: global name 'wc_repos' is not defined
Version is correct (1:2.8.10-1.v7) -
Accepted Answer
Dave did not think this would fix the python issue. He is expecting that it will go away when the paid versions get updated to 7.7. The fix to app-base just allowed existing systems to upgrade correctly. I do not know what to expect from a fresh new 7.6 install, but I'd expect that to still be broken. -
Accepted Answer
-
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »