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

NPE when plugins dir is inaccessible #8837

Closed
bobrik opened this issue Dec 9, 2014 · 3 comments · Fixed by #8839
Closed

NPE when plugins dir is inaccessible #8837

bobrik opened this issue Dec 9, 2014 · 3 comments · Fixed by #8839
Assignees
Labels

Comments

@bobrik
Copy link
Contributor

bobrik commented Dec 9, 2014

  1. Download fresh es.
  2. sudo mkdir plugins && sudo chmod 0700 plugins
  3. Start elasticsearch
elasticsearch-1.4.1 λ ./bin/elasticsearch
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] version[1.4.1], pid[16338], build[89d3241/2014-11-26T15:49:29Z]
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] initializing ...
{1.4.1}: Initialization Failed ...
- NullPointerException[null]

Of course, a little bit of strace or tooling of a choice can reveal EPERM, but that's not very friedly way, especially if you are in the middle of upgrade.

@s1monw
Copy link
Contributor

s1monw commented Dec 9, 2014

@dadoonet can you take a look at this please? I suspect it's already fixed in master though

@dadoonet
Copy link
Member

dadoonet commented Dec 9, 2014

@s1monw I can reproduce it on 1.x and master branches. Working on a fix. Should this go to 1.4 as well?

@bobrik Thanks for reporting it!

@s1monw
Copy link
Contributor

s1monw commented Dec 9, 2014

+1 for 1.4

dadoonet added a commit to dadoonet/elasticsearch that referenced this issue Dec 21, 2014
Steps to reproduce:

1. Download fresh es.
2. `sudo mkdir plugins && sudo chmod 0700 plugins`
3. Start elasticsearch

```
elasticsearch-1.4.1 λ ./bin/elasticsearch
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] version[1.4.1], pid[16338], build[89d3241/2014-11-26T15:49:29Z]
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] initializing ...
{1.4.1}: Initialization Failed ...
- NullPointerException[null]
```

Closes elastic#8837.
dadoonet added a commit that referenced this issue Dec 21, 2014
Steps to reproduce:

1. Download fresh es.
2. `sudo mkdir plugins && sudo chmod 0700 plugins`
3. Start elasticsearch

```
elasticsearch-1.4.1 λ ./bin/elasticsearch
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] version[1.4.1], pid[16338], build[89d3241/2014-11-26T15:49:29Z]
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] initializing ...
{1.4.1}: Initialization Failed ...
- NullPointerException[null]
```

Closes #8837.

(cherry picked from commit 90f2f1d)
dadoonet added a commit that referenced this issue Dec 21, 2014
Steps to reproduce:

1. Download fresh es.
2. `sudo mkdir plugins && sudo chmod 0700 plugins`
3. Start elasticsearch

```
elasticsearch-1.4.1 λ ./bin/elasticsearch
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] version[1.4.1], pid[16338], build[89d3241/2014-11-26T15:49:29Z]
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] initializing ...
{1.4.1}: Initialization Failed ...
- NullPointerException[null]
```

Closes #8837.

(cherry picked from commit 90f2f1d)
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Steps to reproduce:

1. Download fresh es.
2. `sudo mkdir plugins && sudo chmod 0700 plugins`
3. Start elasticsearch

```
elasticsearch-1.4.1 λ ./bin/elasticsearch
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] version[1.4.1], pid[16338], build[89d3241/2014-11-26T15:49:29Z]
[2014-12-09 12:18:59,025][INFO ][node                     ] [Piotr Rasputin] initializing ...
{1.4.1}: Initialization Failed ...
- NullPointerException[null]
```

Closes elastic#8837.

(cherry picked from commit 90f2f1d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants