# Upgrade procedure from 1.4.2.to 1.5

**URL:** https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745
**Category:** Logstash
**Created:** [May 15, 2015, 11:28am UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745 "2015-05-15T11:28:30Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Adams](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Chris\_Adams](https://discuss.elastic.co/u/Chris_Adams)
#### Post date: [May 15, 2015, 11:28am UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/1 "2015-05-15T11:28:30Z")

</div>

I am currently testing an ELK stack based on 1.4.2 - what steps should I take to upgrade. Isn't this a great FAQ question? 😄

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [May 15, 2015, 1:58pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/2 "2015-05-15T13:58:39Z")

</div>

I don't believe there have been any backwards incompatible changes, so as long as you make sure all the plugins you need are installed it should be quite straight forward. The usual good advice about not upgrading the entire fleet right away obviously applies here too.

---

<div class="post-metadata">

### Author: ![petre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petre/32/44797_2.png) [@petre](https://discuss.elastic.co/u/petre)
#### Post date: [May 21, 2015, 3:55pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/3 "2015-05-21T15:55:21Z")

</div>

I did the upgrade from 1.4.2 to 1.5.0 version some days ago and everything went smoothly. No change required in the configuration file and logstash is still running. The upgrade was pretty simple as I am running logstash from a docker container.

---

<div class="post-metadata">

### Author: ![DavidSims](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@DavidSims](https://discuss.elastic.co/u/DavidSims)
#### Post date: [May 21, 2015, 8:27pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/4 "2015-05-21T20:27:58Z")

</div>

I had the same question. I'm using Mint so just download and install the .deb file - it will update just fine.

---

<div class="post-metadata">

### Author: ![Monoman](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Monoman](https://discuss.elastic.co/u/Monoman)
#### Post date: [June 18, 2015, 3:10pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/5 "2015-06-18T15:10:36Z")

</div>

So is the procedure to upgrade from 1.4.x to 1.5.x to install it over itself? Are there any files to backup/restore?

---

<div class="post-metadata">

### Author: ![maximenay](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@maximenay](https://discuss.elastic.co/u/maximenay)
#### Post date: [June 18, 2015, 5:09pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/6 "2015-06-18T17:09:39Z")

</div>

I've been trying to upgrade to 1.5.2 from 1.4.2 as well. The upgrade went smoothly, but I couldn't use the new (and supposedly appropriate) version of aws-cloud.  
When I try to create a TransportClient with aws-cloud 2.5.1, I get the following exception:

```
org.elasticsearch.common.inject.CreationException: Guice creation errors:

1) A binding to org.elasticsearch.cloud.aws.AwsS3Service was already configured at _unknown_.
  at _unknown_

2) A binding to org.elasticsearch.cloud.aws.AwsEc2Service was already configured at _unknown_.
  at _unknown_

2 errors
	at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:344)
	at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:151)
	at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
	at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
	at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
	at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
	at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:187)
	at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:123)
...
```

---

<div class="post-metadata">

### Author: ![pals14in](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@pals14in](https://discuss.elastic.co/u/pals14in)
#### Post date: [July 17, 2015, 6:01pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/7 "2015-07-17T18:01:25Z")

</div>

I have cluster to 1.4.2 version but I am running "node client" on ES 1.5.2 in same cluster ? I have been seeing my nodes becomes unresponsive sometime randomly. Is this could be root cause for it ?

Any suggestion would help.

---

<div class="post-metadata">

### Author: ![Monoman](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Monoman](https://discuss.elastic.co/u/Monoman)
#### Post date: [July 30, 2015, 2:46pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/8 "2015-07-30T14:46:21Z")

</div>

So there are no generic (or distro specific) step by step upgrade directions

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 30, 2015, 3:54pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/9 "2015-07-30T15:54:05Z")

</div>

No, there's no special upgrade procedure.

---

<div class="post-metadata">

### Author: ![Monoman](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Monoman](https://discuss.elastic.co/u/Monoman)
#### Post date: [August 3, 2015, 3:20pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/10 "2015-08-03T15:20:42Z")

</div>

Please pardon my ignorance but I'm not very \*ix literate. I'm simply trying to find out how I should upgrade LS to keep it up to date. A preferred method if there is one.

- Install new versions in another folder and copy over key files?
- Install new version over the old and the settings will be retained?
- Backup config files, install new version over the old, recopy config files back?
- ???

I'm not sure why it is so hard to get this question answered. At this point, without any guidance, I am leaning towards the first method.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [August 3, 2015, 4:42pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/11 "2015-08-03T16:42:40Z")

</div>

I guess we've been assuming that you asked about any Logstash-specific upgrade concerns, not how to unpack an archive or install a package.

Normally both configuration files and state files (like sincedb, in the Logstash case) would be stored in a location separate from the program files, in which case most of your questions are moot. If you store configuration files and state files together with the program files, stop doing that. You should _strongly_ consider using a package management system like APT or RPM since it'll take care of all that for you, plus set up an init script, create a user with home directory, create a log directory, set up log rotation, and so on.

> Install new versions in another folder and copy over key files?

That works, but again, there shouldn't be any key files there.

> Install new version over the old and the settings will be retained?  
> Backup config files, install new version over the old, recopy config files back?

If "install over the old" means "unpack the the .tar.gz or .zip into the same directory" then don't do that. Any files that have disappeared between the releases won't be removed. Unpack the archive into a new location.

---

<div class="post-metadata">

### Author: ![Monoman](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Monoman](https://discuss.elastic.co/u/Monoman)
#### Post date: [August 3, 2015, 6:28pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/12 "2015-08-03T18:28:13Z")

</div>

Thank you very much.

Honestly, I had installed it both ways (w APT & w/o APT). Again, I'm not very \*ix literate so I wanted to be sure I was not misunderstanding the correct way to upgrade.

---

<div class="post-metadata">

### Author: ![rastro](https://avatars.discourse-cdn.com/v4/letter/r/b782af/32.png) [@rastro](https://discuss.elastic.co/u/rastro)
#### Post date: [August 24, 2015, 5:52pm UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/13 "2015-08-24T17:52:29Z")

</div>

I just tried the update via yum, and it puked:

```
Processing Dependency: logstash < 1.4.3 for package: logstash-contrib-1.4.2-1_efd53ef.noarch

```

I understand that contrib has is now a plugin, so it has different installation instructions that before.

But what about upgrades? Do I need to remove the old logstash-contrib package?

I don't see this covered in any upgrade documentation.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 5:31am UTC](https://discuss.elastic.co/t/upgrade-procedure-from-1-4-2-to-1-5/745/14 "2017-07-06T05:31:04Z")

</div>


