jetty does not restart properly (test for already running is inverted for restart action)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jetty (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: solr-jetty
1. Description: Ubuntu 10.04.1 LTS
Release: 10.04
$ dpkg -s solr-jetty
Package: solr-jetty
Status: install ok half-configured
Priority: optional
Section: web
Installed-Size: 60
Maintainer: Ubuntu MOTU Developers <email address hidden>
Architecture: all
Source: solr
Version: 1.2.0+ds2-5ubuntu1
Depends: solr-common (>= 1.2.0+ds2-
Conflicts: solr-tomcat5.5
Description: enterprise search server based on Lucene - Jetty integration
Solr is an open source enterprise search server based on the Lucene
Java search library, with XML/HTTP and JSON APIs, hit highlighting,
faceted search, caching, replication, and a web administration
interface. It runs in a Java servlet container such as Tomcat.
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: solr-jetty 1.2.0+ds2-5ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-24-generic i686
Architecture: i386
Date: Thu Sep 30 09:47:22 2010
ErrorMessage: subprocess installed post-installation script returned error exit status 1
PackageArchitec
SourcePackage: solr
Title: package solr-jetty 1.2.0+ds2-5ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
I reproduced it. If jetty is laredy running, solr-jetty postinst tries to:
invoke-rc.d --quiet jetty restart
But that returns 1 (jetty is already running), so the postinst fails.
The workaround is to stop jetty (sudo service jetty stop) before installing solr-jetty.