Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Broken installation on Ubuntu 10.04 Lucid #668

Closed
Borkason opened this Issue Mar 24, 2013 · 23 comments

Comments

Projects
None yet
1 participant
Member

Borkason commented Mar 24, 2013

Original author: marek.su...@gmail.com (May 05, 2010 12:30:03)

What steps will reproduce the problem?

I've installed cherokee web server v0.99.49 and i registered some problems.
When i want to start cherokee, it prints only error message saying Broken
installation

cherokee 0.99.49
cherokee-worker /usr/sbin 0.99.48

Original issue: http://code.google.com/p/cherokee/issues/detail?id=847

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on May 05, 2010 13:48:55
Can you please post the error message.

I've installed cherokee 0.99.49 on some ubuntu lucid and no problems found here

Member

Borkason commented Mar 24, 2013

From marek.su...@gmail.com on May 05, 2010 14:42:39
It seems everything's correctly installed and running but if i start cherokee-admin
and try to start server it prints only error message: ERROR: Broken installation
detected, then when i type cherokee in terminal and hit enter, it prints:

ERROR: Broken installation detected
Cherokee (cherokee) 0.99.49
Cherokee-worker (/usr/sbin/cherokee-worker) 0.99.48

When i try to start cherokee-worker it prints:

05/05/2010 16:40:00.710 server.c:786 - Unable to raise file descriptor
limit to 4096
05/05/2010 16:40:00.710 bind.c:284 - Could not bind() port=80 (UID=1000,
GID=1000)

Everything worked correctly yesterday but today when i updated ubuntu kernel and
cherokee too, from 0.99.48 to 0.99.49 it is broken, i already tried to remove it and
install it again, but it always prints this messages. What do you think about it ?

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on May 05, 2010 16:39:38
port=80 UID=1000 GID=1000 tells me that you are not running the admin as root or with
sudo ..

Look:

leonel@leonel-laptop:~$ cherokee
05/05/2010 10:38:50.297 server.c:790 - Unable to raise file descriptor
limit to 4096
05/05/2010 10:38:50.297 bind.c:284 - Could not bind() port=80 (UID=1000,
GID=1000)

and with sudo :

leonel@leonel-laptop:~$ sudo cherokee
Cherokee Web Server 0.99.49 (May 5 2010): Listening on ports ALL:80,
ALL:443(TLS), with TLS support via libssl, IPv6 enabled, using epoll, 4096
fds system limit, max. 2041 connections, caching I/O, 10 threads, 204
connections per thread, standard scheduling policy

Member

Borkason commented Mar 24, 2013

From marek.su...@gmail.com on May 05, 2010 18:18:31
i'm sorry.. but there's already error message, even if i run it as sudo, if i run
sudo cherokee, the output is:

skfist@ubuntu:~$ sudo cherokee
ERROR: Broken installation detected
Cherokee (cherokee) 0.99.49
Cherokee-worker (/usr/sbin/cherokee-worker) 0.99.48

and if i run sudo cherokee-worker i get an error message saying:

05/05/2010 20:12:31.482 spawner.c:87 - Could not initialize SHM '/cherokee-
spawner-2116': No such file or directory
Cherokee Web Server 0.99.48 (May 3 2010): Listening on port ALL:80, TLS
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, 10 threads, 204 connections per thread, standard
scheduling policy

and then server runs, but php is not working properly and when i close terminal the
server stop working but i think the most important is the first output above, look at
versions 0.99.48 and 0.99.49, oh i have had forgotten to say that i used ppa to
install, maybe the repository is not working properly or something is broken in
repository, what do you think about this strange behavior ??

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on May 05, 2010 19:07:01
You need to start cherokee with:

sudo /etc/init.d/cherokee start

For the wrong versions can you please
backup your cherokee.conf then remove cherokee with:

apt-get remove libcherokee*

then install again with

apt-get install cherokee

Member

Borkason commented Mar 24, 2013

From marek.su...@gmail.com on May 05, 2010 19:25:13
skfist@ubuntu:/tmp$ sudo /etc/init.d/cherokee start
Starting web server: cherokee .

but nothing happened, server didn't start

i already tried to remove everything (libcherokee*) but after installation nothing
has happened, i get an error message saying:

skfist@ubuntu:/tmp$ sudo cherokee
ERROR: Broken installation detected
Cherokee (cherokee) 0.99.49
Cherokee-worker (/usr/sbin/cherokee-worker) 0.99.48

i don't know what the problem could be

Member

Borkason commented Mar 24, 2013

From alobbs on May 05, 2010 19:39:01
Just to be completely sure, there is no /usr/local/sbin/cherokee, right?

Member

Borkason commented Mar 24, 2013

From marek.su...@gmail.com on May 05, 2010 19:43:02
yes you are right, there is no cherokee binary in folder you described, i started also
install cherokee from sources but i have uninstalled it after that try when i realised
that it doesn't work too, i'm searching some logs from cherokee, but i can't find any

Member

Borkason commented Mar 24, 2013

From marek.su...@gmail.com on May 05, 2010 23:54:56
skfist@ubuntu:/var/log/cherokee$ sudo cat cherokee.error
05/05/2010 20:10:42.927 fdpoll-epoll.c:140 - epoll_ctl: ep_fd 14, fd 3: 'Bad
file descriptor'

Member

Borkason commented Mar 24, 2013

From marek.su...@gmail.com on May 06, 2010 20:59:12
now its running fine, after cleaning every file and directory which was found by
regular expression cherokee, it was a lot of libs and some other junk files which
were not deleted by update proccess (i think) and there was collision in library
versions maybe

Member

Borkason commented Mar 24, 2013

From tah...@gmail.com on May 25, 2010 09:46:49
A couple of releases have passed since this bug was opened. Has anyone been able to
reproduce this problem with current versions?

If not, I think we should close this one.

Member

Borkason commented Mar 24, 2013

From david.bo...@gmail.com on June 03, 2010 14:50:47
Yes I am.
I've juste install a lucid and cherokee from mirrors, more elements above ..

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"

$ dpkg -l |grep cherokee
ii cherokee 0.99.39-4.1
ii libcherokee-base0 0.99.39-4.1
ii libcherokee-client0 0.99.39-4.1
ii libcherokee-config0 0.99.39-4.1
ii libcherokee-mod-admin 0.99.39-4.1
ii libcherokee-server0 0.99.39-4.1

$ sudo /etc/init.d/cherokee start
[sudo] password for david:
Starting web server: cherokee
Warning: Fake start-stop-daemon called, doing nothing.
.

$ netstat -na |grep "LISTEN "
tcp6 0 0 :::9000 :::* LISTEN
tcp6 0 0 :::10000 :::* LISTEN

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on August 21, 2010 20:46:49
Was the ubuntu installation interrupted ??
or a package installation was aborted ??

Can you try with:

apt-get install dpkg --reinstall

to see if it fixes the problem

Member

Borkason commented Mar 24, 2013

From gerdusvanzyl@gmail.com on November 01, 2010 21:34:32
I had the exact same problem, a fix that worked for me was to change
PATH=/sbin:/bin:/usr/sbin:/usr/bin
to
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
which is the output of echo $PATH

running /etc/init.d/cherokee start then worked but it did not start after a reboot

I then did

rc-update.d -f cherokee remove
rc-update.d -f cherokee defaults 60 (rc-update.d -f cherokee defaults with the 60 didn't work)

Not sure why it worked but it did.

Member

Borkason commented Mar 24, 2013

From gerdusvanzyl@gmail.com on November 01, 2010 21:36:56
forgot to mention this was cherokee 1.0.8 using the launchpad ppa on ubuntu 10.04.1

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on November 02, 2010 01:12:43
Do you have a instalation made from tar.gz and installed on /usr/local ??
The cherokee binaries from the deb package get installed on /usr/bin /usr/sbin not in /usr/local/bin

Member

Borkason commented Mar 24, 2013

From gerdusvanzyl@gmail.com on November 02, 2010 07:39:50
The cherokee binaries are under /usr/sbin; tried reverting the PATH to the default but then it doesn't work. Also tried putting /usr/sbin first in PATH but that didn't work either. weird I know.

Typo in my comment #​16 (Github: #93) rc-update.d should of course be update-rc.d

The machine is a xen instance if that makes a difference.

Member

Borkason commented Mar 24, 2013

From buxteh...@gmail.com on November 18, 2010 04:17:41
I am having issues on Ubuntu 10.10. I installed cherokee (using cherokee-webserver-ppa-maverick.list) and it was working fine. Now after a reboot using Ubuntu commands doesn't bring up Cherokee. If I manually execute the commands from the startup script, cherokee runs just fine. See below for some steps:

$ sudo updatedb
$ locate cherokee | grep cherokee$
/etc/cherokee
/etc/init.d/cherokee
/etc/logrotate.d/cherokee
/etc/rc0.d/K20cherokee
/etc/rc1.d/K20cherokee
/etc/rc2.d/S20cherokee
/etc/rc3.d/S20cherokee
/etc/rc4.d/S20cherokee
/etc/rc5.d/S20cherokee
/etc/rc6.d/K20cherokee
/usr/lib/cherokee
/usr/sbin/cherokee
/usr/share/cherokee
/usr/share/doc/cherokee
/var/lib/cherokee
/var/lib/update-rc.d/cherokee
/var/log/cherokee

$ sudo service cherokee status
cherokee web server status: Not running .

$ sudo service cherokee start
Starting web server: cherokee .

$ sudo service cherokee status
cherokee web server status: Not running .

$ sudo /etc/init.d/cherokee start
Starting web server: cherokee .

$ sudo /etc/init.d/cherokee status
cherokee web server status: Not running .

$ sudo start-stop-daemon --start --oknodo --pidfile /var/run/cherokee.pid --exec /usr/sbin/cherokee -b

$ sudo /etc/init.d/cherokee status
cherokee web server status: Running .

I've attached an strace of root running "/etc/init.d/cherokee start" - maybe there is something in that?

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on November 18, 2010 12:31:20
hello:

What cherokee packages do you have installed ??

All is working where with maverick and cherokee 1.0.9 from PPA

Member

Borkason commented Mar 24, 2013

From buxteh...@gmail.com on November 18, 2010 23:07:19
Hi there, running Maverick and cherokee 1.0.9-1. I found something interesting, but am not sure how to debug further because the the cherokee startup script doesn't throw any errors.

I purged cherokee and dependencies and reinstalled. No dramas, init script works fine, restarts work fine too.

I then added a Trac instance through the wizard and that's when the problem occurs as per my previous post.

So I am guessing that it has something to do with starting up the Trac daemon - any ideas how to dig further on this one?

FYI:
$ dpkg -l | grep cherokee
ii cherokee 1.0.9-1mavericppa1
ii libcherokee-base0 1.0.9-1mavericppa1
ii libcherokee-client0 1.0.9-1mavericppa1
ii libcherokee-config0 1.0.9-1mavericppa1
ii libcherokee-mod-admin 1.0.9-1mavericppa1
ii libcherokee-mod-rrd 1.0.9-1mavericppa1
ii libcherokee-server0 1.0.9-1mavericppa1

$ cat /etc/cherokee/cherokee.conf | grep trac
vserver!20!nick = trac.local.loc
vserver!20!rule!20!document_root = /usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/htdocs
source!1!interpreter = tracd --single-env --daemonize --protocol=scgi --hostname=127.0.0.1 --port=34768 /home/buxtehude/trac_dir/wildcard/trac

Member

Borkason commented Mar 24, 2013

From lnu...@gmail.com on November 19, 2010 01:16:59
can you please post the result of this command:

sudo cherokee

Thank you

Member

Borkason commented Mar 24, 2013

From buxteh...@gmail.com on November 19, 2010 02:51:22
See below - the 2 lines about trac launching are displayed once I access the site

$ sudo cherokee
Cherokee Web Server 1.0.9 (Nov 13 2010): Listening on port ALL:80, TLS disabled,
IPv6 enabled, using epoll, 4096 fds system limit, max. 2041 connections,
caching I/O, 10 threads, 204 connections per thread, standard scheduling
policy
PID 4205: launched '/bin/sh -c exec tracd --single-env --daemonize --protocol=scgi --hostname=127.0.0.1 --port=34768 /home/buxtehude/trac_dir/wildcard/trac' with uid=33, gid=33, env=inherited
PID 4205: exited re=0

Thanks for your help.

Member

Borkason commented Mar 24, 2013

From jchu...@gmail.com on January 22, 2011 07:43:35
I too have the issue mentioned in comment 20, and have for the last several versions. I am currently on Ubuntu 10.10 and cherokee 1.0.18. Using the instructions in comment 16 and typo correction in 19, I was able to fix it.

@Borkason Borkason closed this Aug 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment