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

Error starting a private network #4490

Closed
jyang opened this issue Dec 14, 2017 · 8 comments
Closed

Error starting a private network #4490

jyang opened this issue Dec 14, 2017 · 8 comments
Assignees

Comments

@jyang
Copy link

jyang commented Dec 14, 2017

Version information: 0.4.13

Type: Bug

Severity: Medium

Description:

https://discuss.ipfs.io/t/error-when-set-ipfs-private-network/1393

@leerspace
Copy link
Contributor

leerspace commented Dec 30, 2017

@jyang If you can provide specific steps to reproduce I'd be happy to see if I also get the issue. Given that the instructions have worked for others, it would be helpful to know what exact steps were taken to get this error.

@Kubuxu
Copy link
Member

Kubuxu commented Jan 12, 2018

I think it might be an issue with line ends. I think multicodec parser only accepts /nand not\r\n. It can be fixed either in go-multicodec` or by changing go-libp2p-pnet not to use it.

@RegEM
Copy link

RegEM commented May 17, 2018

I briefly had the same problem. On my windows machine, I changed file saving line type to unix. Using Textpad as editor.

On to the next issue: 'Republisher failed to republish: failed to find any peer in table core'

@vikpj
Copy link

vikpj commented Jun 15, 2018

I'm having this issue as well. Changing the line endings did not help. I am also using a windows machine.

@vikpj
Copy link

vikpj commented Jun 15, 2018

I fixed this by installing the linux subsystem and running ipfs-swarm-key-gen through that.

@ssdubey
Copy link

ssdubey commented Jun 7, 2019

I had the similar issue in Ubuntu machine. I reinforced \n between the three lines of the swarm.key file by bringing them in same line and pressing enter. I look the same as the original key but worked fine after that.

@Kubuxu
Copy link
Member

Kubuxu commented Jun 7, 2019

As a stopgap measure, consider using dos2unix utility to make sure that swarm.key is in Unix format:

dos2unix swarm.key

@Stebalien
Copy link
Member

Stebalien commented Jul 2, 2019

This is fixed in the latest go-ipfs master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

7 participants