Logstash upgrade appears to fail with apt package installer. After updating apt sources to latest 2.4 for Logstash, and then performing update and upgrade, it does not appear in upgrade list and says on latest version even though a version check reveals 2.1.1
Question
Unsure how to verify upgrade to latest version on Ubuntu 14.04.x LTS using apt package installer. I am on ES 2.4.0 and want logstash and plugins to be on latest too.
Details
Check version
/opt/logstash/bin/logstash -V
logstash 2.1.1
Attempt to install again using package manager
sudo apt-get install logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
logstash is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Verify using latest sources file for repo
sudo cat /etc/apt/sources.list.d/packages_elastic_co_logstash_2_4_debian.list
deb http://packages.elastic.co/logstash/2.4/debian stable main
Should I purge on every box and re-run playbooks (Ansible) to install? I am just confused why apt-get update/upgrade after updating sources didn't work.
I perform a purge and have to manually delete 4 directories. Thereafter the older version disappears from the cache? Yes, I have done apt-get updates/upgrades and was expected this to update along with the ES/Beats updates as we update the pinned versions and sources. I only found out yesterday this was not updating like all the other packages.
sudo apt-get purge logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
logstash*
0 upgraded, 0 newly installed, 1 to remove and 16 not upgraded.
After this operation, 129 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 118026 files and directories currently installed.)
Removing logstash (1:2.1.1-1) ...
Purging configuration files for logstash (1:2.1.1-1) ...
dpkg: warning: while removing logstash, directory '/etc/logstash/conf.d' not empty so not removed
dpkg: warning: while removing logstash, directory '/opt/logstash/bin' not empty so not removed
dpkg: warning: while removing logstash, directory '/var/lib/logstash' not empty so not removed
dpkg: warning: while removing logstash, directory '/var/log/logstash' not empty so not removed
ubuntu@app1:~$ sudo rm -rf /opt/logstash/
ubuntu@app1:~$ sudo rm -rf /var/lib/logstash/
ubuntu@app1:~$ sudo rm -rf /var/log/logstash/
ubuntu@app1:~$ sudo rm -rf /etc/logstash/conf.d/
I purged every box, then deleted the mentioned directories and re-installed and now all are 2.4.0. There must be something odd where updates didn't occur or multiple versions (as noted in original cache output) so a heads up to others. I'm hoping not same issue on future updates but unsure cause.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.