Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-28458

logged ERROR LastShutdownTimeServiceImpl 'Failed to process file - Assuming no previous start time' on startup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.31.1, 3.34.0
    • Fix Version/s: 3.34.0
    • Component/s: Logging
    • Labels:
    • Environment:
      MacOS
    • Story Points:
      2
    • Sprint:
      NXRM Groot Sprint 14

      Description

      I noticed the below WARN on boot. This happened on a clean OSS and PRO on both boot and reboot. The log is present and seems to be capturing stuff, so so far just seems a WARN with no adverse side affects. Next day log seems to rollover fine.

      2021-07-26 17:31:00,819-0400 WARN  [FelixStartLevel] *SYSTEM org.sonatype.nexus.internal.log.LastShutdownTimeServiceImpl - Failed to process file /Users/jtom/Documents/Work/nexus/NX3/nexus-internal/target/sonatype-work/nexus3/log/nexus.log.  Assuming no previous start time
      java.lang.NullPointerException: null
      	at org.apache.commons.io.input.ReversedLinesFileReader$FilePart.access$700(ReversedLinesFileReader.java:46)
      	at org.apache.commons.io.input.ReversedLinesFileReader.readLine(ReversedLinesFileReader.java:400)
      	at org.sonatype.nexus.internal.log.LastShutdownTimeServiceImpl.findTimeFromPreviousInstance(LastShutdownTimeServiceImpl.java:136)
      	at org.sonatype.nexus.internal.log.LastShutdownTimeServiceImpl.findShutdownTimeInLog(LastShutdownTimeServiceImpl.java:108)
      	at org.sonatype.nexus.internal.log.LastShutdownTimeServiceImpl.findBestEstimate(LastShutdownTimeServiceImpl.java:90)
      	at org.sonatype.nexus.internal.log.LastShutdownTimeServiceImpl.estimateLastShutdownTime(LastShutdownTimeServiceImpl.java:75)
      	at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.reattachListeners(QuartzSchedulerSPI.java:196)
      	at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI.doStart(QuartzSchedulerSPI.java:192)
      	at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:69)
      	at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI$$EnhancerByGuice$$349686178.GUICE$TRAMPOLINE(<generated>)
      	at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:74)
      	at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      	at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:193)
      	at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:57)
      	at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:75)
      	at com.google.inject.internal.InterceptorStackCallback.invoke(InterceptorStackCallback.java:55)
      	at org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI$$EnhancerByGuice$$349686178.start(<generated>)
      	at org.sonatype.nexus.extender.NexusLifecycleManager.startComponent(NexusLifecycleManager.java:199)
      	at org.sonatype.nexus.extender.NexusLifecycleManager.to(NexusLifecycleManager.java:111)
      	at org.sonatype.nexus.extender.NexusContextListener.moveToPhase(NexusContextListener.java:319)
      	at org.sonatype.nexus.extender.NexusContextListener.frameworkEvent(NexusContextListener.java:216)
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1597)
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bradbeck Brad Beck
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Joe Tom Joe Tom
              Team:
              NXRM - Groot
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title