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.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.