You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/10/30 09:47:23 UTC

[GitHub] [maven-mvnd] fsmherrm opened a new issue, #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

fsmherrm opened a new issue, #728:
URL: https://github.com/apache/maven-mvnd/issues/728

   Hello,
   
   we have a quite huge maven multi project with approx. 150 modules. During project build with "mvnd clean install" it randomly fails with for example followings error (just as an example, as specific error dependency randomly changes):
   
   `Failed to open file channel for '[..]\.m2\repository\.locks\commons-codec~commons-codec~1.15.resolverlock'`
   
   Unfortunately, I am not able to directly reliablely reproduce it but from my understanding this should not happen as Maven Daemon is designed to support concurrent M2 repository access.
   
   What could be the reason? Is there any configuration that I could adjust to solve this?
   
   
   Thank you and best regards
   Marc


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300857846

   Roger that, later evening, or tomorrow will prep alternative patch.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298793584

   This is the patch: https://github.com/apache/maven-resolver/pull/211/files
   Patched JAR is in my drive: https://drive.google.com/drive/folders/1A1xx5CszdplDdNeURrKDCBCku0Z2Wgxp?usp=share_link
   
   ORIGINAL JAR SHA1:
   71bb6016d8d415836187b791a9df3bf5cb401c44  maven-resolver-named-locks-1.7.3.jar
   
   PATCHED JAR SHA1:
   7eea1f1d27abbf8bab68b95c315af7dd5076180f  maven-resolver-named-locks-1.7.3.jar
   
   To apply it:
   * overwrite/replace the mvnd/mvn/lib/maven-resolver-named-locks-1.7.3.jar` with this file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1303147948

   Cool, thanks @fsmherrm for testing this!
   
   Sadly, the order is release resolver 1.9.0 (soon) -> release maven 3.9.0 (that would use fixed resolver) -> release mvnd (that would use released maven that use fixed resolver).... 
   
   Stay tuned, will figure out something with @gnodet for sure.
   
   The finel (to be in 1.9.0) resolver change is here https://github.com/apache/maven-resolver/pull/216


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1299913766

   @cstamas: Are you able to upload the patched jar somewhere else e.g. onedrive?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300336915

   @fsmherrm any results?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298439739

   ```
   PS C:\Users\[...]> mvnd --version
   mvnd 0.8.2 windows-amd64 native client (2bba2d6a4d3a5012ddf9f1f42a22784cad4011e3)
   Terminal: org.jline.terminal.impl.jansi.win.JansiWinSysTerminal
   Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
   Maven home: C:\Tools\maven-mvnd-0.8.2-windows-amd64\mvn
   Java version: 11.0.11, vendor: AdoptOpenJDK, runtime: C:\Tools\jdk-11.0.11+9
   Default locale: de_DE, platform encoding: Cp1252
   OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
   ```
   
   I will try to use an updated JDK version and let you know if the issue still occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] michael-o commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298795302

   https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-deletefilea?redirectedfrom=MSDN
   
   Could it be that our handling is incorrect?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1303103161

   Hi @cstamas, sorry for delay, but for now it seems to work fine! Thank you very much for your instant support and fix 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet closed issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
gnodet closed issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"
URL: https://github.com/apache/maven-mvnd/issues/728


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
gnodet commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1373836302

   Fixed in https://github.com/apache/maven-mvnd/milestone/31


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298397160

   What version of mvnd, what OS and what FS?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] michael-o commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298773014

   I can't stop laughing about crappy file locking on Windows. The "fix" done in the JDK is pointless because it addresses *only* the symptom in the JUL `FileHandler`, so upgrading won't help. I assume is that we need to apply the same hack either with a sleep or a retry count.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] michael-o commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298792959

   Similar issue: https://bugs.openjdk.org/browse/JDK-8150344


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1296293199

   Here is the full exception stack log:
   ```
   Caused by: java.io.UncheckedIOException: Failed to open file channel for '[..]\.m2\repository\.locks\commons-codec~commons-codec~1.15.resolverlock'
   	at org.eclipse.aether.named.providers.FileLockNamedLockFactory.lambda$createLock$0(FileLockNamedLockFactory.java:78)
   	at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
   	at org.eclipse.aether.named.providers.FileLockNamedLockFactory.createLock(FileLockNamedLockFactory.java:65)
   	at org.eclipse.aether.named.support.NamedLockFactorySupport.lambda$getLock$0(NamedLockFactorySupport.java:53)
   	at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1908)
   	at org.eclipse.aether.named.support.NamedLockFactorySupport.getLock(NamedLockFactorySupport.java:49)
   	at org.eclipse.aether.named.support.NamedLockFactorySupport.getLock(NamedLockFactorySupport.java:34)
   	at org.eclipse.aether.internal.impl.synccontext.named.NamedLockFactoryAdapter$AdaptedLockSyncContext.acquire(NamedLockFactoryAdapter.java:141)
   	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:233)
   	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:357)
   	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:207)
   	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:243)
   	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:147)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:401)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:347)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)
   	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)
   	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
   	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
   	... 6 common frames omitted
   Caused by: java.nio.file.AccessDeniedException: [..]\.m2\repository\.locks\commons-codec~commons-codec~1.15.resolverlock
   	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
   	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
   	at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
   	at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:120)
   	at java.base/java.nio.channels.FileChannel.open(FileChannel.java:292)
   	at java.base/java.nio.channels.FileChannel.open(FileChannel.java:345)
   	at org.eclipse.aether.named.providers.FileLockNamedLockFactory.lambda$createLock$0(FileLockNamedLockFactory.java:70)
   	... 25 common frames omitted
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1299938246

   [maven-resolver-named-locks-1.7.3.jar.zip](https://github.com/apache/maven-mvnd/files/9918951/maven-resolver-named-locks-1.7.3.jar.zip)
   
   Just remove the `.zip` suffix from file name.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1299932500

   @cstamas: yes, sorry. Can you provide it via github?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298778578

   > The issue still occurs with Java version: 11.0.17, vendor: Eclipse Adoptium
   
   You mean 17 Adoptiun? Or 11 Adoptium? Or?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298431254

   Without any information, am guessing something along these lines (as very same thing is done by resolver locking as well): https://bugs.openjdk.org/browse/JDK-8252883  Would be goot to get information about Java version here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300762954

   @cstamas : I am willing to test more :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300739597

   If you are willing to test more, i can prepare a similar patch like the "symptom patch" is in java...
   
   Also, let's keep the discussion here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300668591

   @cstamas: It seems to work now :) but I need to run it multiple times to be sure as I am not able to always reproduce it before.
   
   But as a result, the folder .locks is now populated with more than 2000 .resolverlock files, is this intended?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298774426

   I have something else on my mind (that the fix in Java), and as @fsmherrm reproduces the issue consistently, am eager to try out my assumption....


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1299935446

   Sadly no, GH does not allow JAR uploads (was my initial intent and was suprised to see that)... 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] michael-o commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
