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 in offline name.publish after id #4978

Closed
alanshaw opened this issue Apr 25, 2018 · 5 comments · Fixed by #5486
Closed

Error in offline name.publish after id #4978

alanshaw opened this issue Apr 25, 2018 · 5 comments · Fixed by #5486
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@alanshaw
Copy link
Member

Version information:

go-ipfs version: 0.4.14-5db3846
Repo version: 6
System version: amd64/darwin
Golang version: go1.10

Type:

Bug

Description:

Only in offline mode, calling name.publish after id causes an error.

$ ipfs daemon --offline &
[1] 47216
$ Initializing daemon...
Swarm not listening, running in offline mode.
API server listening on /ip4/127.0.0.1/tcp/5001
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8090
Daemon is ready
$ ipfs id
{
	"ID": "QmahispzgXbQ5ewaxSjdrst8KNLzREhVHdhxZwAUHQWqLb",
	"PublicKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDC4Q6B6burDPTlfIkjlF72Q/G72GT7CDBzlZsGI9XKf3XCC5PQiTBcpvKEnUCoBvquiClWE1yJiM4bu1dH/YR5NDBlx9EQzDDmiVvS909cqokRHxA0NY5t83hs8gthoMt6wn15euG2e6LVohqefq6YiiFWgakxDcRyMclLWKiF2t7U6OhMMSd2YdHp15wcHac13ZmdNKhZ/TBhjeKowl4DjAixxLE0kmcK5MsABeQEA+BHukz425K3929onEriSkG7xkSrd0YwKOx6J2Apub7Df8yhcG1PFoTyfTUD/gxkYNrB2jjqUJaNXrK4QDbaDinBNS3KZUn4SQtmxzj2gi4PAgMBAAE=",
	"Addresses": null,
	"AgentVersion": "go-ipfs/0.4.14/5db3846",
	"ProtocolVersion": "ipfs/0.1.0"
}
$ ipfs name publish zdpuArHMUAYi3VtD3f7iSkXxYK9xo687SoNf5stAQNCMzd77k
Error: private key already loaded
@kjzz
Copy link
Contributor

kjzz commented Apr 26, 2018

use cmd "ipfs name rsolve" cause the same error,and i have find the reason.

@kjzz
Copy link
Contributor

kjzz commented Apr 26, 2018

please assign this issue to me

@kjzz
Copy link
Contributor

kjzz commented Apr 26, 2018

@alanshaw

@kjzz
Copy link
Contributor

kjzz commented Apr 26, 2018

i have fix it in pr #4980

@Stebalien
Copy link
Member

Reopening as needs test.

kjzz added a commit to kjzz/go-ipfs that referenced this issue Oct 4, 2018
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
kjzz added a commit to kjzz/go-ipfs that referenced this issue Oct 5, 2018
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
Stebalien added a commit that referenced this issue Oct 5, 2018
add offline id test #4978 and refactor command code
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)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants