Debian - Solr 无法启动并且日志文件被删除 [英] Debian - Solr doesn't start and log file is getting deleted

查看:32
本文介绍了Debian - Solr 无法启动并且日志文件被删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 http://www.eu.apache.org/dist/lucene/solr/5.3.1/solr-5.3.1.tgz

然后我用 tar zxvf solr-5.3.1.tgz 解压它,用 cd/solr-5.3.1/bin 移动到/bin/目录中以启动二进制文件

./solr start

根据教程和自述文件,首次试运行不需要更多内容.

<块引用>

等待最多 30 秒才能看到 Solr 在端口 8983 上运行

[-] 30 秒后仍然没有看到 Solr 在 8983 上监听!

tail: „/var/solr/logs/solr.log"无法打开读取

所以我创建了目录和 solr.log 文件并用

重新启动它

./solr start

solr 自动删除日志文件,报错也是一样,日志文件不可读.这是一个有趣的循环.如何找到读取日志文件的方法以了解 solr 未启动的原因?

java -version

<块引用>

java 版本1.6.0_36"

OpenJDK 运行时环境 (IcedTea6 1.13.8) (6b36-1.13.8-1~deb7u1)

OpenJDK 64 位服务器 VM(构建 23.25-b01,混合模式)

解决方案

我不认为日志文件正在被删除 - 它可能只是从未创建过.Solr 和 Lucene 5.3 需要 Java 7,因此如果 Java6 VM 是用于启动 Solr 的 JVM - 它将会失败.

您可以使用 ./solr start -f 让 Solr 在前台运行以捕获任何错误,但如果日志记录子系统从未启动,它可能没有多大用处.>

I just downloaded the newest version of Solr from http://www.eu.apache.org/dist/lucene/solr/5.3.1/solr-5.3.1.tgz

Then I unpacked it with tar zxvf solr-5.3.1.tgz moved into the /bin/ directory with cd /solr-5.3.1/bin to start the binary with

./solr start

According to tutorials and readme more is not needed for a first trial run.

Waiting up to 30 seconds to see Solr running on port 8983

[-] Still not seeing Solr listening on 8983 after 30 seconds!

tail: „/var/solr/logs/solr.log" cannot be opened for reading

So I created the directory and the solr.log file and restarted it with

./solr start

The log file is automatically deleted by solr and the error is the same, that the log file is not readable. This is a funny loop. How can I find a way to read the log file to understand why solr is not starting?

java -version

java version "1.6.0_36"

OpenJDK Runtime Environment (IcedTea6 1.13.8) (6b36-1.13.8-1~deb7u1)

OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

解决方案

I don't think the log file is being deleted - it's probably just never created. Solr and Lucene 5.3 require Java 7, so if the Java6 VM is the JVM used for starting Solr - it's going to fail.

You can use ./solr start -f to get Solr to run in the foreground to catch any errors, but if the logging sub system never starts, it might not do much good.

这篇关于Debian - Solr 无法启动并且日志文件被删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