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

Update to Elasticsearch 0.90.3 #31

Closed
dadoonet opened this issue Aug 9, 2013 · 8 comments
Closed

Update to Elasticsearch 0.90.3 #31

dadoonet opened this issue Aug 9, 2013 · 8 comments
Assignees
Milestone

Comments

@dadoonet
Copy link
Member

dadoonet commented Aug 9, 2013

Issue reported in https://groups.google.com/d/msg/elasticsearch/bpdetIvIg5M/cMAUGwhRVf0J

No problem with elasticsearch 0.90.2 and the cloud-aws 1.12.0 plugin (other than the usual node discovery flakiness), but I'm unable to get elasticsearch 0.90.3 to start:

Initialization Failed ...

1) IllegalStateException[This is a proxy used to support circular references involving constructors. The object we're proxying is not constructed yet. Please wait until after injection has completed to use this object.]2) NoSuchMethodError[org.elasticsearch.discovery.zen.ZenDiscovery.<init>(Lorg/elasticsearch/common/settings/Settings;Lorg/elasticsearch/cluster/ClusterName;Lorg/elasticsearch/threadpool/ThreadPool;Lorg/elasticsearch/transport/TransportService;Lorg/elasticsearch/cluster/ClusterService;Lorg/elasticsearch/node/settings/NodeSettingsService;Lorg/elasticsearch/cluster/node/DiscoveryNodeService;Lorg/elasticsearch/discovery/zen/ping/ZenPingService;)V]

Do I need to wait for a new version of cloud-aws, or is there some other problem here?

My /etc/elasticsearch/elasticsearch.yml:

cluster.name: foo

plugin.mandatory: cloud-aws,lang-javascript

cloud:
    aws:
        access_key: ********
        secret_key: ********
        region: us-east-1

discovery:
    type: ec2
    ec2:
        ping_timeout: 15s

gateway:
    type: s3
    s3:
        bucket: bar
@ghost ghost assigned dadoonet Aug 9, 2013
@simonmorley
Copy link

For the record, we also see this error with 0.90.3 and aws 1.15.0

Using .14 works for us with 0.90.3

@dadoonet
Copy link
Member Author

What do you mean by 1.15.0? This version is not released and is only in master.
As far as I know, it should be exactly the same version as 1.14.0.

@simonmorley
Copy link

I know, was just playing. Certainly didn't work for me though.

@jacobwgillespie
Copy link

For anyone (like me) who is seeing this error, my fix was to update to the correct version (as indicated by the README) - I accidentally updated Elasticsearch to 1.5.0 without updating elasticsearch-cloud-aws.

@rabidscorpio
Copy link

@jacobwgillespie ha, thanks for pointing this out, I did the same thing!

jhmartin pushed a commit to jhmartin/elasticsearch-cloud-aws that referenced this issue Jul 13, 2015
Updated README.md to match changes made in elastic#24
@hjc
Copy link

hjc commented Aug 4, 2015

I just ran into this issue today, and it had nothing to do with mis-matched ES/Plugin versions. This error is also thrown if your config values for the cloud-aws plugin are not correct.

What I had:

cloud:
  aws:
    access_key: XXX
    secret: XXX
    region: us-east-1

What I needed:

cloud:
  aws:
    access_key: XXX
    secret_key: XXX
    region: us-east-1

The major difference between the two of them being cloud.aws.secret in the first, non-working example; which is changed to cloud.aws.secret_key in the second, working example.

So, apparently, this exact same error is what you'll get if you've completely borked your cloud-aws config. So, keep that in mind!

Maybe in a future release, if you could detect a bad config state like this (access key is present, but secret key is missing) and throw an error, that would be pretty great. Alternatively, implementing it so that an error is thrown if any unknown string appears in the cloud.aws namespace would work just as well (so, an error would have been thrown because cloud.aws.secret is not a recognized and valid key), but I don't know how feasible that is to do. Just some food for thought!

Hopefully someone finds this useful!

@dadoonet
Copy link
Member Author

dadoonet commented Aug 4, 2015

@hjc1710 I think it's useful and I agree that we should better catch that kind of error.
May be you would like to open an issue in elasticsearch repo now that we moved aws plugin there?

Thanks!

@hjc
Copy link

hjc commented Aug 4, 2015

Awesome, thanks @dadoonet! I did not know that this plugin had moved and the official repo is elastic/elasticsearch now. Anyway, I opened up an issue there for this very feature, after doing a bit of rewording and thinking. If you guys need my help for that feature (for whatever reason), I'm happy to help!

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

No branches or pull requests

5 participants