question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.coursier\cache\v1\.structure.lock (Access is denied)

See original GitHub issue

I had to comment out this line:

addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC12")

in my plugins/build.sbt, after I started getting the following error on any/all Scala projects I tried to build this morning:

coursier.ResolutionException: Exception during resolution                                                        
Caused by: java.io.FileNotFoundException: C:\Users\me\.coursier\cache\v1\.structure.lock (Access is denied) 

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gknauthcommented, Feb 16, 2018

I have some good news, I think, at least if you’re running Windows 10 instead of an earlier version of Windows. It turned out before, at work, I was running Windows 8.1 Pro, not Windows 10 as I thought. The IT folks just upgraded my work laptop to Windows 10 Pro, and the issue I had with .structure.lock before has completely vanished, that is, the program I wrote using Coursier now works well on Mac, GNU/Linux and Windows (10).

0reactions
imanabucommented, Nov 11, 2022

2022-11-11: I just ran into this issue with ‘sbt 1.5.8’ on a Windows Server. Just in case if you run into the problem, I was able to resolve this (without knowing what has completely fixed it).

Re-installing the sbt Cleaning .ivy2 directory (this is likely the cause) Cleaning ~.,sbt directory Make sure that all local dependencies are built

It appears that if we encounter an unresolved reference, then the sbt reports the lock failure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

coursier\cache\v1\.structure.lock (Access is denied)
I had to comment out this line: addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.0-RC12"). in my plugins/build.sbt , after I started ...
Read more >
coursier/coursier - Gitter
I'm wondering if the way coursier writes out its lock files could be ... amybody seeing "access is denied" errors for ".coursier\cache\v1.structure.lock" on ......
Read more >
"Access Denied" Message - Canvas Community
In student view I am seeing a big lock and "access denied" when I click on individual assignments. These are assignments that have...
Read more >
SBT throws java.io.FileNotFoundException - scala
The (Permission denied) error says that you're probably running the sbt command from a user that doesn't have permission for the project ...
Read more >
Unable to install plugins with Progress Developer Studio
... due to exception: DLC\oeide\eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\PlatformProfile.profile\.lock (Access is denied)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found