Logstash could not be started because there is already another instance using the configured data d

[root@localhost logstash-7.12.1]# sudo ./bin/logstash
Using bundled JDK: /usr/local/logstash/logstash-7.12.1/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to /usr/local/logstash/logstash-7.12.1/logs which is now configured via log4j2.properties
[2021-05-21T14:11:25,816][INFO ][logstash.runner          ] Log4j configuration path used is: /usr/local/logstash/logstash-7.12.1/config/log4j2.properties
[2021-05-21T14:11:25,835][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.12.1", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc OpenJDK 64-Bit Server VM 11.0.10+9 on 11.0.10+9 +indy +jit [linux-x86_64]"}
[2021-05-21T14:11:26,550][FATAL][logstash.runner          ] Logstash could not be started because there is already another instance using the configured data directory.  If you wish to run multiple instances, you must change the "path.data" setting.
[2021-05-21T14:11:26,554][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.13.0.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]
        at usr.local.logstash.logstash_minus_7_dot_12_dot_1.lib.bootstrap.environment.<main>(/usr/local/logstash/logstash-7.12.1/lib/bootstrap/environment.rb:89) ~[?:?]
[root@localhost logstash-7.12.1]# ls
bin  config  CONTRIBUTORS  data  Gemfile  Gemfile.lock  jdk  lib  LICENSE.txt  logs  logstash-core  logstash-core-plugin-api  modules  NOTICE.TXT  tools  vendor  x-pack
[root@localhost logstash-7.12.1]# cd data
[root@localhost data]# ls -alh
总用量 4.0K
drwxr-xr-x.  5 root wheel  84 513 09:07 .
drwxr-xr-x. 14 root root  278 510 17:00 ..
drwxr-xr-x.  2 root root    6 510 17:00 dead_letter_queue
drwxr-xr-x.  2 root root   37 510 17:39 lastrun
-rw-r--r--.  1 root root    0 513 09:07 .lock
drwxr-xr-x.  3 root root   18 511 14:22 queue
-rw-r--r--.  1 root root   36 510 17:00 uuid
[root@localhost data]# rm .lock
rm:是否删除普通空文件 ".lock"?yes
[root@localhost data]# ls -alh
总用量 4.0K
drwxr-xr-x.  5 root wheel  71 521 14:21 .
drwxr-xr-x. 14 root root  278 510 17:00 ..
drwxr-xr-x.  2 root root    6 510 17:00 dead_letter_queue
drwxr-xr-x.  2 root root   37 510 17:39 lastrun
drwxr-xr-x.  3 root root   18 511 14:22 queue
-rw-r--r--.  1 root root   36 510 17:00 uuid
[root@localhost data]# 
[root@localhost data]# 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
根据引用\[1\]中的信息,logstash启动报错"could not find jruby in D:\elastic-logstash-98dc5df\vendor\jruby"是因为在指定的路径下找不到jruby。这可能是由于jruby未正确安装或路径设置不正确导致的。 要解决这个问题,您可以尝试以下几个步骤: 1. 确保您已正确安装jruby。您可以检查jruby的安装路径是否与配置文件中指定的路径一致。 2. 检查logstash的配置文件(logstash.conf)中是否正确指定了jruby的路径。您可以确认配置文件中的路径是否与实际路径匹配。 3. 如果您已正确安装jruby并且配置文件中的路径也正确,那么可能是环境变量设置不正确导致的。您可以检查您的环境变量设置,确保jruby的路径已正确添加到PATH变量中。 如果您仍然遇到问题,您可以参考引用\[2\]和引用\[3\]中的信息,尝试其他解决方法,如重新安装logstash或检查系统中是否存在其他冲突的logstash安装。 请注意,以上建议是基于提供的引用内容给出的,如果您有其他相关信息或特定环境的限制,请提供更多详细信息以便我能够给出更准确的建议。 #### 引用[.reference_title] - *1* [【Logstash】安装logstash出现 could not find jruby in xxx异常解决](https://blog.csdn.net/xianyun1992/article/details/125985694)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Error:在安装elasticsearch和logstash程序出现的报错](https://blog.csdn.net/weixin_53678904/article/details/126809119)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

SuperChen12356

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值