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.

Could not acquire lock to ...\paket.locked

See original GitHub issue

Description

I’ve experienced very strange paket restore behaviour today. I was constantly getting this error message on restoring packages: Could not acquire lock to C:\Gitlab-Runner\builds\cc2bad82\0\***\obj\paket.locked. Finally I found out it was caused by blocking the creation of *.locked files by my antivirus (McAfee) because of some virus which encrypts files and creates *.locked copy of it I guess.

Since our organization policy doesn’t allow us to change any security settings it becomes unreal to run my build pipeline.

Please advice. Is it possibly to make paket.locked constant configurable or rename it to smth else? Thanks

Known workarounds

I made a custom build with changed to paket.locked-whatever constant (located in Constants.fs) instead of paket.locked.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
forkicommented, May 24, 2019

I’m fine with changing the name

Michal Jirouš notifications@github.com schrieb am Fr., 24. Mai 2019, 16:15:

@forki https://github.com/forki Files ending with *.locked extension are treated by McAfee as ransomware. It may be stupid, but that’s how McAfee works. I issued a ticket to whitelist this file in our company and after a week we only got temporary approval. I agree that it McAfee problem, but many companies use it and security experts are just afraid. We are basically forced to come with some alternative because our company does not want to allow it permanently. The alternative may be to not use Paket or have a custom fork. None of these options are good for us. It would be much better to just change the single line of code in Paket to change the filename. Is there some specific reason the file must have the name paket.locket?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Paket/issues/3535?email_source=notifications&email_token=AAAOANGGZQS53QUTZZLYSFTPW7Z6PA5CNFSM4HCEXCOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFP37A#issuecomment-495648252, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAOANBN6SDKUXIOFLUXDW3PW7Z6PANCNFSM4HCEXCOA .

2reactions
mjirouscommented, May 24, 2019

@forki Files ending with *.locked extension are treated by McAfee as ransomware. It may be stupid, but that’s how McAfee works. I issued a ticket to whitelist this file in our company and after a week we only got temporary approval. I agree that it is McAfee’s problem, but many companies use it and security experts are just afraid. We are basically forced to come with some alternative because our company does not want to allow it permanently. The alternative may be to not use Paket or have a custom fork. None of these options are good for us. It would be much better to just change the single line of code in Paket to change the filename. Is there some specific reason the file must have the name paket.locket?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The paket.lock file
If the paket. lock file is not present when paket install is run, it will be generated. Subsequent runs of paket install will...
Read more >
Can't get paket to work for the simplest case : r/fsharp
Here are my reasons for using paket: Unified view of packages used across projects via paket. dependecies/paket. lock.
Read more >
Paket Issues - Steve Ellwood - Medium
Locking dependencies. By default paket will use the latest version of a dependency that it can find. This is one of the reasons...
Read more >
Why does Paket need three files to support dependency ...
dependencies. The paket.lock file locks builds to the same specific versions every time. You must intentionally take some sort of action, ...
Read more >
How can I solve "Be aware that removing the lock file is not ...
Never just remove a lock unless you are sure it is stale. Some locks are tied to running processes and will disappear when...
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