Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-51104

v2: oc-mirror complains about "Failed to write to log" during shutdown

    • None
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      This is a clone of issue OCPBUGS-50476. The following is the description of the original issue:

      Description of problem:

          The local registry is not being gracefully shutdown and in some cases the registry.log file was closed while logrus was still trying to write to it:
      
      2025/02/05 21:50:45  [INFO]   : mirror time     : 29.768175677s
      2025/02/05 21:50:45  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      Failed to write to log, write /oc-mirror-issue-ret/working-dir/logs/registry.log: file already closed
      Failed to write to log, write /oc-mirror-issue-ret/working-dir/logs/registry.log: file already closed
      Failed to write to log, write /oc-mirror-issue-ret/working-dir/logs/registry.log: file already closed
      Failed to write to log, write /oc-mirror-issue-ret/working-dir/logs/registry.log: file already closed
      Failed to write to log, write /oc-mirror-issue-ret/working-dir/logs/registry.log: file already closed
      

      Version-Release number of selected component (if applicable):

          4.18+

      How reproducible:

          Some times

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          No more "Failed to write to log" messages

      Additional info:

          

              rdossant Rafael Fonseca dos Santos
              openshift-crt-jira-prow OpenShift Prow Bot
              Ying Zhou Ying Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: