caldendarserver requires postgres binaries in path

Bug #1399975 reported by Ryan Ritterson
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
calendarserver (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In calendarserver 5.3 on Ubuntu 14.10, the launch script does not properly launch the server using the default configuration files and the init.d script. This is because calendarserver spawns a child postgreSQL server by default. However, the server expects the binaries located in /usr/lib/postgressql/x.y/bin to be in the path when launching, and exits with an error if they are not. See https://www.calendarserver.org/ticket/397 for an error log under that condition.

An easy solution is to edit the calendarserver init script and add the appropriate directory to the path. (See attached init script for the modification). However, my attachment should not be considered a patch as the path is postgreSQL version specific. A more clever programmer could add a few lines to the init script to determine the path, then add it.

Per the linked ticket on www.calendarserver.org, this bug appears to have existed since at least 10.04

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: calendarserver 5.2+dfsg-1
ProcVersionSignature: Ubuntu 3.16.0-25.33-generic 3.16.7
Uname: Linux 3.16.0-25-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Sat Dec 6 11:36:44 2014
InstallationDate: Installed on 2014-12-05 (0 days ago)
InstallationMedia: Ubuntu-Server 14.10 "Utopic Unicorn" - Release amd64 (20141022.2)
ProcEnviron:
 TERM=xterm-256color
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 XDG_RUNTIME_DIR=<set>
SourcePackage: calendarserver
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.caldavd.caldavd.plist: [modified]
modified.conffile..etc.default.calendarserver: [modified]
mtime.conffile..etc.caldavd.caldavd.plist: 2014-12-06T11:01:09.819860
mtime.conffile..etc.default.calendarserver: 2014-12-06T08:22:46.171443
mtime.conffile..etc.init.d.calendarserver: 2014-12-06T09:33:52.195770

Revision history for this message
Ryan Ritterson (rrpublic) wrote :
Revision history for this message
Ryan Ritterson (rrpublic) wrote :

Ironically, I just realized that calendarserver does not depend on the postgreSQL, though it should be, or at least, postgresql should be a recommended package.

tags: added: calendarserver
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in calendarserver (Ubuntu):
status: New → Confirmed
Revision history for this message
Battant (mparchet) wrote :

Hello,

I have also this problem whith calendarserver 7.0 on ubuntu 16.04 64 bit lts

Best regards

Battant

Revision history for this message
Battant (mparchet) wrote :

Hello,

Here is my configuration :

lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04

uname -a
Linux mparchet-W240EU-W250EUQ-W270EUQ 4.4.0-18-generic #34-Ubuntu SMP Wed Apr 6 14:01:02 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Package affect :

apt-cache policy calendarserver
calendarserver:
  Installed: 7.0+dfsg-2
  Candidate: 7.0+dfsg-2
  Version table:
 *** 7.0+dfsg-2 100
        100 /var/lib/dpkg/status
     7.0+dfsg-1 500
        500 http://archive.ubuntu.csg.uzh.ch/ubuntu xenial/universe amd64 Packages

Thanks for your support

Best regards

Battant

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.