Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-117093

cockpit-ws upgrade fails: lsetfilecon: cockpit-issue.service;68d35225, system_u:object_r:cockpit_unit_file_t:s0) Invalid argument

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.8
    • cockpit
    • No
    • None
    • rhel-cockpit
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Also see this issue in cockpit-ws-347-1.el9.x86_64 

      What were you trying to do that didn't work?

      cockpit-ws upgrade to 347-1.el10 failed:

      # dnf upgrade cockpit-ws
      ...
      Upgrading:
       cockpit-ws                                           x86_64                                   347-1.el10                                   rhel-base                                   1.1 M
       cockpit-ws-selinux                                   x86_64                                   347-1.el10                                   rhel-base                                    45 k
      
      Transaction Summary
      ==============================================================================================================================================================================================
      Upgrade  2 Packages
      
      Total download size: 1.1 M
      Is this ok [y/N]: y
      Downloading Packages:
      (1/2): cockpit-ws-selinux-347-1.el10.x86_64.rpm                                                                                                               775 kB/s |  45 kB     00:00    
      (2/2): cockpit-ws-347-1.el10.x86_64.rpm                                                                                                                        12 MB/s | 1.1 MB     00:00    
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Total                                                                                                                                                          12 MB/s | 1.1 MB     00:00    
      Running transaction check
      Transaction check succeeded.
      Running transaction test
      Transaction test succeeded.
      Running transaction
        Preparing        :                                                                                                                                                                      1/1
        Running scriptlet: cockpit-ws-selinux-347-1.el10.x86_64                                                                                                                                 1/4
        Upgrading        : cockpit-ws-selinux-347-1.el10.x86_64                                                                                                                                 1/4
        Running scriptlet: cockpit-ws-selinux-347-1.el10.x86_64                                                                                                                                 1/4
      Problems processing filecon rules
      Failed post db handling
      Post process failed
      semodule:  Failed!
      
        Upgrading        : cockpit-ws-347-1.el10.x86_64                                                                                                                                         2/4
      error: lsetfilecon: (46 /usr/lib/systemd/system/cockpit-issue.service;68d35225, system_u:object_r:cockpit_unit_file_t:s0) Invalid argument
      error: Plugin selinux: hook fsm_file_prepare failed
      
      Error unpacking rpm package cockpit-ws-347-1.el10.x86_64
        Cleanup          : cockpit-ws-selinux-344-1.el10.x86_64                                                                                                                                 3/4
      error: unpacking of archive failed on file /usr/lib/systemd/system/cockpit-issue.service;68d35225: cpio: (error 0x2)
      error: cockpit-ws-347-1.el10.x86_64: install failed
      error: cockpit-ws-344-1.el10.x86_64: erase skipped 

      Please provide the package NVR for which the bug is seen:

      cockpit-ws-347-1.el10.x86_64
      cockpit-ws-347-1.el9.x86_64 

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. Prepare a RHEL-10 VM and upgrade cockpit-ws from cockpit-ws-344-1.el10.x86_64 to cockpit-ws-347-1.el10.x86_64

      Expected results

      cockpit-ws upgrade success.

      Actual results

      cockpit-ws upgrade fail.

              Unassigned Unassigned
              yuxisun@redhat.com Yuxin Sun
              Yuxin Sun
              Jan Scotka Jan Scotka
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: