# Error during task instantiation

**URL:** <https://community.sonatype.com/t/error-during-task-instantiation/4485>\
**Category:** Sonatype Nexus Repository\
**Created:** [June 23, 2020, 8:57am UTC](https://community.sonatype.com/t/error-during-task-instantiation/4485 "2020-06-23T08:57:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertauer](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/robertauer/32/1277_2.png) [@robertauer](https://community.sonatype.com/u/robertauer)\
**Post date:** [June 23, 2020, 8:57am UTC](https://community.sonatype.com/t/error-during-task-instantiation/4485/1 "2020-06-23T08:57:56Z")

</div>

Hello,  
i have a problem with my NXRM Instance (Version 3.19.1).  
It produces the following warning (with different taskIDs) every second:

```auto
WARN [quartz-3-thread-19] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task nexus.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx instantiation failure
java.lang.IllegalStateException: null
at com.google.common.base.Preconditions.checkState(Preconditions.java:488)
at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:122)
at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:106)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.sonatype.nexus.quartz.internal.QuartzThreadPool.lambda$0(QuartzThreadPool.java:143)
at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40)
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

```

I think as a consequence of this issue there are two other error messages:

1. Regularly this message:

```auto
WARN [status-delayed-tasks-1-thread-1] *SYSTEM org.sonatype.nexus.quartz.internal.QuartzSchedulerSPI - Updating lastRunState to interrupted for jobKey nexus.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx taskConfig: {.updated=2020-05-31T21:38:21.156+02:00, .name=Storage facet cleanup, .recoverable=false, lastRunState.runStarted=1592545008843, .message=Reclaim storage for deleted repositories, .id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, lastRunState.runDuration=0, .typeName=Storage facet cleanup, .visible=false, .typeId=repository.storage-facet-cleanup, .created=2020-05-31T21:38:21.156+02:00, lastRunState.endState=INTERRUPTED}

```

1. The health check shows “healthy”, with the exception of the scheduler:

```auto
"Scheduler" : {
    "healthy" : false,
    "message" : "1 tasks require frequency updates: Repair - Rebuild repository search",
    "duration" : 1820,
    "timestamp" : "2020-06-19T15:00:54.568+02:00"
  }

```

Furthermore i can see an unusual high cpu usage.

Any ideas what the problem may be and what i can do about this?

Thanks for any info and best regards
