Wednesday, 26 April 2017







Pending - Waiting for next available executor/Disk space too low on / - Jenkins



Pending - Waiting for next available executor/Disk space too low on / - Jenkins

While we were trying to execute the job, it was displaying "Pending - Waiting for next available executor". When looking into the Jenkins node from the console, the Master node is offline and the error message displayed was "Disk space too low. Only xxxGB on /" but the / folder has space around 1GB.
























The following steps are followed to resolve the issue.
STEP 1
Increase the space available in /tmp folder. If not able to increase the space in /tmp folder then TemporarySpaceMonitor can be disabled or the memory threshold value of the TemporarySpaceMonitor can be reduced in $JENKINS_HOME/nodeMonitors.xml(make sure atleast minimum memory is available)







<?xml version='1.0' encoding='UTF-8'?>
<hudson.util.DescribableList>
<hudson.node__monitors.ArchitectureMonitor>
<ignored>false</ignored>
</hudson.node__monitors.ArchitectureMonitor>
<hudson.node__monitors.ClockMonitor>
<ignored>false</ignored>
</hudson.node__monitors.ClockMonitor>
<hudson.node__monitors.DiskSpaceMonitor>
<ignored>false</ignored>
<freeSpaceThreshold>1GB</freeSpaceThreshold>
</hudson.node__monitors.DiskSpaceMonitor>
<hudson.node__monitors.SwapSpaceMonitor>
<ignored>false</ignored>
</hudson.node__monitors.SwapSpaceMonitor>
<hudson.node__monitors.TemporarySpaceMonitor>
<ignored>false</ignored>//Change to true to disable monitoring
<freeSpaceThreshold>100MB</freeSpaceThreshold>
</hudson.node__monitors.TemporarySpaceMonitor>

<hudson.node__monitors.ResponseTimeMonitor>
<ignored>false</ignored>

</hudson.node__monitors.ResponseTimeMonitor>
</hudson.util.DescribableList>










STEP 2
Increase the number of executor from default value 2


STEP 3
Remove the following content from $JENKINS_HOME/config.xml

<temporaryOfflineCause class="hudson.node_monitors.DiskSpaceMonitorDescriptor$DiskSpace">
<path>/tmp</path>
<size>966733824</size>
<triggered>true</triggered>
<trigger>hudson.node_monitors.TemporarySpaceMonitor</trigger>
</temporaryOfflineCause>


STEP 4
Restart the Jenkins server.