michael-o commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1299936072

   You can rename to .txt and upload.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1299917823

   > @cstamas: Are you able to upload the patched jar somewhere else e.g. onedrive?
   
   Is in Google Drive, or is that not reachable to you?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
gnodet commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1296269347

   @cstamas fyi


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1303096251

   @fsmherrm any results? Sorry for "pressing", but am akin to release resolver 1.9.0 soon, and would like to incorporate these 'tweaks" (probably configurable by some flags) for Windows users.....  (or ultimate fix, if it works)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] fsmherrm commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
fsmherrm commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298552766

   The issue still occurs with Java version: 11.0.17, vendor: Eclipse Adoptium


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300715189

   Sadly, this is the "price" to make it work on Windows that has very quirky locking semantics, see the patch https://github.com/apache/maven-resolver/pull/211


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1300966878

   2nd experiment: do what Java folks did: retry and hope the best:
   https://github.com/apache/maven-resolver/pull/214
   
   Patch JAR:
   [maven-resolver-named-locks-1.7.3.jar.zip](https://github.com/apache/maven-mvnd/files/9922751/maven-resolver-named-locks-1.7.3.jar.zip)
   
   SHA1: 5add45f97a6e37053993652a25d618e134d0c5c7
   
   "Tunables":
   `-Dresolver.file-lock.attempts=5` to set retry attempts, default 5 attempts
   `-Dresolver.file-lock.sleepMillis=50` to set sleep time between attempts, default 50ms
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] cstamas commented on issue #728: Maven Project randomly fails with "Failed to open file channel '[..]\.m2\repository\.locks\[..].resolverlock"

Posted by GitBox <gi...@apache.org>.
cstamas commented on issue #728:
URL: https://github.com/apache/maven-mvnd/issues/728#issuecomment-1298769865

   Ok, mvnd 0.8.2 uses resolver 1.7.3... @fsmherrm If I prep a patched JAR (of affected resolver bit), are you willing (or can you) to try it out?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org