graphprotocol / ipfs-mgm

IPFS cli for content syncing
3 stars 9 forks source link

Error Opening the file issue #12

Open mubarak117136 opened 10 months ago

mubarak117136 commented 10 months ago

hi, I am pretty new on ipfs things. I just try to sync pinata ipfs file in subgraph ipfs node. For sync i try this package and not work for me maybe syntax error or other issue. Here is my command:

docker run -it ghcr.io/graphprotocol/ipfs-mgm sync -s https://ipfs.io/ipfs/ -d https://api.thegraph.com/ipfs/ -f QmQB7BR5JNM6ctxi7hyTcTYJYhSdSrXL3CyCuYhrWRqd5U

output:

Syncing from https://ipfs.io/ipfs/ to https://api.thegraph.com/ipfs/ using the file <QmQB7BR5JNM6ctxi7hyTcTYJYhSdSrXL3CyCuYhrWRqd5U> as input
Error opening the file <QmQB7BR5JNM6ctxi7hyTcTYJYhSdSrXL3CyCuYhrWRqd5U>

anyone can help me out what i am doing wrong! thank you

rotarur commented 6 months ago

first of all the hash is not the file. this is a limitation in this script which I'll fix later. if you run the docker you need to mount the file inside it before

docker run -it ghcr.io/graphprotocol/ipfs-mgm sync -s https://ipfs.thegraph.com -d https://api.thegraph.com -f file
2024/05/10 09:18:34 Syncing from https://ipfs.thegraph.com to https://api.thegraph.com using the file <file> as input
Error opening the file <file>

this file exists locally on my laptop but If I don't mount it it won't work