Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] File locking exception

Thanks Jan.

It looks like it was my system hiccup. The issue went away after system restart.

----- Original Message -----
From: "Jan Sievers" <jan.sievers@xxxxxxx>
To: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Sent: Wednesday, May 8, 2013 3:07:47 PM
Subject: Re: [tycho-user] File locking exception

tycho is using file locks to protect multi-process read/write access to shared files like

- index files in the local maven repo
- nested OSGi jars extracted for compilation in the local maven repo

would be interesting to see the full debug log and stack trace (maven options -X -e).
If the lock times out it means another process is currently holding it and did not release it for more than 10 seconds.

On Linux, I think that

lsof <file>

should give you the process currently locking the file.


-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Krzysztof Daniel
Sent: Mittwoch, 8. Mai 2013 14:09
To: tycho-user
Subject: [tycho-user] File locking exception

Hey Tycho Masters,

I've recently stumbled upon this exception:

[ERROR] Failed to execute goal
(default-package-feature) on project com.mountainminds.eclemma.feature:
Execution default-package-feature of goal
org.eclipse.tycho:tycho-packaging-plugin:0.17.0:package-feature failed:
lock timeout: Could not acquire lock on file
file:/usr/share/java/jacoco/org.jacoco.agent.jar.tycholock/ for 10000
msec: /usr/share/java/jacoco/org.jacoco.agent.jar.tycholock (Permission
denied) -> [Help 1]

It looks like Tycho (0.17.0) is trying to create a lock in a folder
which should not be changed. Also, a bunch of modules earlier is
successfully built.

How to investigate/diagnose it?  Adding  -Dosgi.locking=none to the
build hides the issue (but I'm not sure whether it is safe).

Krzysztof Daniel <kdaniel@xxxxxxxxxx>
Red Hat

tycho-user mailing list
tycho-user mailing list

Back to the top