Logstash service not starting

i have an issue similar to

https://www.elastic.co/guide/en/logstash/current/running-logstash.html#running-logstash-upstart

os: Ununtu Mate 14.04

logstash service not starting
sudo initctl start logstash
result: unknown job logstash

Java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Logstash was workiing in the morning but suddenly i have this error any clues
regards
Rajesh

Hi,
Could you include the log file, without it I don't think somebody can help you.

Thx

The logs from /var/log/logstash/logstash-plain.log

[2017-06-01T11:09:50,217][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Path "/usr/share/logstash/data/queue" must be a writable directory. It is not writable.>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:420:in validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:202:invalidate_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:118:in validate_all'", "org/jruby/RubyHash.java:1342:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:117:in validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:210:inexecute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:183:inrun'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/usr/share/logstash/lib/bootstrap/environment.rb:71:in(root)'"]}
[2017-06-01T11:09:58,953][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#<ArgumentError: Path "/usr/share/logstash/data/queue" must be a writable directory. It is not writable.>, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:420:in validate'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:202:invalidate_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:118:in validate_all'", "org/jruby/RubyHash.java:1342:ineach'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:117:in validate_all'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:210:inexecute'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'", "/usr/share/logstash/logstash-core/lib/logstash/runner.rb:183:inrun'", "/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'", "/usr/share/logstash/lib/bootstrap/environment.rb:71:in(root)'"]}

What does your config look like?

Wow 2 log entries, so much.
Are you sure it was working, how log run ? For me i look some config issue, not really starting.

PS: please format the logs wiht

quote text

make forum more readable.

PTSO - Had a look at the config. the config.d looked pretty empty. Not sure how. I have not meddled with it. Will reformat the log The same log is continually appearing. has not stopped till now!! (FYI)

[2017-06-01T11:09:58,953][FATAL][logstash.runner ] An unexpected error occurred! {:error=>#, :backtrace=>["/usr/share/logstash/logstash-core/lib/logstash/settings.rb:420:in validate'",
"/usr/share/logstash/logstash-core/lib/logstash/settings.rb:202:invalidate_value'", "/usr/share/logstash/logstash-core/lib/logstash/settings.rb:118:in validate_all'",
"org/jruby/RubyHash.java:1342:ineach'",
"/usr/share/logstash/logstash-core/lib/logstash/settings.rb:117:in validate_all'",
"/usr/share/logstash/logstash-core/lib/logstash/runner.rb:210:inexecute'",
"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:67:in run'",
"/usr/share/logstash/logstash-core/lib/logstash/runner.rb:183:inrun'",
"/usr/share/logstash/vendor/bundle/jruby/1.9/gems/clamp-0.6.5/lib/clamp/command.rb:132:in run'",
"/usr/share/logstash/lib/bootstrap/environment.rb:71:in(root)'"]}
[/quote]

Trust this helps!!

Well if you don't have any config how can logstash work ? I don't think zero config is supported. Try with a basic config to start it.

1 Like

btw. Were you talking about logstash.yml??
The only thing that is uncommented is
"path.config: /etc/logstash/conf.d"

but this folder is empty. There are other config files to read from db etc., under etc/logstash..

To add on to the above, just been 15 days since i started with this new version and for the first tim e kibana.

Sorry if I sound foolish. Any help appreciated.

regards

Can anybody help on this please. My configuration is there on logstash.yml. Basicall only the path to the config file is uncommented.
configuration files that was able to read data from Oracle servers are still intact, no change.
Have restarted the server, Elastic and kibana has started. still logstash is not starting

I am not sure what else to try

regards
Rajesh

What does your config look like?

Thanks warkolm.
I dont know what i did logstash is working. My mistake . I was working on ubuntu mate 14.04. there logstash does not work as a service. I just shifted from 16.04 due to lack of space.

I restarted the machine, I suppose I did not have to do anything, just wait. The time taken for each of the service to start was more and hence the confusion. Thanks to everyones help and time

Very much appreciated.

regards
Rajesh

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