solr-tomcat5.5 installation fails: cat: /etc/tomcat5.5/policy.d/05solr.policy: No such file or directory

Bug #212536 reported by jablko
56
This bug affects 1 person
Affects Status Importance Assigned to Milestone
solr (Ubuntu)
Invalid
High
Unassigned
tomcat5.5 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I just installed solr-tomcat5.5 from Hardy. Since it depends on tomcat5.5, tomcat5.5 was also installed. However the installation failed because Tomcat can't start:

[...]
Setting up tomcat5.5 (5.5.25-1ubuntu1) ...
 * Starting Tomcat servlet engine tomcat5.5
cat: /etc/tomcat5.5/policy.d/05solr.policy: No such file or directory
invoke-rc.d: initscript tomcat5.5, action "start" failed.
dpkg: error processing tomcat5.5 (--configure):
[...]

Investigating, I found /etc/tomcat5.5/policy.d/05solr.policy is a symlink to ../../solr/tomcat.policy (/etc/solr/tomcat.policy) and indeed, /etc/solr/tomcat.policy does not exist.

According to the filelist it should: http://packages.ubuntu.com/hardy/all/solr-tomcat5.5/filelist

However /etc/solr contains tomcat.policy.dpkg-new instead.

My guess is that once solr-tomcat5.5 is configured, tomcat.policy.dpkg-new will be renamed tomcat.policy, but it won't be configured until tomcat5.5 is installed, which fails because the init script fails because tomcat.policy.dpkg-new has not yet been renamed. Which is sort of a chicken and egg problem.

The following manual intervention made the problem go away:

% sudo cp tomcat.policy.dpkg-new tomcat.policy

Thanks for maintaining Solr in Ubuntu, Jack

Related branches

Revision history for this message
Rusty Burchfield (gicodewarrior) wrote :

happens for me too

Changed in solr:
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

solr-tomcat5.5 should not use links but place files directly in /etc/tomcat5.5/policy.d and /etc/tomcat5.5/Catalina/localhost/

Changed in solr:
importance: Undecided → High
Revision history for this message
Thierry Carrez (ttx) wrote :

That said, tomcat5.5 shouldn't fail so badly if solr-tomcat5.5 is not configured yet. This will be fixed together with bug 274365, by a new tomcat 5.5 update.

Changed in solr:
status: Confirmed → Invalid
Changed in tomcat5.5:
assignee: nobody → tcarrez
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

tomcat5.5 (5.5.26-3ubuntu2) intrepid; urgency=low

  * Don't fail install if Tomcat cannot be started (LP: #274365, LP: #212536)

 -- Thierry Carrez <thierry.carrez@xxx> Mon, 29 Sep 2008 15:03:01 +0200

Changed in tomcat5.5:
assignee: tcarrez → nobody
Revision history for this message
Daniel Holbach (dholbach) wrote :

Uploaded. Sitting in the queue.

Changed in tomcat5.5:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tomcat5.5 - 5.5.26-3ubuntu2

---------------
tomcat5.5 (5.5.26-3ubuntu2) intrepid; urgency=low

  * Don't fail install if Tomcat cannot be started (LP: #274365, LP: #212536)

 -- Thierry Carrez <email address hidden> Mon, 29 Sep 2008 15:03:01 +0200

Changed in tomcat5.5:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.