Bug 28397 - some php-pear modules post script failed at upgrade 7->8
Summary: some php-pear modules post script failed at upgrade 7->8
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: High normal
Target Milestone: ---
Assignee: Marc Krämer
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 28393
  Show dependency treegraph
 
Reported: 2021-02-20 21:54 CET by papoteur
Modified: 2021-02-23 02:00 CET (History)
3 users (show)

See Also:
Source RPM: php-pear-Text_Template-1.2.0-6.mga8.noarch
CVE:
Status comment:


Attachments

Description papoteur 2021-02-20 21:54:09 CET
%post(php-pear-Text_Template-1.2.0-6.mga8.noarch) scriptlet failed, exit status 1
php-pear-Text_Template-1.2.0-6.mga8.noarch
%post(php-pear-File_Iterator-1.3.4-7.mga8.noarch) scriptlet failed, exit status 1
%post(php-pear-PHP_Timer-1.0.5-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHP_Timer-1.0.5-7.mga8.noarch
%post(php-pear-PHP_Invoker-1.1.3-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHP_Invoker-1.1.3-7.mga8.noarch
%post(php-pear-PHP_TokenStream-1.2.2-6.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHP_TokenStream-1.2.2-6.mga8.noarch
%post(php-pear-PHPUnit_Story-1.0.2-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHPUnit_Story-1.0.2-7.mga8.noarch
--
%post(php-pear-channel-horde-1.0-22.mga8.noarch) scriptlet failed, exit status 1
php-pear-channel-horde-1.0-22.mga8.noarch
%post(php-pear-PHPUnit_MockObject-1.2.3-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHPUnit_MockObject-1.2.3-7.mga8.noarch
%post(php-pear-DbUnit-1.3.1-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-DbUnit-1.3.1-7.mga8.noarch
%post(php-pear-PHPUnit_Selenium-1.3.3-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHPUnit_Selenium-1.3.3-7.mga8.noarch
%post(php-pear-PHP_CodeCoverage-1.2.17-7.mga8.noarch) scriptlet failed, exit status 1
php-pear-PHP_CodeCoverage-1.2.17-7.mga8.noarch
%post(php-pear-PHPUnit-3.7.34-5.mga8.noarch) scriptlet failed, exit status 1
Manuel Hiebel 2021-02-21 11:41:33 CET

Assignee: bugsquad => pkg-bugs

Manuel Hiebel 2021-02-21 11:42:15 CET

Assignee: pkg-bugs => mageia
CC: (none) => pkg-bugs

Comment 1 Dave Hodgins 2021-02-21 16:06:11 CET
Increasing priority for upgrade problems to release blocker

CC: (none) => davidwhodgins
Priority: Normal => release_blocker

Comment 2 Morgan Leijström 2021-02-21 17:13:08 CET
Ping me for errata if it get no fix

CC: (none) => fri

Comment 3 Thomas Backlund 2021-02-21 22:20:52 CET
technically it's not an release_blocker, it's an upgrade_blocker :)

we always delay the update api for some time so we have time to fix stuff like this found by early upgraders
Dave Hodgins 2021-02-22 01:21:22 CET

Blocks: (none) => 28393

Comment 4 Marc Krämer 2021-02-22 09:53:43 CET
looks like a dependancy issue.
I assume we don't have output of post scripts?
My guess is, php is not fully installed, e.g. some modules have not been upgraded, so pear fails. But without output this is only guessing.
To be honest, it does not do any harm, if the scriplets fail, everything will work. Still I'll have a look at it.
Marc Krämer 2021-02-22 09:54:01 CET

Priority: release_blocker => High

Comment 5 Morgan Leijström 2021-02-22 10:23:12 CET
(In reply to Thomas Backlund from comment #3)
> technically it's not an release_blocker, it's an upgrade_blocker :)
> 
> we always delay the update api for some time so we have time to fix stuff
> like this found by early upgraders

We also describe in release notes how to proceed if update applet do not offer it, and we also describe processes to upgrade without it.

So a user that reads Mageia 8 is released and wants to upgrade immediately, will.
Comment 6 Marc Krämer 2021-02-22 21:15:45 CET
I'm not sure if I can reproduce this.
I can only guess that the problem lies here:
php-pear-* does only require php-pear without any specific version (which is "quite fine"). During update it might happen php is not fully updated and complains at startup about an old module still present. But this is only a guess. The "scriptlet" is just some registration stuff:
pear install --register-only

In case of upgrade, the package is already registered, so no harm is done.
Comment 7 Morgan Leijström 2021-02-22 21:24:12 CET
Is this visible to the user?
(without looking in logs)

I think that if it is, we should note it in Errata, else not.
Comment 8 papoteur 2021-02-22 22:09:53 CET
Hi,
Thus, I presume that the problem was that the update was in three steps and that the second one was without online repositories. 
I'm OK to close this report for php-pear-*. However, I find that the installer is not clear of why the cycle was started again and that the repositories shouldn't change at this step.
Comment 9 Dave Hodgins 2021-02-23 02:00:14 CET
I just completed an upgrade test with the packages mediawiki, roundcubemail,
and task-lamp installed prior to starting the upgrade
(using mgaapplet --testing).

After the upgrade, the following php-pear packages are installed ...
# rpm -qa|grep php-pear|sort
php-pear-1.10.12-5.mga8
php-pear-Auth_SASL-1.1.0-2.mga8
php-pear-channel-horde-1.0-22.mga8
php-pear-channel-symfony2-1.0-8.mga8
php-pear-Console_Color2-0.1.2-8.mga8
php-pear-Console_CommandLine-1.2.2-3.mga8
php-pear-Console_Getargs-1.4.0-3.mga8
php-pear-Console_Table-1.3.1-3.mga8
php-pear-Crypt_GPG-1.6.4-1.mga8
php-pear-DbUnit-1.3.1-7.mga8
php-pear-Event_Dispatcher-1.1.0-11.mga8
php-pear-File_Find-1.3.3-6.mga8
php-pear-File_Iterator-1.3.4-7.mga8
php-pear-HTML_Common-1.2.5-10.mga8
php-pear-HTML_CSS-1.5.4-13.mga8
php-pear-HTML_Table-1.8.4-3.mga8
php-pear-HTTP_Request2-2.4.2-1.mga8
php-pear-Mail_Mime-1.10.9-1.mga8
php-pear-Net_IDNA2-0.2.0-3.mga8
php-pear-Net_LDAP2-2.2.0-2.mga8
php-pear-Net_Sieve-1.4.4-2.mga8
php-pear-Net_SMTP-1.9.0-2.mga8
php-pear-Net_Socket-1.2.2-3.mga8
php-pear-Net_URL2-2.2.1-3.mga8
php-pear-PEAR_PackageFileManager-1.7.2-3.mga8
php-pear-PEAR_PackageFileManager2-1.0.4-7.mga8
php-pear-PEAR_PackageFileManager_Plugins-1.0.4-3.mga8
php-pear-PHP_CodeCoverage-1.2.17-7.mga8
php-pear-PHP_CompatInfo-1.9.0-14.mga8
php-pear-PHP_Invoker-1.1.3-7.mga8
php-pear-PHP_Timer-1.0.5-7.mga8
php-pear-PHP_TokenStream-1.2.2-6.mga8
php-pear-PHPUnit-3.7.34-5.mga8
php-pear-PHPUnit_MockObject-1.2.3-7.mga8
php-pear-PHPUnit_Selenium-1.3.3-7.mga8
php-pear-PHPUnit_Story-1.0.2-7.mga8
php-pear-Services_W3C_CSSValidator-0.2.3-8.mga8
php-pear-Symfony2_Yaml-2.4.4-6.mga8
php-pear-Text_Diff-1.2.2-3.mga8
php-pear-Text_Template-1.2.0-6.mga8
php-pear-XML_Parser-1.3.7-3.mga8
php-pear-XML_Serializer-0.21.0-3.mga8

The upgrade completed without any scriptlet errors, so closing as worksforme.

I escalated the priority as I misremembered the impact of scriptlet errors.
I was thinking it would cause the transaction it was part of to fail,
possibly leading to a cascade error.

Resolution: (none) => WORKSFORME
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.