Install logstash 5.1.2 from repository fails

(Andrei) #1

ubuntu 14.04
configured logstash repo: deb stable main

apt-get install logstash
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-105 linux-headers-3.13.0-105-generic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/95.3 MB of archives.
After this operation, 175 MB of additional disk space will be used.
Selecting previously unselected package logstash.
(Reading database ... 155974 files and directories currently installed.)
Preparing to unpack .../logstash_1%3a5.1.2-1_all.deb ...
Unpacking logstash (1:5.1.2-1) ...
Setting up logstash (1:5.1.2-1) ...
sed: can't read /etc/logstash/logstash.yml: No such file or directory
/etc/logstash/startup.options is not a file path
Errno::EISDIR: Is a directory - /etc/default/
write at org/jruby/
write at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/installer.rb:32
install_files at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/installer.rb:23
call at org/jruby/
yield at org/jruby/
files at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/platform/upstart.rb:10
call at org/jruby/
each at file:/usr/share/logstash/vendor/jruby/lib/jruby.jar!/jruby/kernel/jruby/generator.rb:246
install_files at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/installer.rb:18
run_human at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/cli.rb:174
execute at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/pleaserun-0.0.27/lib/pleaserun/cli.rb:130
run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67
run at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132
(root) at /usr/share/logstash/lib/systeminstall/pleasewrap.rb:12
{:timestamp=>"2017-01-13T16:22:08.891000+0000", :message=>"No platform selected. Autodetecting...", :platform=>"upstart", :version=>"1.12.1", :level=>:warn}
{:timestamp=>"2017-01-13T16:22:08.942000+0000", :message=>"Writing file", :destination=>"/etc/init/.conf"}
{:timestamp=>"2017-01-13T16:22:08.951000+0000", :message=>"Writing file", :destination=>"/etc/default/"}
Unable to install system startup script for Logstash.

ls -la /etc/logstash

total 16
drwxrwxr-x 3 root root 4096 Jan 13 16:56 .
drwxr-xr-x 97 root root 4096 Jan 13 16:56 ..
drwxrwxr-x 2 root root 4096 Jan 11 20:36 conf.d
-rw-rw-r-- 1 root root 1334 Jan 11 20:31

(Andrei) #2

the ugly solution is to unpack /etc/logstash from deb file then apt-get install logstash

(Aaron Mildenstein) #3

What was in /etc/logstash before you attempted the install? Was this an upgrade? Was there an older version of Logstash in place?

(Andrei) #4

initially system was running an old 2.3 version , cleaned apt-get remove and also any custom config , changed repo, apt-get update , then apt-get install .
Maybe the deb format is not good for the version of ubuntu in my case.

(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.