Your message dated Mon, 02 Sep 2019 12:50:05 +0000
with message-id <[email protected]>
and subject line Bug#933857: fixed in lucene-solr 3.6.2+dfsg-21
has caused the Debian Bug report #933857,
regarding solr-jetty: Jetty lacks necessary write permissions to
/var/lib/solr/data/index/
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
933857: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933857
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: solr-jetty
Version: 3.6.2+dfsg-20
Severity: important
Hi Maintainers,
After upgrdaing from Stretch to Buster I experienced the following
problem:
Jetty lacks write permissions to /var/lib/solr/data/index, which results
in exceptions for some SOLR operations.
To reproduce:
/usr/bin/curl -s http://localhost:8080/solr/update?optimize=true
journalctl -u jetty9.service:
Aug 04 14:21:42 srv1 jetty9[700]: Aug 04, 2019 2:21:42 PM
org.apache.solr.common.SolrException log
Aug 04 14:21:42 srv1 jetty9[700]: SEVERE:
org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out:
NativeFSLock@/var/lib/solr/data/index/write.lock:
java.io.FileNotFoundException: /var/lib/solr/da
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.lucene.store.Lock.obtain(Lock.java:84)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1098)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:84)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.update.UpdateHandler.createMainIndexWriter(UpdateHandler.java:101)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.update.DirectUpdateHandler2.openWriter(DirectUpdateHandler2.java:171)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:404)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.update.processor.RunUpdateProcessor.processCommit(RunUpdateProcessorFactory.java:85)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.update.processor.LogUpdateProcessor.processCommit(LogUpdateProcessorFactory.java:154)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.handler.RequestHandlerUtils.handleCommit(RequestHandlerUtils.java:107)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:52)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1602)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1701)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1668)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.Server.handle(Server.java:502)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
Aug 04 14:21:42 srv1 jetty9[700]: at
java.base/java.lang.Thread.run(Thread.java:834)
Aug 04 14:21:42 srv1 jetty9[700]: Caused by: java.io.FileNotFoundException:
/var/lib/solr/data/index/write.lock (Read-only file system)
Aug 04 14:21:42 srv1 jetty9[700]: at
java.base/java.io.RandomAccessFile.open0(Native Method)
Aug 04 14:21:42 srv1 jetty9[700]: at
java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:345)
Aug 04 14:21:42 srv1 jetty9[700]: at
java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:259)
Aug 04 14:21:42 srv1 jetty9[700]: at
java.base/java.io.RandomAccessFile.<init>(RandomAccessFile.java:214)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.lucene.store.NativeFSLock.obtain(NativeFSLockFactory.java:203)
Aug 04 14:21:42 srv1 jetty9[700]: at
org.apache.lucene.store.Lock.obtain(Lock.java:95)
Aug 04 14:21:42 srv1 jetty9[700]: ... 40 more
This seems to be very similar to Bug #919638 "solr-tomcat: Permission problems
after update to tomcat9"
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919638).
The fix is also similar:
Copy /lib/systemd/system/jetty9.service to /etc/systemd/system and modify
it by adding
ReadWritePaths=/var/lib/solr/data
to the # Security paragraph.
Restart jetty:
systemctl restart jetty9.service
BTW, the modification in /etc/solr/solr-jetty.xml attached below is due
to bug #933854 (reported by me) and is probaly unrelated to above
behaviour, I attached it for completeness.
HTH, best regards,
stephan
-- System Information:
Debian Release: 10.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages solr-jetty depends on:
ii default-jdk [java5-sdk] 2:1.11-71
ii jetty9 9.4.15-1
ii libjetty9-extra-java 9.4.15-1
ii openjdk-11-jdk [java5-sdk] 11.0.3+7-5
ii solr-common 3.6.2+dfsg-20
solr-jetty recommends no packages.
solr-jetty suggests no packages.
-- Configuration Files:
/etc/solr/solr-jetty.xml changed:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN"
"http://www.eclipse.org/jetty/configure.dtd">
<!-- Context configuration file for the Solr web application in Jetty -->
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath">/solr</Set>
<Set name="war">/usr/share/solr/web</Set>
<!-- Set the solr.solr.home system property -->
<Call name="setProperty" class="java.lang.System">
<Arg type="String">solr.solr.home</Arg>
<Arg type="String">/usr/share/solr</Arg>
</Call>
<!-- Enable symlinks -->
<!-- Disabled um Problemen beim SOLR-Start aus dem Weg zu gehen
<Call name="addAliasCheck">
<Arg>
<New
class="org.eclipse.jetty.server.handler.ContextHandler$ApproveSameSuffixAliases"/>
</Arg>
</Call>
-->
</Configure>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: lucene-solr
Source-Version: 3.6.2+dfsg-21
We believe that the bug you reported is fixed in the latest version of
lucene-solr, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Markus Koschany <[email protected]> (supplier of updated lucene-solr package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 02 Sep 2019 14:07:25 +0200
Source: lucene-solr
Architecture: source
Version: 3.6.2+dfsg-21
Distribution: unstable
Urgency: high
Maintainer: Debian Java Maintainers
<[email protected]>
Changed-By: Markus Koschany <[email protected]>
Closes: 933854 933857
Changes:
lucene-solr (3.6.2+dfsg-21) unstable; urgency=high
.
* Team upload.
* Switch to debhelper-compat = 12.
* Disable obsolete call to ContextHandler in solr-jetty9.xml.
Install solr-permissions.conf into /etc/systemd/system/jetty9.service.d/
and
override read-only permissions of Jetty9 which will allow the service to
start out-of-the-box again.
Thanks to Stephan Beirer for the report. (Closes: #933854, #933857)
* Declare compliance with Debian Policy 4.4.0.
Checksums-Sha1:
8a1cb14b025851d4a74efcd4bd047d81dcd52bca 3321 lucene-solr_3.6.2+dfsg-21.dsc
882ff69d895af04603de6303208dad2fbe4c83ec 53448
lucene-solr_3.6.2+dfsg-21.debian.tar.xz
d65211ec6deab8ecf52cc789a4c0f6f061fdaee2 12295
lucene-solr_3.6.2+dfsg-21_amd64.buildinfo
Checksums-Sha256:
c79cbc97e471117585182cc1762e1686d1582b8527ad4ed65e427cf084dfa1f6 3321
lucene-solr_3.6.2+dfsg-21.dsc
8f894baa1789cc10e3a41d7b991b670729bb21df554ee856858d94c116f5af5e 53448
lucene-solr_3.6.2+dfsg-21.debian.tar.xz
edbe7ef5423ddb3f6ddedb9b449258519bce121c09bfbeaa6153677ad9bc5f28 12295
lucene-solr_3.6.2+dfsg-21_amd64.buildinfo
Files:
c18fe8b8518176ec0a7a697dfb8872a0 3321 java optional
lucene-solr_3.6.2+dfsg-21.dsc
ab920287a05321f735e3a9302bf86ec3 53448 java optional
lucene-solr_3.6.2+dfsg-21.debian.tar.xz
ab5c382d7e091374d40afa8ee0f2db72 12295 java optional
lucene-solr_3.6.2+dfsg-21_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQKjBAEBCgCNFiEErPPQiO8y7e9qGoNf2a0UuVE7UeQFAl1tCuhfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEFD
RjNEMDg4RUYzMkVERUY2QTFBODM1RkQ5QUQxNEI5NTEzQjUxRTQPHGFwb0BkZWJp
YW4ub3JnAAoJENmtFLlRO1HkbzYP/1SOabkSl+xCU6F8LOdYUZcJgQeN+InaA6it
qnOLah5hOiRb/bWRwTD3Pd3i5GzL1oLccCTENHdKNbTv1oxkxANI2IVIjwAVWkel
DHfpF9Mju5GJ3iq7rbcludQcWR+9BjGm9dCEBSkXAHl9ATR07+5K6n4zLWr0jww3
C57BfydaJbsWjCYmwUTJe1YlZIryRXlYJNeFoyPc0JsgHqCdHPe2oOro9W1OS2Zu
EwZovtKfdnUJOEa93hurIAoKfSw5patfDJKsbl8ZRpLU3TA0zjuvNTH5e4HEKgVy
q41a1zarSWgVf/ESYC6mDLsVEwhZIr6i2Dn64pRaNml5+4bZGKA39I09cnReaSvK
7lryK6Zw8QpZLUwHwgwe/qz6rvwa/OREL3pCwKxP5mUWwsojCMEw4UPpoZrvJrN6
XtikuM/norqxcGKRZjmTNC+EievUyZS5zzl4EVfUWOhv/byZvsl8Q5iapOnc+yfD
P8RsrA0tC9Qrgwg+6neOtQ1LriutY9AkjFgkWHZb6btvlIlZl5OKmno6I0HaakVU
+H8nDEdaCjfVHBgjApAQnwGCAvbAMF4QMdXqPdnJzeowO9Kh+4VlN3QO+Rh6V4Hy
hgjj1PYRZ1B1C6UQMKIsoRVvDawzsuW6GSPXSinhfXf1YoLUr5b+IeCTb3zTV4yk
wvjUjIuT
=YtXZ
-----END PGP SIGNATURE-----
--- End Message ---