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

Unable to pipe between 2 ipfs commands #1394

Open
dylanPowers opened this issue Jun 18, 2015 · 4 comments
Open

Unable to pipe between 2 ipfs commands #1394

dylanPowers opened this issue Jun 18, 2015 · 4 comments
Labels
kind/bug A bug in existing code (including security flaws) topic/commands Topic commands

Comments

@dylanPowers
Copy link
Member

Specifically I'm unable to run ipfs cat <hash> | ipfs add without getting the error:

Error: Post http://127.0.0.1:5001/api/v0/add?encoding=json&progress=true&stream-channels=true: dial tcp 127.0.0.1:5001: connection refused

FYI, the daemon is offline. This is probably somewhat related to my "I don't know what's going on but commands aren't working" issue

@whyrusleeping
Copy link
Member

What i beleive is happening here is that the first command takes the repo lock, and the second command, seeing that the lock is taken, assumes that a daemon is online and tries to connect to it.

@whyrusleeping whyrusleeping added kind/bug A bug in existing code (including security flaws) topic/commands Topic commands labels Jun 18, 2015
@jbenet
Copy link
Member

jbenet commented Jun 18, 2015

the second command, seeing that the lock is taken, assumes that a daemon is online and tries to connect to it.

yeah this is why i separated repo.lock and api in https://github.com/ipfs/specs/tree/master/repo/fs-repo#api -- the fsrepo doesnt look like that. and that spec needs to be updated with Tv's pinning stuff.

@Kubuxu
Copy link
Member

Kubuxu commented May 15, 2016

This bug is back, now running command like that with daemon disabled returns:

Error: resource temporarily unavailable

@Stebalien
Copy link
Member

Proposed solution: Always use a daemon (but start an ephemeral daemon on-demand).

Timeline: someday :(

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/commands Topic commands
Projects
None yet
Development

No branches or pull requests

5 participants