Skip to content
This repository has been archived by the owner. It is now read-only.

I can not figure out how to add files or directory in Windows command line. #77

Closed
Shikibashi opened this issue Nov 25, 2015 · 8 comments
Labels

Comments

@Shikibashi
Copy link

Shikibashi commented Nov 25, 2015

ipfs add -r ./$dir F:\Documents\DOCUMENTs will not work, neither will ipfs add -r F:\Documents\DOCUMENTs which brings up Error: can't Lock file "C:\Users\tshef.ipfs/repo.lock": has non-zero size.
What am I doing wrong here?

@Shikibashi Shikibashi changed the title I cant figure out how to add files or directory in windows command line. I can not figure out how to add files or directory in Windows command line. Nov 25, 2015
@jbenet
Copy link
Contributor

jbenet commented Nov 25, 2015

Looks like a bug with the repo lock -- cc @whyrusleeping
On Tue, Nov 24, 2015 at 19:13 Shikibashi notifications@github.com wrote:

ipfs add -r ./$dir F:\Documents\DOCUMENTs will not work, neither will ipfs
add -r F:\Documents\DOCUMENTs which brings up Error: can't Lock file
"C:\Users\tshef.ipfs/repo.lock": has non-zero size.
What am I doing wrong here?


Reply to this email directly or view it on GitHub
#77.

@whyrusleeping
Copy link

whyrusleeping commented Nov 25, 2015

looks like it, yeah. @Shikibashi do you have a repro?

@whyrusleeping
Copy link

whyrusleeping commented Nov 25, 2015

also, can i get the output of ipfs diag sys in a gist?

@Shikibashi
Copy link
Author

Shikibashi commented Nov 25, 2015

I do not think i have a repo. How would i check that?
I ran ipfs diag sys in the command line and i got the error: The system cannot find the path specified.

I restarted my computer and now ipfs add works. I do not know how that works, but it did.

@jbenet
Copy link
Contributor

jbenet commented Dec 1, 2015

@Shikibashi try ipfs init ?

@ilyaigpetrov
Copy link

ilyaigpetrov commented Dec 12, 2015

The same problem. Starting ipfs daemon resolves the lock.

@contributorpw
Copy link

contributorpw commented Mar 23, 2016

Administrator privileges are required. Is there a way to avoid this?

User@BIGPC MINGW64 /c
$ ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
Error: can't Lock file "C:\\Users\\User\\.ipfs/repo.lock": has non-zero size
User@BIGPC MINGW64 /c
$ ipfs daemon
Initializing daemon...
Error: can't Lock file "C:\\Users\\User\\.ipfs/repo.lock": has non-zero size

Never mind. My bash is broken #irc

@flyingzumwalt
Copy link
Contributor

flyingzumwalt commented May 23, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants