# The issue: Error: cannot acquire lock: can't lock file "C:\\Users\\Алексей\\.ipfs\\repo.lock": has non-zero size

**URL:** <https://discuss.ipfs.tech/t/the-issue-error-cannot-acquire-lock-cant-lock-file-c-users-ipfs-repo-lock-has-non-zero-size/17166>\
**Category:** Help\
**Tags:** ipfs-desktop\
**Created:** [November 5, 2023, 7:24am UTC](https://discuss.ipfs.tech/t/the-issue-error-cannot-acquire-lock-cant-lock-file-c-users-ipfs-repo-lock-has-non-zero-size/17166 "2023-11-05T07:24:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tuzemooner](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/tuzemooner/32/8089_2.png) [@Tuzemooner](https://discuss.ipfs.tech/u/Tuzemooner)\
**Post date:** [November 5, 2023, 7:24am UTC](https://discuss.ipfs.tech/t/the-issue-error-cannot-acquire-lock-cant-lock-file-c-users-ipfs-repo-lock-has-non-zero-size/17166/1 "2023-11-05T07:24:37Z")

</div>

### I’m a junior and not familiar with IPFS / git / golang etc.

**The issue:** Error: cannot acquire lock: can’t lock file “C:\Users\Алексей.ipfs\repo.lock”: has non-zero size

(see screenshot):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/e/ed29e5bd05f0cc2f2cc32e732f0e148559622851.jpeg)

First I’ve tried tip commands and there are no such function or script file…

(see screenshot 2 and 3) - will try in next messages:

I’ve opened C:\Users\Алексей\.ipfs\repo.lock file with Notepad and here is only ‘{“OwnerPID”:10132}’ info - that’s all.

Idk what can I do. The youtube guides has same issue, but it disappeared by itself for a while (not my case).  
Can you describe the error and any ideas how to fix it?

P.s. I tried to install IPFS from CLI, but the “maker” function didn’t work

---

<div class="post-metadata">

**Author:** ![Tuzemooner](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/tuzemooner/32/8089_2.png) [@Tuzemooner](https://discuss.ipfs.tech/u/Tuzemooner)\
**Post date:** [November 5, 2023, 7:25am UTC](https://discuss.ipfs.tech/t/the-issue-error-cannot-acquire-lock-cant-lock-file-c-users-ipfs-repo-lock-has-non-zero-size/17166/2 "2023-11-05T07:25:23Z")

</div>

screen 2

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/c/c862c80686dc44be892ed5498f3cf8be58a8798a.jpeg)

---

<div class="post-metadata">

**Author:** ![Tuzemooner](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/tuzemooner/32/8089_2.png) [@Tuzemooner](https://discuss.ipfs.tech/u/Tuzemooner)\
**Post date:** [November 5, 2023, 7:29am UTC](https://discuss.ipfs.tech/t/the-issue-error-cannot-acquire-lock-cant-lock-file-c-users-ipfs-repo-lock-has-non-zero-size/17166/3 "2023-11-05T07:29:18Z")

</div>

screen 3

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ipfs1/original/2X/f/f88e7e64db8280db781d30fbeb0e8df9a08ce38a.jpeg)

---

<div class="post-metadata">

**Author:** ![Discordian](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/discordian/32/4692_2.png) [@Discordian](https://discuss.ipfs.tech/u/Discordian)\
**Post date:** [November 6, 2023, 9:24pm UTC](https://discuss.ipfs.tech/t/the-issue-error-cannot-acquire-lock-cant-lock-file-c-users-ipfs-repo-lock-has-non-zero-size/17166/4 "2023-11-06T21:24:19Z")

</div>

> [@Tuzemooner](#):
>
> **The issue:** Error: cannot acquire lock: can’t lock file “C:\Users\Алексей.ipfs\repo.lock”: has non-zero size

Have you tried:

1. Closing IPFS Desktop, also ensure the CLI version (Kubo) isn’t running either.
2. Delete the lock file.

I really think that should resolve your primary issue here.
