[Bug 212536] [NEW] solr-tomcat5.5 installation fails: cat: /etc/tomcat5.5/policy.d/05solr.policy: No such file or directory

Launchpad Bug Tracker 212536 at bugs.launchpad.net
Mon Sep 29 14:44:56 BST 2008


You have been subscribed to a public bug by Thierry Carrez (tcarrez):

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

** Affects: solr (Ubuntu)
     Importance: High
         Status: Invalid

** Affects: tomcat5.5 (Ubuntu)
     Importance: Medium
         Status: Confirmed

-- 
solr-tomcat5.5 installation fails: cat: /etc/tomcat5.5/policy.d/05solr.policy: No such file or directory
https://bugs.launchpad.net/bugs/212536
You received this bug notification because you are a member of Ubuntu Sponsors for universe, which is a direct subscriber.



More information about the Ubuntu-universe-sponsors mailing list