[JIRA] (JENKINS-56239) Gradle cache locked

0 views
Skip to first unread message

jed.jacobs@prudential.com (JIRA)

unread,
Feb 21, 2019, 4:19:03 PM2/21/19
to jenkinsc...@googlegroups.com
Jed Jacobs created an issue
 
Jenkins / Bug JENKINS-56239
Gradle cache locked
Issue Type: Bug Bug
Assignee: Stefan Wolf
Attachments: log
Components: gradle-plugin
Created: 2019-02-21 21:18
Environment: Jenkins 2.150.2
Gradle Plugin version 1.28
Gradle version 4.2.1 on Linux server
Priority: Major Major
Reporter: Jed Jacobs

Locks are not being released on the Gradle cache so other jobs are failing waiting for the locks to be released.

Debug message from Jenkins log:  [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] The file lock is held by a different Gradle process (pid: 3265, operation: ). Will attempt to ping owner at port 42238

 

The lock file is not being deleted after builds complete.

Full log attached.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

stefan.wolf.phd@gmail.com (JIRA)

unread,
Feb 21, 2019, 4:26:02 PM2/21/19
to jenkinsc...@googlegroups.com
Stefan Wolf commented on Bug JENKINS-56239
 
Re: Gradle cache locked

Jed Jacobs: I don't think this has anything to do with the Gradle plugin. This is an issue with Gradle or the usage of Gradle.

Do you have two Gradle build run in parallel on the same machine?

Do your Gradle builds share the same user home?

What is the other process which is noted in the log doing?

jed.jacobs@prudential.com (JIRA)

unread,
Feb 22, 2019, 8:19:02 AM2/22/19
to jenkinsc...@googlegroups.com
Jed Jacobs commented on Bug JENKINS-56239
 
Re: Gradle cache locked

Hi Stefan.  We have more than one build on the same machine but they were not running concurrently.
The Gradle builds all run with the same account so yes, they share the same user home and Gradle cache then, by default.

The only other process is the git plugin get the files from BitBucket.

I should mention, this is a scripted pipeline.

jed.jacobs@prudential.com (JIRA)

unread,
Feb 25, 2019, 7:36:03 AM2/25/19
to jenkinsc...@googlegroups.com
Jed Jacobs updated an issue
Change By: Jed Jacobs
Priority: Major Trivial

jed.jacobs@prudential.com (JIRA)

unread,
Feb 25, 2019, 7:41:02 AM2/25/19
to jenkinsc...@googlegroups.com
Jed Jacobs updated Bug JENKINS-56239
 

Issue not caused by the Gradle Plugin.  We found a rogue process on the server that had not released locks on over 1000 dependencies.  Killing the process and deleting the locks resolved the issue.

Change By: Jed Jacobs
Status: Open Fixed but Unreleased
Assignee: Stefan Wolf
Resolution: Not A Defect

stefan.wolf.phd@gmail.com (JIRA)

unread,
Feb 25, 2019, 7:50:01 AM2/25/19
to jenkinsc...@googlegroups.com
Change By: Stefan Wolf
Status: Fixed but Unreleased Closed

jed.jacobs@prudential.com (JIRA)

unread,
Jan 22, 2020, 7:40:03 AM1/22/20
to jenkinsc...@googlegroups.com
Jed Jacobs updated an issue
Change By: Jed Jacobs
Attachment: log
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages