/var/log/cherokee/cherokee.access Not created during deb installation

Bug #346850 reported by Carlos Gil
4
Affects Status Importance Assigned to Milestone
cherokee (Ubuntu)
Confirmed
Undecided
Leonel Nunez

Bug Description

Binary package hint: cherokee

During the installation, the package does not create the /var/log/cherokee directory and the install fails when tries to change permisions to that directory.

However, the server is installed, but one is not able to run it, due to the lack of the /var/log/cherokee/cherokee.access file.

This id the error message i get from cherokee-admin

Could not launch the server

Something happened while launching the server. The error reported by the server follows:

Couldn't open '/var/log/cherokee/cherokee.access' for appending

I don't know which information to include to hel solving this bug... I'm new to this stuff However here is some info of my system

Description: Ubuntu 8.10
Release: 8.10

Package:
0.99.5-1~intrepid~ppa1

apt install log

Package: cherokee
Status: install ok half-configured
Priority: optional
Section: web
Installed-Size: 416
Maintainer: Gunnar Wolf <email address hidden>
Architecture: i386
Version: 0.99.5-1~intrepid~ppa1
Provides: httpd, httpd-cgi
Depends: libc6 (>= 2.4), libcherokee-base0 (= 0.99.5-1~intrepid~ppa1), libcherokee-server0 (= 0.99.5-1~intrepid~ppa1), libssl0.9.8 (>= 0.9.8f-5), logrotate, libcherokee-mod-server-info
Pre-Depends: libcherokee-config0 (= 0.99.5-1~intrepid~ppa1)
Recommends: libcherokee-mod-admin
Suggests: libcherokee-mod-libssl, libcherokee-mod-streaming, libcherokee-mod-geoip, cherokee-doc
Conffiles:
 /etc/logrotate.d/cherokee 98560dd74f8634c06cdc13d660112a7e
 /etc/init.d/cherokee 2b424cc471ce173a454fe6a0189abbe8
 /etc/cherokee/cherokee.conf 32b2296d9c0ce80c3649d926bc06f632
 /etc/cherokee/cherokee.conf.perf_sample 7b736d7c1c4a1d810791d8d1d274256f
Description: Very fast, flexible and easy to configure web server
 Cherokee is a very fast, flexible and easy to configure Web Server.
 It supports the widespread technologies nowadays: FastCGI, SCGI, PHP,
 CGI, TLS and SSL encrypted connections, Virtual hosts, Authentication,
 on the fly encoding, Apache compatible log files, HTTP Load Balancing,
 Data Base Balancing, SSI, Reverse HTTP Proxy and much more.
 .
 Cherokee also provides an easy to use configuration interface that
 allows to configure the server from top to bottom without having to
 edit a text configuration file.
 .
 This package contains the server and essential handlers.
Homepage: http://cherokee-project.org/

Thanks for the help!

Revision history for this message
Leonel Nunez (leonelnunez) wrote :

This is a known bug we are working on it
This is only on a clean cherokee install

Changed in cherokee (Ubuntu):
assignee: nobody → leonelnunez
status: New → Confirmed
Revision history for this message
phobie (phobie) wrote :

I ran into the same problem because I use tmpfs for /var/log and /usr/sbin/cherokee fails if one of the log-dirs does not exist.

<snip>
[06/06/2012 18:00:00.123] (error) logger_writer.c:304 - Could not open
    '/var/log/cherokee/cherokee.error' for appending | This is probably related
    to the file permissions. Please make sure that it is writable for the user
    under which Cherokee is run.
</snip>

IMHO the correct solution would be that the cherokee binary checks for logdir existance and tries to create missing ones.

As a workaround I inserted
'''if [ ! -d /var/log/cherokee ]; then mkdir /var/log/cherokee; fi'''
into line 31 of /etc/init.d/cherokee
(Just before the "start-stop-daemon --start" call)
This is only a hack because custom log-paths can be configured in /etc/cherokee/cherokee.conf !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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