Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Windows seems to fail to release lock on ls error #3633

Closed
tkharris opened this issue Jan 26, 2017 · 6 comments · Fixed by #4855
Closed

In Windows seems to fail to release lock on ls error #3633

tkharris opened this issue Jan 26, 2017 · 6 comments · Fixed by #4855
Labels
kind/bug A bug in existing code (including security flaws) topic/windows Windows specific

Comments

@tkharris
Copy link

Version information:

go-ipfs version: 0.4.4-
Repo version: 4
System version: amd64/windows
Golang version: go1.7

Type: Bug

Priority: P2

Description

In Windows seems to fail to release lock on ls error.

thomas.harris@ThoHarris9-NB10 /cygdrive/c/ipfs-data
$ ipfs ls QmVRvcjXFuhxYLpHfQF6pHo6Wc8TAsAEzK9fGTbtd9fBEm

thomas.harris@ThoHarris9-NB10 /cygdrive/c/ipfs-data
$ ipfs ls QmVRvcjXFuhxYLpHfQF6pHo6Wc8TAsAEzK9fGTbtd9fBEm

thomas.harris@ThoHarris9-NB10 /cygdrive/c/ipfs-data
$ ipfs ls bogus
Error: invalid ipfs ref path

thomas.harris@ThoHarris9-NB10 /cygdrive/c/ipfs-data
$ ipfs ls QmVRvcjXFuhxYLpHfQF6pHo6Wc8TAsAEzK9fGTbtd9fBEm
Error: cannot acquire lock: file "C:\Users\Thomas.Harris\.ipfs\repo.lock" already locked

@whyrusleeping whyrusleeping added kind/bug A bug in existing code (including security flaws) topic/windows Windows specific labels Jan 26, 2017
@whyrusleeping
Copy link
Member

@tkharris Thanks for reporting. We are going to try and get windows CI and testing set up in the next several weeks, these sorts of issues should get worked out soon.

@whyrusleeping
Copy link
Member

Got a windows VM running, managed to reproduce the issue.

@whyrusleeping
Copy link
Member

Hrm... We might need to update our locking dependency. Its been a solid year since I updated it. (June 21st, 2016)

@whyrusleeping whyrusleeping added the help wanted Seeking public contribution on this issue label Aug 31, 2017
@whyrusleeping
Copy link
Member

Hrm... there havent been any updates to that locking lib since our last update. It also supports windows via a fallback locking mechanism. I wonder if theres a better way to do locking on windows?

@Stebalien
Copy link
Member

Locking files is actually pretty easy on windows, they have mandatory file locks. Actually, it looks like there may be a stale PR you may be able to revive:

camlistore/lock#2 (note, that's on the old repo). Unfortunately, the code in that PR looks a bit more complicated than it really should be...

@whyrusleeping whyrusleeping added this to the Ipfs 0.4.12 milestone Sep 2, 2017
@Kubuxu Kubuxu modified the milestones: Ipfs 0.4.12, go-ipfs 0.4.13 Nov 6, 2017
@djdv djdv added status/in-progress In progress and removed help wanted Seeking public contribution on this issue labels Mar 19, 2018
@djdv djdv added this to the go-ipfs 0.4.15 milestone Mar 19, 2018
@djdv
Copy link
Contributor

djdv commented Mar 19, 2018

I made modifications to the lock library after encountering issues on a separate issue, those changes resolve this as well. They're currently under review.
https://review.gerrithub.io/#/c/403981/

Once it passes, I'll create a PR to update the gx dep.

@djdv djdv mentioned this issue Mar 21, 2018
@ghost ghost removed the status/in-progress In progress label Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) topic/windows Windows specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants