Problems updates for Stephdl repository

NethServer Version: NethServer release 7.6.1810
Module:
I just got a mail for a update:

=== Yum reports available updates for Stephdl repository :

nethserver-php-scl.x86_64 1.2.5-1.ns7.sdl stephdl

To apply all these updates, you can log on your server and run the following command :

yum update --enablerepo=stephdl

when doing so, I get the following results:

yum update --enablerepo=stephdl
Geladene Plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile

  • ce-base: mirrors.prometeus.net
  • ce-extras: mirrors.prometeus.net
  • ce-sclo-rh: mirrors.prometeus.net
  • ce-sclo-sclo: mirrors.prometeus.net
  • ce-updates: mirrors.prometeus.net
  • epel: ftp.uni-stuttgart.de
  • nethforge: mrmarkuz.dynu.net
  • nethserver-base: mrmarkuz.dynu.net
  • nethserver-updates: mrmarkuz.dynu.net
    Abhängigkeiten werden aufgelöst
    → Transaktionsprüfung wird ausgeführt
    —> Paket nethserver-php-scl.x86_64 0:1.2.4-1.ns7.sdl markiert, um aktualisiert zu werden
    —> Paket nethserver-php-scl.x86_64 0:1.2.5-1.ns7.sdl markiert, um eine Aktualisierung zu werden
    → Abhängigkeit php73-php-opcache wird für Paket nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64 verarbeitet
    → Abhängigkeit php72-php-opcache wird für Paket nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64 verarbeitet
    → Abhängigkeit php71-php-opcache wird für Paket nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64 verarbeitet
    → Abhängigkeitsauflösung beendet
    Fehler: Paket: nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64 (stephdl)
    Benötigt: php72-php-opcache
    Fehler: Paket: nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64 (stephdl)
    Benötigt: php71-php-opcache
    Fehler: Paket: nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64 (stephdl)
    Benötigt: php73-php-opcache
    Sie können versuchen, mit --skip-broken das Problem zu umgehen.
    Sie könnten Folgendes versuchen: rpm -Va --nofiles --nodigest

@stephdl can you please help?

Peter

Hi,

I did the update from Software Center without issues.

/var/log/yum.log

Jun 05 08:10:01 Installed: php72-php-opcache-7.2.19-2.el7.remi.x86_64
Jun 05 08:10:01 Installed: php73-php-opcache-7.3.6-1.el7.remi.x86_64
Jun 05 08:10:02 Installed: php71-php-opcache-7.1.30-1.el7.remi.x86_64
Jun 05 08:10:03 Updated: nethserver-php-scl-1.2.5-1.ns7.sdl.x86_64

In some case now, nethserver disables repositories, even first enabled. We want it to avoid minor centos updates

Cc @dev_team

You can update it by

yum update - - enablerepo=stephdl,remi-safe,epel

There’s a template of /etc/nethserver/eorepo.conf where additional (or exclusive) repositories can be registered!

The event software-repos-save applies the changes when the repository configuration has been modified

1 Like

thank you this helped. made 322 updates…

do I need to trigger the event on my rpm update or I could have others ways

Just expand eorepo.conf template…

yep but this not change my repo definition, only the event does it

I assume your package installs an enabled YUM repo configuration.

But if you need to set enabled=1 in your .repo file, raise the event.

1 Like

yes probably I need to trigger an action to launch the event by my nethserver-*-update

cc @danb35 @mrmarkuz (you should modify also your rpm to install your repo)

I commited to enable the repositories of

stephdl
remi-safe
urbackup
ocsinventory

1 Like

Hi stephdl,

I had the same problem.

Clam Antivirus Scan Results - Tue Jun 11 01:57:02 2019
I doubt that these files had a Win virus.
Maybe same problem as a few days ago with ClamAV?

Tue Jun 11 01:57:02 2019
Scanned Folder: //tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php- 
fpm.service-W1KPt8/tmp/phpO8Docq: Win.Trojan.Hide-2 FOUND
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpO8Docq: moved to '/var/spool/clamav/quarantine/phpO8Docq'
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpe5QwPH: Win.Trojan.Hide-2 FOUND
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpe5QwPH: moved to '/var/spool/clamav/quarantine/phpe5QwPH'
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpvLPLvM: Win.Trojan.Hide-2 FOUND
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpvLPLvM: moved to '/var/spool/clamav/quarantine/phpvLPLvM'
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpbCuvNN: Win.Trojan.Hide-2 FOUND
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpbCuvNN: moved to '/var/spool/clamav/quarantine/phpbCuvNN'
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpTSLjl0: Win.Trojan.Hide-2 FOUND
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpTSLjl0: moved to '/var/spool/clamav/quarantine/phpTSLjl0'
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpv7HdG5: Win.Trojan.Hide-2 FOUND
 /tmp/systemd-private-36ed6590aaf54055aa869e6021480aa1-php72-php-fpm.service- 
W1KPt8/tmp/phpv7HdG5: moved to '/var/spool/clamav/quarantine/phpv7HdG5'

----------- SCAN SUMMARY -----------
Known viruses: 6148491
Engine version: 0.101.2
Scanned directories: 42370
Scanned files: 212622
Infected files: 6
Data scanned: 24973.77 MB
Data read: 19393.78 MB (ratio 1.29:1)
Time: 8544.626 sec (142 m 24 s)

Then: Yum: Failed to check for updates on FQDN

Failed to check for updates with the following error message: 
Failed to build transaction: nethserver-php-scl-1.2.6-1.ns7.sdl.x86_64 requiert php71-php-opcache
nethserver-php-scl-1.2.6-1.ns7.sdl.x86_64 requiert php72-php-opcache
nethserver-php-scl-1.2.6-1.ns7.sdl.x86_64 requiert php73-php-opcache

This command from an above reply resolved it

yum update --enablerepo=stephdl,remi-safe,epel

Questions:

  • There will be no more repos enabled by default?
  • From now on, will I have to enable all those repos?

As always, thanks again to stephdl,

Michel-André

yep I missed something, nethserver disable all repositories not listed in /etc/nethserver/eorepo.conf , I produced an update for this, but at least one time you must enable all repositories manually

Hi stephdl,

Fast reply!

Only those repos or some other ones?

Michel-André

I produced an update for

stephdl
remi-safe
urbackup
ocsinventory

so each rpm will provide the repo definition and trigger an action to enable each repo individually

after that you can check in /etc/yum.repos.d/***** if the repo are enabled, it must be enabled to 1

Hi again stephdl,

I checked the files and the repos that enabled are:

[centos-sclo-sclo]
[centos-sclo-rh]
[centos-sclo-rh-source]
[epel]
[nethforge]
[nethserver-base]
[nethserver-updates]
[ce-base]
[ce-updates]
[ce-extras]
[ce-sclo-sclo]
[ce-sclo-rh]
[remi-safe]
[stephdl]

I don’t have: urbackup & ocsinventory. I think that it is normal as I never used them.

So I guess that all is OK now.

Again, thank you stephdl,

Michel-André

1 Like