Failed to extract the bundled plugin

Article ID:218763137
1 minute readKnowledge base

Issue

I am seeing the following error in my logs when attempting to run a job or on startup:

SEVERE  hudson.LocalPluginManager#loadBundledPlugins: Failed to extract the bundled plugin scm-api.hpi
java.io.IOException: File '/nobackup/jenkins/plugins/scm-api.jpi' cannot be written to
    at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:357)
    at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:326)

Resolution

This issue typically happens when an hpi or jpi plugin file is copied into the $JENKINS_HOME/plugins directory with incorrect permissions. To resolve this, modify the file ownership permissions of the file(s) to match the username under which Jenkins is running.