java.lang.IllegalStateException: Metadata regeneration can only be run on repositories that have an enabled 'Yum: Generate Metadata' capability

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .

,

checkState() is Static convenience methods that help a method or constructor check whether it was invoked correctly (whether its preconditions have been met). This occurs when the precondition does not met.

Solutions on the web

via Sonatype JIRA by WP Service Account, 1 year ago
Metadata regeneration can only be run on repositories that have an enabled 'Yum: Generate Metadata' capability
via sonatype.org by Unknown author, 2 years ago
Metadata regeneration can only be run on repositories that have an enabled 'Yum: Generate Metadata' capability
via Google Groups by sele...@googlecode.com, 2 years ago
via GitHub by s905060
, 10 months ago
Partition 99 could not be fully assigned!
via GitHub by noorbakerally
, 6 months ago
Transient resource should be new
java.lang.IllegalStateException: Metadata regeneration can only be run on repositories that have an enabled 'Yum: Generate Metadata' capability
at org.sonatype.nexus.yum.internal.task.GenerateMetadataTask.doRun(GenerateMetadataTask.java:135)
at org.sonatype.nexus.yum.internal.task.GenerateMetadataTask.doRun(GenerateMetadataTask.java:69)
at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Users with the same issue

Once, 2 months ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
88 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.