Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

The default etcd address can't be parsed correctly on the latest golang version #444

Open
freesky-edward opened this issue Jan 11, 2017 · 2 comments

Comments

@freesky-edward
Copy link

freesky-edward commented Jan 11, 2017

I am not sure whether it is a bug of torus or golang itself. I file a bug here for deep discussion.
my case
when I run the cmd "torusctl init" with the newest go version, I got the following error message:
start to init MDS...
MDS init finished...
invalid etcd address: parse 127.0.0.1:2379: first path segment in URL cannot contain colon
root cause
I found the golang community changed its url.Parse method after I research into the code. they think "127.0.0.1:2379" is no longer the correct address according to RFC 3986. it raises the error message from the "flagconfig.BuildConfigFromFlags" when parse the "defaultEtcdAddress" via url.Parse

@freesky-edward freesky-edward changed the title The default etcd address can't be parsed correctly on the newest go version The default etcd address can't be parsed correctly on the latest golang version Jan 11, 2017
@mischief
Copy link
Contributor

try using http://127.0.0.1:2379

@freesky-edward
Copy link
Author

yeah, it works well. should we change the defaultEtcdAddress value of flagconfig to "http://127.0.0.1:2379"?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants