Skip to content

Instantly share code, notes, and snippets.

@jimpick
Created July 21, 2020 21:59
Show Gist options
  • Save jimpick/92d5c4c2687696375c3e328e136bc509 to your computer and use it in GitHub Desktop.
Save jimpick/92d5c4c2687696375c3e328e136bc509 to your computer and use it in GitHub Desktop.
retrieval test
```
$ ./lotus client local
1: <nil> @ (import-local)
2: <nil> @ (import-local)
3: <nil> @ (import-local)
4: <nil> @ (import-local)
5: <nil> @ (import-local)
$ ./lotus client find bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu
LOCAL
ERR t01680@12D3KooWJsuyCCkMLsNb2wpVL43XrXiGbB1nia1HiTvhv48rDAFY: routing: not found
ERR t01840@12D3KooWKRuafntKgx2r8XGY2o4ZnznE3UyLf5rwHLvN7ze5VYFt: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t01899@12D3KooWB9h5vkhsYdCKUVU4T4oWpnZnLqM8gt7MiHFed6kA9iXR: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02026@12D3KooWSmximcmrGE7C2sJryAh8HPEoeZHanLkmiE3kgEUjagKq: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02102@12D3KooWEZFqMaXS8pxvERpToSRU9zcJTm1bG1xyunoHbyRWJnQf: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02190@12D3KooWN6ALjqTL1gEpXEg2U4hVCcu2JecR8sDbM2B9PViXBPeB: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t01796@12D3KooWQ43PtXAmKiEhhGEfaLn9HAefbLkLE6yR5H9cS3t7MmRu: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02368@12D3KooWJvVR7K5JhWcNWHTbYG1ggVCFoXVVqGa6mDWhKVLDH8F4: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02590@12D3KooWSCaVZBrUKHcSDj5yFtomVVgNLp7LYvJefo3Dap6VgHzh: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02463@12D3KooWQtCevchsDRpaNFnRMjABgerQuPuoqz2iK6X2oEoTRnry: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02930@12D3KooWMvwDqtLKUsnWoGdXA6w1gXzqwohV8LQn1TV75NDiFeS9: dial backoff
ERR t03286@12D3KooWLGEWHHEWBTyhUoxJPwG3YY2CurTmaNM5T4zGbX3acr69: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
RETRIEVAL t03641@12D3KooWKzfQ3ff2vtuiaZ89zBCEu9aLxzGgJCyebDoAEbdRKbBk-0.000000000000260096 FILfil-127 KiB
RETRIEVAL t02416@12D3KooWBZMHk52gfNtYNmfj7rZRdK7Ug433zij67JuUQmhXK2m9-0.000000000000260096 FILfil-127 KiB
ERR t03021@12D3KooWDaJySbZNZkw521724MFt4rmHpraAyY1uo6NNzGHWqz4C: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03789@12D3KooWMkZ9offnbKCrzF95xKJAjHEipqqBBJaKqg591y76nV3u: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
RETRIEVAL t03847@12D3KooWQTGZrqCekNtitcJwNGQD7WE11o1xy8PtRwx5HKnJV5bq-0.000000000000260096 FILfil-127 KiB
ERR t03513@12D3KooWRuSZpd4qgqU6mJnLwjnfwAMwRigAExDUxB6YPChw1wRo: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03862@12D3KooWDn9NCXtGfaAaZ5EYbLFwGvKpC8bXR8X77q1Bvk2co4jc: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03882@12D3KooWE9co6Y61Gg8KSajp8PEvgY6cjeDqpF84yX8CUi6J8JWJ: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03883@12D3KooWHr1kVdEyUhU7sPHXLda7S6RzBWgUftR5dT4hrDQdAFhR: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03881@12D3KooWA5yLAEfnLMFkTwMZshrGajuGkV3GQ4c9Nzg63mQbhWCU: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03992@12D3KooWRzfAV2SFSn4pFXXFyn7aTrAsRA2kgFKz4psDLLmCoAcs: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
RETRIEVAL t03878@12D3KooWAXoZbANXzHVC7uAGLjazCYnAgv63gnKiUShGyfyw4xM4-0.000000000000260096 FILfil-127 KiB
ERR t04030@12D3KooWQK6i44DhVyzML6vZYNi14LP7L7qXdUD8bgtxCsESeDzd: routing: not found
ERR t03881@12D3KooWQLmW9mnaQ39WSr2Movt1Y1gbaZHJ8y8UVStWXTGtPqzr: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t04063@12D3KooWExTh6jEjYs1vvuqeA45gLZMoCqyeo5rLZXA14zbaXi2R: routing: not found
RETRIEVAL t04065@12D3KooWD9qFMkuDToWWAETLrt7KE8LpDBskAHLYoi3RmW2m2kjm-0.000000000000260096 FILfil-127 KiB
RETRIEVAL t04073@12D3KooWL5pPJYT3LuYaHWwem2TRhFZwr97rbHu524EZSnUqDuog-0.000000000000260096 FILfil-127 KiB
ERR t04068@12D3KooWALCNcrkxB7JLfp8vQ65A2Ju3VPfDtErMrPH4K1aKn7fb: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03939@12D3KooWNbfpCpeJ87nANFYKapzD6wqobBdVCFr1R7Aeamjg6CXT: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t03903@12D3KooWKZwm8duQUtE9SLJkDMZp7SynxQQPFKGzzhTPDcRnMLb2: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t04161@12D3KooWGJ42qehNANoDQAFSmA87jLgQdZToLEwvcXBQ9Gk6Fnuh: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
ERR t02394@12D3KooWP39wZf8kDdSiCJDFD42TgdeyH4ZbtqDvf1Nffk2429Bu: retrieval query offer errored: get cid info: No state for /bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu: datastore: key not found
RETRIEVAL t04210@12D3KooWQFF7kdHePxwBTftG8UNkKymLWBLWyu6XK9YTYB5CLREU-0.000000000000260096 FILfil-127 KiB
$ time ./lotus client retrieve bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu /home/ubuntu/tmp/test2.jpg
2020-07-21T21:54:47.846Z WARN main lotus/main.go:81 The received offer errored: routing: not found
real 0m8.493s
user 0m0.046s
sys 0m0.004s
$ time ./lotus client retrieve --miner=t04223 bafk2bzaceb6xyvk56gshw4mc6oagwv55nxtpmurp37jy3fiujz7x2nowl22mu /home/ubuntu/tmp/test2.jpg
Success
real 2m49.024s
user 0m0.029s
sys 0m0.033s
$ ls -l /home/ubuntu/tmp/test2.jpg
-rw-rw-r-- 1 ubuntu ubuntu 72715 Jul 21 21:58 /home/ubuntu/tmp/test2.jpg
$ file /home/ubuntu/tmp/test2.jpg
/home/ubuntu/tmp/test2.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, density 1x1, segment length 16, baseline, precision 8, 300x225, frames 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment