ipfs / js-ipfs

IPFS implementation in JavaScript
https://js.ipfs.tech
Other
7.44k stars 1.25k forks source link

jsipfs init failing in Windows #1119

Closed Ntmf closed 6 years ago

Ntmf commented 6 years ago

Type: Bug

Severity: High

Description: When running "jsipfs init" I am getting an Invalid Key error. I thought it might be because of the difference in backslashes and forward slashes where it is being initialized, but my attempts at resolving this failed. Below is the output after running the init command:

initializing ipfs node at C:\Users\rober/.jsipfs generating 2048-bit RSA keypair...done peer identity: QmSwvZgqDU9eUGoNqkiLfStUrLKpf9k5nVL7EPGkGPVR2P C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\interface-datastore\src\key.js:46 throw new Error(Invalid key: ${this.toString()}) ^

Error: Invalid key: /CIQFTFEEHEDF6KLBT32BFAGLXEZL4UWFNWM4LFTLMXQBCERZ6CMLX3Y at new Key (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\interface-datastore\src\key.js:46:13) at keyFromBuffer (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\ipfs-repo\src\blockstore.js:20:10) at cidToDsKey (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\ipfs-repo\src\blockstore.js:30:10) at Object.put (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\ipfs-repo\src\blockstore.js:80:17) at BlockService.put (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\ipfs-block-service\src\index.js:64:23) at waterfall (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\ipld-resolver\src\index.js:385:28) at nextTask (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\async\waterfall.js:16:14) at next (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\async\waterfall.js:23:9) at C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\async\internal\onlyOnce.js:12:16 at Object.serialize (C:\Users\rober\AppData\Roaming\npm\node_modules\ipfs\node_modules\ipld-dag-pb\src\util.js:27:3)

Steps to reproduce the error: Run "jsipfs init" in windows 10.

daviddias commented 6 years ago

Hi @asyphus, Windows support only starts at v0.27 coming out soon https://github.com/ipfs/js-ipfs/issues/1095

victorb commented 6 years ago

Until 0.27 has been released, it's always useful if you could try the latest code from the master branch on git. Some additional testing is always welcome!

On Fri, Dec 1, 2017 at 9:44 AM David Dias notifications@github.com wrote:

Hi @asyphus https://github.com/asyphus, Windows support only starts at v0.27 coming out soon #1095 https://github.com/ipfs/js-ipfs/issues/1095

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ipfs/js-ipfs/issues/1119#issuecomment-348436366, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcD9NAC_ReikAgoKy2MlxdfkbGdvxHFks5s77xWgaJpZM4QwQwP .

Ntmf commented 6 years ago

Thanks! @VictorBjelkholm @diasdavid I'll try to get that running.

daviddias commented 6 years ago

@asyphus you can now try out the just released v0.27.0! Released ann here https://github.com/ipfs/js-ipfs/issues/1095 \o/ Let us know if you encounter any issue