I looked at https://unix.stackexchange.com/search?q=jenkins & Jenkins support https://issues.jenkins.io
I didn't find out there how to solve that.
initial state
Nodes & main server had disk space issues, and no pipeline were triggered anymore.
After space issue has been solved nodes are still offline ignoring the new status.
how can I refresh those nodes to online state?
Architecture :
- host connections uses java / git & ssh depending on with step/pipeline is running
- pipelines usually uses git to get last groovy & script files ; & also run the jenkins groovy file on nodes
- steps are calling ssh on either bash or powershell access when needed to access nodes & run scripts.
Done :
cleaned /var/lib on main jenkins server
find . -name "xxxx" -atime +365 -exec rm {} \;
cleaned application drives on each nodes
$limit = (Get-Date).AddDays(-30)
$path = "xxxxxxx"
Get-ChildItem -Path $path -Recurse -Force -filter XXXXX | Where-Object { !$_.PSIsContainer -and $_.CreationTime -lt $limit } | Remove-Item -Force
restarted jenkins service on main jenkins server
sudo systemctl restart jenkins
Current Status :
- Those nodes remains offline (and still display as error the same space amount warning, this is like it doesn't read/detect the new available space)
Disk space is too low. Only 0.000GB left on F:\jenkins2.
Agent is connected.
on machines for example :
DriveType : 3
ProviderName :
FreeSpace : 255938342912
Size : 449998483456
VolumeName : Disk2
so jenkins ignore issue about disk space is solved & keeps nods offline how to make them online again ?