Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

"coordinator ssh" doesn't work #35

Open
11xor6 opened this issue Jun 11, 2013 · 5 comments
Open

"coordinator ssh" doesn't work #35

11xor6 opened this issue Jun 11, 2013 · 5 comments

Comments

@11xor6
Copy link
Contributor

11xor6 commented Jun 11, 2013

$ airship --debug coordinator ssh
2013-06-11T12:25:32.703-0700 INFO main io.airlift.log.Logging Logging to stderr
Exception in thread "main" UnexpectedResponseException{request=Request{uri=http://ec2-23-22-68-45.compute-1.amazonaws.com:64000/v1/admin/coordinator, method=GET, headers={}, bodyGenerator=null}, statusCode=500, statusMessage=Cannot compute unique prefix size for collection with duplicate entries, headers={Content-Length=[1411], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
at io.airlift.http.client.JsonResponseHandler.handle(JsonResponseHandler.java:75)
at io.airlift.http.client.ApacheHttpClient$1.handleResponse(ApacheHttpClient.java:134)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1070)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1035)
at io.airlift.http.client.ApacheHttpClient.execute(ApacheHttpClient.java:122)
at io.airlift.airship.cli.HttpCommander.sshCoordinator(HttpCommander.java:268)
at io.airlift.airship.cli.Airship$CoordinatorSshCommand.execute(Airship.java:818)
at io.airlift.airship.cli.Airship$AirshipCommanderCommand.execute(Airship.java:276)
at io.airlift.airship.cli.Airship$AirshipCommanderCommand.execute(Airship.java:220)
at io.airlift.airship.cli.Airship$AirshipCommand.call(Airship.java:179)
at io.airlift.airship.cli.Airship.main(Airship.java:153)

@dain
Copy link
Member

dain commented Jun 11, 2013

Does "coordinator show" work for you?

@11xor6
Copy link
Contributor Author

11xor6 commented Jun 11, 2013

No, same error I believe

@11xor6
Copy link
Contributor Author

11xor6 commented Jun 11, 2013

$ airship --debug coordinator show
2013-06-11T15:53:34.337-0700 INFO main io.airlift.log.Logging Logging to stderr
Exception in thread "main" UnexpectedResponseException{request=Request{uri=http://ec2-23-22-68-45.compute-1.amazonaws.com:64000/v1/admin/coordinator, method=GET, headers={}, bodyGenerator=null}, statusCode=500, statusMessage=Cannot compute unique prefix size for collection with duplicate entries, headers={Content-Length=[1411], Content-Type=[text/html;charset=ISO-8859-1], Cache-Control=[must-revalidate,no-cache,no-store]}}
at io.airlift.http.client.JsonResponseHandler.handle(JsonResponseHandler.java:75)
at io.airlift.http.client.ApacheHttpClient$1.handleResponse(ApacheHttpClient.java:134)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1070)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1035)
at io.airlift.http.client.ApacheHttpClient.execute(ApacheHttpClient.java:122)
at io.airlift.airship.cli.HttpCommander.showCoordinators(HttpCommander.java:189)
at io.airlift.airship.cli.Airship$CoordinatorShowCommand.execute(Airship.java:720)
at io.airlift.airship.cli.Airship$AirshipCommanderCommand.execute(Airship.java:276)
at io.airlift.airship.cli.Airship$AirshipCommanderCommand.execute(Airship.java:220)
at io.airlift.airship.cli.Airship$AirshipCommand.call(Airship.java:179)
at io.airlift.airship.cli.Airship.main(Airship.java:153)

@dain
Copy link
Member

dain commented Jun 11, 2013

Oh this is an error in the provisioner/coordinator... it is getting duplicates in the list of coordinators for some reason.

@11xor6
Copy link
Contributor Author

11xor6 commented Jul 26, 2013

I dug into the code and apparently a coordinator keeps a list of "other coordinators," but the coordinator also somehow adds itself to that list causing duplicates to be returned by io.airlift.airship.coordinator.Coordinator.getCoordinators().

I don't have time to finish trying to fix this issue, but this is a report of what is actually going wrong.

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