Dependency problem on update - oniguruma5

NethServer Version: 7.8
Module: php-scl, I think

The last round of updates is causing another dependency problem:

Total                                                                                                11 MB/s | 104 MB  00:00:09     
Running transaction check
Running transaction test


Transaction check error:
  file /usr/lib64/libonig.so.5.0.0 from install of oniguruma-6.8.2-1.el7.x86_64 conflicts with file from package oniguruma5-6.9.4-1.el7.remi.x86_64

When I try removing the conflicting package, it appears it’s required by php-scl and the mbstring extensions:

[root@neth ~]# yum remove oniguruma5
Loaded plugins: changelog, fastestmirror, nethserver_events, priorities
Resolving Dependencies
--> Running transaction check
---> Package oniguruma5.x86_64 0:6.9.4-1.el7.remi will be erased
--> Processing Dependency: libonig.so.5()(64bit) for package: php73-php-mbstring-7.3.12-1.el7.remi.x86_64
--> Processing Dependency: libonig.so.5()(64bit) for package: php74-php-mbstring-7.4.0-1.el7.remi.x86_64
--> Processing Dependency: libonig.so.5()(64bit) for package: php72-php-mbstring-7.2.25-1.el7.remi.x86_64
--> Running transaction check
---> Package php72-php-mbstring.x86_64 0:7.2.25-1.el7.remi will be erased
--> Processing Dependency: php72-php-mbstring for package: nethserver-php-scl-1.3.0-1.ns7.sdl.x86_64
---> Package php73-php-mbstring.x86_64 0:7.3.12-1.el7.remi will be erased
---> Package php74-php-mbstring.x86_64 0:7.4.0-1.el7.remi will be erased
--> Running transaction check
---> Package nethserver-php-scl.x86_64 0:1.3.0-1.ns7.sdl will be erased
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
 Package                             Arch                    Version                              Repository                   Size
====================================================================================================================================
Removing:
 oniguruma5                          x86_64                  6.9.4-1.el7.remi                     @remi-safe                  729 k
Removing for dependencies:
 nethserver-php-scl                  x86_64                  1.3.0-1.ns7.sdl                      @stephdl                    331 k
 php72-php-mbstring                  x86_64                  7.2.25-1.el7.remi                    @remi-safe                  1.0 M
 php73-php-mbstring                  x86_64                  7.3.12-1.el7.remi                    @remi-safe                  1.0 M
 php74-php-mbstring                  x86_64                  7.4.0-1.el7.remi                     @remi-safe                  1.0 M

Transaction Summary
====================================================================================================================================
Remove  1 Package (+4 Dependent packages)

I could no doubt skip this particular package with --skip-broken, (no I can’t) but it seems there should be a better way ahead with this.

Related:

@stephdl? Any input? Removing oniguruma5 would result in the removal of your php-scl module, as well as the mbstring extension for PHP 7.2, 7.3, and 7.4. Removing oniguruma would result in the removal of jq, Cockpit, Dante, and the subscription and subscription-UI modules.

1 Like
  Installing : oniguruma5php-6.9.5+rev1-2.el7.remi.x86_64                                                                      7/250 
  Updating   : oniguruma-6.8.2-1.el7.x86_64                                                                                   30/250 

could you check again, it seems that I can update my server, anyway remi is your man in cases of error

Sorry for the time to answer, this wk was dedicated to MTB

I think it’s the subscription again (which honestly seems to cause more problems than it solves)–it disables remi-safe, so uniguruma5php wasn’t getting installed at all. Enabling that repo lets the upgrade proceed without problems (and also upgrades a lot of PHP stuff).

hum, maybe I can solve something here, let me check

I cannot reproduce sorry, could you test yourself please

  • check /etc/yum.repos.d/remi-safe.repo the repo is enabled by default
  • modify enabled=1 to enabled=0
  • trigger the event signal-event software-repos-save
  • the repository is enabled back

I am not really aware about subscription, but I am sure of two things :

It use the same way to enable/disable repositories, else I would be pleased to learn more and fix my module
It is important to get this program up :stuck_out_tongue: and to be confident on it

It’s disabled on my system. If I set enabled=1 and then signal-event software-repos-save, it reverts to enabled=0.

could you post the /var/log/messages of the event software-repos-save
the version of nethserver-php-scl, it must be : nethserver-php-scl-1.3.0-1.ns7.sdl.x86_64

Jun 29 15:12:44 neth esmith::event[24730]: Event: software-repos-save
Jun 29 15:12:44 neth esmith::event[24730]: expanding /etc/nethserver/pkginfo.conf
Jun 29 15:12:44 neth esmith::event[24730]: expanding /etc/nethserver/eorepo.conf
Jun 29 15:12:44 neth esmith::event[24730]: expanding /etc/yum/yum-cron.conf
Jun 29 15:12:44 neth esmith::event[24730]: expanding /etc/yum/vars/nsrelease
Jun 29 15:12:44 neth esmith::event[24730]: expanding /etc/yum.repos.d/subscription.repo
Jun 29 15:12:44 neth esmith::event[24730]: expanding /etc/yum.repos.d/NethServer.repo
Jun 29 15:12:44 neth esmith::event[24730]: Action: /etc/e-smith/events/actions/generic_template_expand SUCCESS [0.346687]
Jun 29 15:12:44 neth esmith::event[24730]: [NOTICE] eorepo sb-base sb-updates sb-epel sb-extras sb-centos-sclo-rh sb-centos-sclo-sclo sb-nethserver-base sb-nethserver-updates
Jun 29 15:12:45 neth eorepo[24734]: Repository remi-safe (Safe Remi's RPM repository for Enterprise Linux 7 - x86_64) has been disabled.
Jun 29 15:12:45 neth esmith::event[24730]: Repository remi-safe (Safe Remi's RPM repository for Enterprise Linux 7 - x86_64) has been disabled.
Jun 29 15:12:45 neth esmith::event[24730]: Loaded plugins: changelog, fastestmirror, nethserver_events, priorities
Jun 29 15:12:46 neth esmith::event[24730]: Cleaning repos: sb-base sb-centos-sclo-rh sb-centos-sclo-sclo sb-epel sb-extras
Jun 29 15:12:46 neth esmith::event[24730]:              : sb-nethserver-base sb-nethserver-updates sb-updates
Jun 29 15:12:46 neth esmith::event[24730]: Cleaning up list of fastest mirrors
Jun 29 15:12:46 neth esmith::event[24730]: Other repos take up 13 M of disk space (use --verbose for details)
Jun 29 15:12:46 neth esmith::event[24730]: Action: /etc/e-smith/events/software-repos-save/S20nethserver-base-software-repos SUCCESS [1.227051]
Jun 29 15:12:46 neth esmith::event[24730]: Action: /etc/e-smith/events/software-repos-save/S21nethserver-base-import-repokeys SUCCESS [0.014138]
Jun 29 15:12:46 neth esmith::event[24730]: Event: software-repos-save SUCCESS
[root@neth ~]# rpm -q nethserver-php-scl
nethserver-php-scl-1.3.0-1.ns7.sdl.x86_64

my repository also is disabled ?

Yes, unless I enable it for a specific command (--enablerepo=stephdl).

what is the content of /etc/nethserver/eorepo.conf

# ================= DO NOT MODIFY THIS FILE =================
# 
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
# 
#
# This file is read by software-repos-save event
#
# Listed repositories will be enabled, everything else will be disabled
#
# Blank lines and lines beginning with "#" are ignored
#



sb-base
sb-updates
sb-epel
sb-extras
sb-centos-sclo-rh
sb-centos-sclo-sclo
sb-nethserver-base
sb-nethserver-updates
1 Like

what isthe output of ll /etc/e-smith/templates/etc/nethserver/eorepo.conf/

[root@neth nethserver]# ll /etc/e-smith/templates/etc/nethserver/eorepo.conf/
total 24
-rw-r--r-- 1 root root 427 Jun  4 04:29 00default
-rw-r--r-- 1 root root  62 Mar 28 16:20 10danb35
-rw-r--r-- 1 root root  68 Dec 12  2019 10remi-safe
-rw-r--r-- 1 root root  64 Jun 13 05:31 10stephdl
-rw-r--r-- 1 root root 438 May  6 11:08 20subscription
-rw-r--r-- 1 root root  36 Jun  4 04:29 50output
[root@neth nethserver]# cat /etc/e-smith/templates/etc/nethserver/eorepo.conf/10remi-safe 
{
# enable the remi-safe repo

push @repos, 'remi-safe';

    '';
}
[root@neth nethserver]# cat /etc/e-smith/templates/etc/nethserver/eorepo.conf/10stephdl 
{
# enable the stephdl repo

push @repos, 'stephdl';

    '';
}

ok the culprit is /etc/e-smith/templates/etc/nethserver/eorepo.conf/20subscription

1 Like

try

[root@ns7loc3 ~]# mv  /etc/e-smith/templates/etc/nethserver/eorepo.conf/10stephdl /etc/e-smith/templates/etc/nethserver/eorepo.conf/41stephdl
[root@ns7loc3 ~]# mv  /etc/e-smith/templates/etc/nethserver/eorepo.conf/10remi-safe /etc/e-smith/templates/etc/nethserver/eorepo.conf/41remi-safe

signal-event software-repos-save

1 Like

This does it, though now the 41stephdl and 41remi-safe fragments are going to be orphans.

Yes I need to talk with the @giacomo and @davidep what we could do

Either I move all fragments to >40 number like we did, or we change the condition early to test if the subscription exists

For those who have a repository, probably you hit the same bug than me :slight_smile:

Cc @mrmarkuz

1 Like