I'm getting errors uploading plugins to Jenkins and then restarting. This is pretty reliable but doesn't happen on every restart, I have seen it happen about 5 times in the last week, restarting about 20 times a day.
I was able to kill -3 and get a thread-dump (full text below) – the relevant part seems to be a deadlock described here:
Our work around is to stop the service sudo service jenkins stop - the process will still be running so we kill -9 it, and then start jenkins again.
Full thread dump – cannot include inline because it exceeds text limits:
|Field||Original Value||New Value|
|Component/s||jobconfighistory-plugin [ 15683 ]|
|Priority||Minor [ 4 ]||Major [ 3 ]|
|Assignee||Stefan Brausch [ stefanbrausch ]|
|Released As||Jenkins 2.163|
|Resolution||Fixed [ 1 ]|
|Status||Open [ 1 ]||Fixed but Unreleased [ 10203 ]|