Bug 22289

Summary: Error messages at update of dmraid
Product: Mageia Reporter: Hans Micheelsen <micheelsen>
Component: RPM PackagesAssignee: Neal Gompa <ngompa13>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fri, marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: dmraid-1.0.0-0.rc16.23.mga7.src.rpm CVE:
Status comment:
Attachments: /usr/lib/tmpfiles.d/dmraid.conf

Description Hans Micheelsen 2017-12-30 21:19:52 CET
Description of problem:
When I updated dmraid I got the following error messages:
     6/48: dmraid                ########################################################################
[dmraid.conf:5] Unknown command type '.'.
[dmraid.conf:7] Unknown command type '['.
[dmraid.conf:9] Unknown modifiers in command 'if'
[dmraid.conf:10] Unknown modifiers in command 'modprobe'
[dmraid.conf:11] Unknown modifiers in command 'dmraidsets=$(LC_ALL=C'
[dmraid.conf:12] Unknown modifiers in command 'if'
[dmraid.conf:13] Syntax error.
[dmraid.conf:14] Unknown modifiers in command 'IFS=$(echo'
[dmraid.conf:15] Unknown modifiers in command 'for'
[dmraid.conf:16] Unknown modifiers in command 'if'
[dmraid.conf:17] Unknown command type '!'.
[dmraid.conf:18] Syntax error.
[dmraid.conf:19] Syntax error.
[dmraid.conf:20] Unknown modifiers in command '/sbin/dmraid'
[dmraid.conf:21] Unknown modifiers in command '/sbin/kpartx'
[dmraid.conf:22] Syntax error.
[dmraid.conf:23] Syntax error.
[dmraid.conf:24] Syntax error.
[dmraid.conf:25] Syntax error.
/var/tmp/rpm-tmp.DdN7GD: linje 3: fg: ingen jobkontrol
advarsel: %post(dmraid-1.0.0-0.rc16.23.mga7.x86_64) scriptlet failed, exit status 1
ERROR: 'script' failed for dmraid-1.0.0-0.rc16.23.mga7.x86_64


Version-Release number of selected component (if applicable):
dmraid-1.0.0-0.rc16.23.mga7

How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Hans Micheelsen 2017-12-30 21:24:05 CET
Created attachment 9867 [details]
/usr/lib/tmpfiles.d/dmraid.conf
Comment 2 Marja Van Waes 2017-12-31 08:25:30 CET
Confirming the issue.

It might be fixed in dmraid-1.0.0-0.rc16.25.mga7

Please test.

CC: (none) => marja11
Assignee: bugsquad => ngompa13

Comment 3 Marja Van Waes 2017-12-31 10:38:17 CET
(In reply to Marja van Waes from comment #2)
> Confirming the issue.
> 
> It might be fixed in dmraid-1.0.0-0.rc16.25.mga7
> 
> Please test.

When updating:

Running scriptlet: dmraid-1.0.0-0.rc16.23.mga7.x86_64                   37/65 
/var/tmp/rpm-tmp.MeRf2b: line 1: fg: no job control
error: %preun(dmraid-1.0.0-0.rc16.23.mga7.x86_64) scriptlet failed, exit status 1

error: dmraid-1.0.0-0.rc16.23.mga7.x86_64: erase failed


5Error in PREUN scriptlet in rpm package dmraid
Error in PREUN scriptlet in rpm package dmraid
dmraid-1.0.0-0.rc16.23.mga7.x86_64 was supposed to be removed but is not!

Failed:
  dmraid.x86_64 1.0.0-0.rc16.25.mga7                                            

Error: Transaction failed

Indeed both are installed:

[root@localhost marja]# rpm -qa dmraid
dmraid-1.0.0-0.rc16.25.mga7
dmraid-1.0.0-0.rc16.23.mga7
[root@localhost marja]# 

Neal, I suppose this could not be avoided?
Comment 4 Marja Van Waes 2017-12-31 22:01:39 CET
(In reply to Marja van Waes from comment #3)

> 
> Indeed both are installed:
> 
> [root@localhost marja]# rpm -qa dmraid
> dmraid-1.0.0-0.rc16.25.mga7
> dmraid-1.0.0-0.rc16.23.mga7
> [root@localhost marja]# 
> 
> Neal, I suppose this could not be avoided?

On IRC, Neal told me that this has to be manually cleaned, by using  
"rpm -e --noscripts dmraid" and then reinstalling dmraid.

I ended up doing:

  rpm -e --noscripts dmraid-1.0.0-0.rc16.23.mga7.x86_64

and then chose to reinstall all my *dmraid*25.mga7 packages with 

  dnf reinstall dmraid dmraid-events lib64dmraid1

(Instead of "dnf reinstall", "urpmi --replacepkgs" could have been used) 

which reinstalled version dmraid-1.0.0-0.rc16.25.mga7.x86_64 without any errors.
Comment 5 Hans Micheelsen 2020-09-18 23:14:45 CEST
Can this one be closed? We are now at dmraid-1.0.0-0.rc16.31 and I haven't seen any errors from dmraid for years now.
Comment 6 Hans Micheelsen 2020-12-16 19:40:14 CET
Can this please be closed?
Comment 7 Morgan Leijström 2020-12-17 17:07:01 CET
Thank you for reporting back

By comment 5, closing

CC: (none) => fri
Status: NEW => RESOLVED
Resolution: (none) => FIXED