calendarserver doesn't start, needs twisted-calendarserver rebuild
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
twisted-calendarserver (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Calendarserver refuses to start from /etc/init.
The file /etc/default/
I can't find any logs or error messages other than:
ja@ja-desktop:~$ sudo /etc/init.
* Starting calendarserver caldavd exec python /usr/lib/
The behaviour occurs when I try to start it manually, or on boot-up.
also
calendarserver_
ImportError: No module named twisted.web2.static
the problem is that the embeded web2 is only installed for python2.6
twisted-
TESTCASE:
apt-get install calendarserver python-twisted-core
python /usr/lib/
expected output: success
failure output:
...
ImportError: No module named web2
ImportError: No module named twisted.
TESTCASE2:
apt-get install calendarserver
calendarserver_
expected output:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:
END:VCALENDAR
failure output:
Traceback (most recent call last):
File "/usr/bin/
from calendarserver.
File "/usr/lib/
from twistedcaldav.
File "/usr/lib/
from twisted.web2.static import File, loadMimeTypes
ImportError: No module named twisted.web2.static
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: calendarserver 2.4.dfsg-3
ProcVersionSign
Uname: Linux 2.6.37-11-generic i686
Architecture: i386
Date: Tue Jan 4 13:51:11 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101221.1)
PackageArchitec
ProcEnviron:
LANGUAGE=en_NZ:en
LANG=en_NZ.UTF-8
LC_MESSAGES=
SHELL=/bin/bash
SourcePackage: calendarserver
Related branches
- Ubuntu branches: Pending requested
-
Diff: 23 lines (+8/-0)2 files modifieddebian/changelog (+7/-0)
debian/rules (+1/-0)
description: | updated |
description: | updated |
summary: |
- calendarserver doesn't start, needs twisted-calendarserver + calendarserver doesn't start, needs twisted-calendarserver rebuild |
description: | updated |
affects: | calendarserver (Ubuntu) → twisted-calendarserver (Ubuntu) |
tags: | added: testcase |
tags: |
added: verification-done removed: verification-needed |
Hi,
as far as i could examine, this behaviour occurs when calling
exec python /usr/lib/ twisted- calendarserver/ bin/twistd caldav
But in /usr/lib/ twisted- calendarserver/ lib/python2. 7 is no web2-module.
(~$python --version
>Python 2.7.1+)
hope these information are helpfull when solving the problem.
....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... .....
Here are my actions and what i discovered:
Starting from command-line:
~$ /etc/init. d/calendarserve r start
@line 44 (of file /etc/init. d/calendarserve r) the following command is called
/usr/ bin/caldavd
-------------------
There, a "for-loop" is executed over python versions
"" "2.6" "2.5"
This causes eventually the invokation of
exec python /usr/lib/ twisted- calendarserver/ bin/twistd caldav
-------------------
There, in /usr/lib/ twisted- calendarserver/ bin/twistd, i wrapped a try-catch statement around the last two lines
from twisted. scripts. twistd import run
run()
-------------------
This exception-handling brings up the following exception:
Handling run-time error: No module named web2
Filename = /usr/lib/ twisted- calendarserver/ bin/twistd / Error Line # = 28 python2. 7/dist- packages/ twisted/ scripts/ twistd. py / Error Line # = 27 python2. 7/dist- packages/ twisted/ application/ app.py / Error Line # = 626 python2. 7/dist- packages/ twisted/ application/ app.py / Error Line # = 606 python2. 7/dist- packages/ twisted/ python/ usage.py / Error Line # = 226 python2. 7/dist- packages/ twisted/ application/ app.py / Error Line # = 617 twisted- calendarserver/ lib/python2. 7/site- packages/ twisted/ plugins/ caldav. py / Error Line # = 13 python2. 7/dist- packages/ twisted/ python/ reflect. py / Error Line # = 351 python2. 7/dist- packages/ twisted/ python/ reflect. py / Error Line # = 339 twisted- calendarserver/ lib/python2. 7/site- packages/ calendarserver/ sidecar/ task.py / Error Line # = 24 twisted- calendarserver/ lib/python2. 7/site- packages/ calendarserver/ provision/ root.py / Error Line # = 25
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
Filename = /usr/lib/
....... ....... ....... ....... ....... ....... ....... ....... ....... .. ....... ....... ....... ....... ....... ....... ....... ....... ..
.......
platform: x86_64
release: 11.04
kernel: 2.6.38-8-generic
calendarserver: 2.4.dfsg-6