# 1.7.1 RPM warns "post remove script called with unknown argument"

**URL:** <https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693>\
**Category:** Elasticsearch\
**Created:** [August 2, 2015, 8:45pm UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693 "2015-08-02T20:45:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [August 2, 2015, 8:45pm UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693/1 "2015-08-02T20:45:13Z")

</div>

I'm running into this warning installing 1.7.1 via RPM. The RPM appears to have installed

```auto
$ ESVERSION=1.7.1
$ package=elasticsearch-$ESVERSION.noarch.rpm && wget https://download.elasticsearch.org/elasticsearch/elasticsearch/$package -O /tmp/$package && sudo rpm -Uvh /tmp/$package
--2015-08-02 20:27:24-- https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.1.noarch.rpm
Resolving download.elasticsearch.org... 174.129.211.252, 174.129.224.133, 23.21.179.119, ...
Connecting to download.elasticsearch.org|174.129.211.252|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27323419 (26M) [application/x-redhat-package-manager]
Saving to: “/tmp/elasticsearch-1.7.1.noarch.rpm”

100%[===================================================>] 27,323,419 8.56M/s in 3.0s

2015-08-02 20:27:27 (8.56 MB/s) - “/tmp/elasticsearch-1.7.1.noarch.rpm” saved [27323419/27323419]

warning: /tmp/elasticsearch-1.7.1.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY
Preparing... ########################################### [100%]
   1:elasticsearch ########################################### [100%]
post remove script called with unknown argument `1'
warning: %postun(elasticsearch-1.7.0-1.noarch) scriptlet failed, exit status 1

```

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [August 3, 2015, 1:30am UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693/2 "2015-08-03T01:30:49Z")

</div>

What distribution and version are you on?

---

<div class="post-metadata">

**Author:** ![William\_Wong](https://avatars.discourse-cdn.com/v4/letter/w/aca169/32.png) [@William\_Wong](https://discuss.elastic.co/u/William_Wong)\
**Post date:** [August 3, 2015, 3:52am UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693/3 "2015-08-03T03:52:11Z")

</div>

We have a similar problem here. RPM release with CentOS 6. The node has 1.7.0 installed but when upgrade to 1.7.1, it gave the scriptlet failed error:

[root@william ~]# rpm -Uvh elasticsearch-1.7.1.noarch.rpm  
warning: elasticsearch-1.7.1.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID d88e42b4: NOKEY  
Preparing... ########################################### [100%]  
1:elasticsearch ########################################### [100%]  
post remove script called with unknown argument `1'  
warning: %postun(elasticsearch-1.7.0-1.noarch) scriptlet failed, exit status 1

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [August 3, 2015, 4:33am UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693/4 "2015-08-03T04:33:45Z")

</div>

We're on RHEL 6 and were going from 1.7.0 to 1.7.1.

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [August 3, 2015, 6:39pm UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693/5 "2015-08-03T18:39:13Z")

</div>

Created issue [https://github.com/elastic/elasticsearch/issues/12606](https://github.com/elastic/elasticsearch/issues/12606) on Github

---

<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 5, 2017, 11:57pm UTC](https://discuss.elastic.co/t/1-7-1-rpm-warns-post-remove-script-called-with-unknown-argument/26693/6 "2017-07-05T23:57:39Z")

</div>


