Forums

Resolved
0 votes
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.
Friday, October 11 2019, 08:43 AM
Share this post:
Responses (8)
  • Accepted Answer

    Friday, October 11 2019, 03:08 PM - #Permalink
    Resolved
    0 votes
    I was going to say that in a few days it may all be fixed when 7.7 gets released, but you've pre-empted it.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 01:37 PM - #Permalink
    Resolved
    0 votes
    lol you wont believe it - simple yum upgrade and we're good to go again :/

    overthinking - where all crap usually starts lol

    Thanx for your time and advice always much appreciated
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 12:23 PM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 12:11 PM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 11:43 AM - #Permalink
    Resolved
    0 votes
    From that thread, you could try a:
    rm -rf /var/cache/yum
    Which is a more brutal way of clearing the cache.

    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.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 11:00 AM - #Permalink
    Resolved
    0 votes
    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
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 10:54 AM - #Permalink
    Resolved
    0 votes
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 11 2019, 09:53 AM - #Permalink
    Resolved
    0 votes
    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:
    yum clean all --enablerepo=*
    yum update
    and give the result of the "yum update".
    The reply is currently minimized Show
Your Reply