calendarserver package broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calendarserver (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi
there are a number of things wrong with the current calendarserver package (7.0+dfsg-2) on Ubuntu 16.04 LTS server.
1. calendarserver can only work with a database backend, support for the files backend has been dropped upstream according to the docs. Yet, there is no dependency on any database, in particular postgresql.
2. The twisted framework seems to be missing gcc: "unable to execute 'x86_64-
3. There appears to be no method or script to create the required DB user and define the schema for the database. In past versions (<6.0) there was a calendarserver_
" pg8000.
I managed to modify Apple's original bootstrap_database script (attached) and use it to create a working calendar server. This is the original script:
https:/
Apart from the iOS paths there are a couple of things that need addressing for a port to Linux:
a. The database user should be "caldavd" not "caldav", to match the one in /etc/caldavd/
b. The script assumes communication via UNIX sockets. With the default Postgresql config this means that the script must be run by the right user for authentication to succeed. Problem is that the script requires 2 different users.
i. postgres to create the caldavd user and database
ii. caldavd to set the database schema in the newly created database
So the createuser and createdb need to be run as postgres, and the PSQL commands as caldavd :-(
In my case I solved it by turning off exit-on-error and running the script as these two users.
Happy fixing.
Hello,
Here is my configuration
Ubuntu 16.04 64 bit
uname -r
4.4.0-22-generic
apt-cache policy calendarserver ch.archive. ubuntu. com/ubuntu xenial/universe amd64 Packages dpkg/status
calendarserver:
Installed: 7.0+dfsg-2
Candidate: 7.0+dfsg-2
Version table:
*** 7.0+dfsg-2 500
500 http://
100 /var/lib/
I have follow the README.debian file instruction
/usr/share/ doc/calendarser ver/README. Debian
and i have installed this package
sudo easy_install -U cffi (See this bug for details : https:/ /bugs.launchpad .net/ubuntu/ +source/ python- pip/+bug/ 1512792
Problem :
When i try to start calendarserver with this command
"systemctl start calendarserver. service"
Calendarserver don't start
calendarserver. service - LSB: Calendar and Contacts Server d/calendarserve r; bad; vendor preset: enabled) sysv-generator( 8)
Loaded: loaded (/etc/init.
Active: active (exited) since jeu. 2016-05-19 20:52:10 CEST; 35min ago
Docs: man:systemd-
Tasks: 0 (limit: 512)
When I try to restart calendarserver with this command
" systemctl restart calendarserver. service"
Calendarserver is running
calendarserver. service - LSB: Calendar and Contacts Server d/calendarserve r; bad; vendor preset: enabled) sysv-generator( 8) /etc/init. d/calendarserve r stop (code=exited, status=0/ /etc/init. d/calendarserve r start (code=exited, status= slice/calendars erver.service caldavd/ memcache. sock -u caldavd
Loaded: loaded (/etc/init.
Active: active (running) since jeu. 2016-05-19 21:32:16 CEST; 12s ago
Docs: man:systemd-
Process: 5317 ExecStop=
Process: 5327 ExecStart=
Tasks: 8 (limit: 512)
CGroup: /system.
├─5352 CalendarServer 7.0.a1+unknown [Combined]
└─5354 memcached -U 0 -s /var/run/
However about 5 minute later
Calendarserver exit without unexceptionally without message
● calendarserver. service - LSB: Calendar and Contacts Server d/calendarserve r; bad; vendor preset: enabled) sysv-generator( 8) /etc/init. d/calendarserve r stop (code=exited, status=0/SUCCESS) /etc/init. d/calendarserve r start (code=exited, status=0/SUCCESS)
Loaded: loaded (/etc/init.
Active: active (exited) since jeu. 2016-05-19 21:32:16 CEST; 11min ago
Docs: man:systemd-
Process: 5317 ExecStop=
Process: 5327 ExecStart=
mai 19 21:32:15 mparchet- W240EU- W250EUQ- W270EUQ systemd[1]: Starting LSB: Calendar and Contacts Server... W240EU- W250EUQ- W270EUQ systemd[1]: Started LSB: Calendar and Contacts Server.
mai 19 21:32:16 mparchet-
In addition when I try to connect to this server with Evolution, I get the error message :
"Connection refused".
Could you help me please to solve both issues
Thanks in advance for your support
Best regards
Battant