Using Baikal 0.46 with macOS Sierra iCal and Contacts ?

2,176 views
Skip to first unread message

Francois Druel

unread,
Jan 30, 2017, 3:56:49 PM1/30/17
to SabreDAV Discussion
Hello all,

My name is Francois. I just installed Baikal on a Raspberry Pi 3. 

I use Baikal v. 0.46 (last stable),  Raspian Jessie, Apache v. 2.4.10, php v. 7.0.14-2, and sqlite v. 3.8.7.1. The server is on my Lan (192.168.1.16)

I can connect to the server via a web browser (Safari) at http://192.168.1.16/baikal/html/admin/

I created a user (jbond) and I configured a calendar and an address book.

The problem is that I cannot connect to the server using Apple's iCal and Contacts. 

In iCal, I entered a "manual" ical account and following the 'settings" of my server, I tested several configurations, none of them working

Here are several things I tested : 


Each time, the error was the same : "unable to verify name or password"


Did I miss something ? What informations are needed to connect ?

Is there any tutorial anywhere ? 

Thanks for help
Francois

Evert Pot

unread,
Jan 31, 2017, 9:27:48 PM1/31/17
to SabreDAV Discussion
Hi Francois,

For apple iCal, this url should just work:

https://192.168.1.16/dav.php/

Let me know if you run into any problems with that!

Evert

Francois Druel

unread,
Feb 1, 2017, 4:38:56 AM2/1/17
to SabreDAV Discussion
Hi Evert and thanks for help ! 

I just tested your solution, but it does not work... see attached screenshot. 

Always the same error message... 

Francois
Screen Shot 2017-02-01 at 10.17.27.png

Dominik Tobschall

unread,
Feb 1, 2017, 5:21:50 AM2/1/17
to sabredav...@googlegroups.com
Hi Francois,

I noticed in your screenshot that you tried https://192.168.1.16/dav.php/ - that would only work if you had SSL properly set up.
Did you also try http://192.168.1.16/dav.php/ instead?

Are you absolutely certain, that the account has a calendar?

Did you take a look at Console.app on the Mac during account bootstrap? It might give you a hint what is going wrong.
You could also set up a web debugging proxy (like https://www.charlesproxy.com) and take a look at how iCal and your server are communicating. Might also give you a hint, why the account bootstrap fails.

Dominik
> --
> You received this message because you are subscribed to the Google Groups "SabreDAV Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sabredav-discu...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/dc08b759-ca5c-4529-b201-fbbf430c9426%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <Screen Shot 2017-02-01 at 10.17.27.png>

Francois Druel

unread,
Feb 1, 2017, 7:43:04 AM2/1/17
to SabreDAV Discussion
Hi Dominik and thanks for your Help. 

To answer your questions : 

1- yes, I also tested via http (indeed, tested both http and https ;)

2- Yes I am sure the account has a calendar (see attached file "cal.png)

3- The communication transcript between iCal & Baikal server gives me two errors : A/ "TIC TCP Conn Failed [..]: 1.61 Err(61)" and B/ "HHTP load failed (error code -1004) - NSURL Connection finished with error - code - 1004

3bis - I used CharlesProxy and I was a connection to http://192.168.1.16/.well-known/caldav that gives a response code "405 Method not allowed"

Francois
cal.png

Dominik Tobschall

unread,
Feb 1, 2017, 9:16:26 AM2/1/17
to sabredav...@googlegroups.com
Hi Francois,

That could be the issue - I think macOS Calendar.app needs a working “.well-known” to correctly set up a new CalDAV account.
It looks like your VHOST setup does not include the proper redirects.

Check the “Apache vhost installation” info at:
http://sabre.io/baikal/install/

That should help.

Dominik
> To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/113b68f7-cefc-447a-b563-1fb3ac71d9cf%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <cal.png>

Francois Druel

unread,
Feb 1, 2017, 2:55:36 PM2/1/17
to SabreDAV Discussion
Thanks Dominik, 

I will try to configure this and have Apache 2 running with no problem ;))

Francois

Francois Druel

unread,
Feb 2, 2017, 5:35:30 AM2/2/17
to SabreDAV Discussion
First, Thank you all for help. 

I reconfigured my Apache 2 server and it seems to work fine

I tried to connect to baikal from Apple's Calendar, using the manual setting. Always the same server http://192.168.1.16/dav.php/, always the same user : jbond

Using Charles, I find that the connection can be made but as a large number of 404 and 405 http errors

The Charles file is attached. 

Has anyone any idea ? 

Thanks in advance.
Francois

PS : I am sure Baikal is a fine product and a good choice ;))
AppleCal-Jbond.chls

Dominik Tobschall

unread,
Feb 2, 2017, 5:53:16 AM2/2/17
to sabredav...@googlegroups.com
Hi Francois,

To me it looks like you might still have an issue with your Apache configuration.
The .well-known redirect seems to be working now, but the “405 - Method Not Allowed” errors in your Charles log are weird.

Maybe the vhost directory (see http://sabre.io/baikal/install/) isn’t configured correctly.
Maybe you are explicitly allowing certain HTTP keywords/methods in your httpd.conf and blocking all others?

Is Baikal (sabre/dav) responding at all, when you open http://192.168.1.16/dav.php in a browser? If that’s not the case, your configuration is wrong.

Looking at your Charles log it doesn’t seem like Baikal is answering here, those all seem to be Apache responses.

Dominik
> To view this discussion on the web visit https://groups.google.com/d/msgid/sabredav-discuss/9fafb997-a895-452b-bf4b-f2c9e7e57eac%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <AppleCal-Jbond.chls>

Francois Druel

unread,
Feb 2, 2017, 7:04:06 AM2/2/17
to SabreDAV Discussion
Hi Dominik !

To answer your questions : 

1- The vhost

As I run baikal at 192.168.1.16/baikal, I did not created a specific baikal vhost file. Here is the content of my 000-default.conf file (I removed the commented lines). This config seems working.

<VirtualHost 192.168.1.16:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        RewriteEngine On
        RewriteRule /.well-known/carddav /dav.php [R,L]
        RewriteRule /.well-known/caldav /dav.php [R,L]

        <Directory "/var/www/html">
                Options None
                Options +FollowSymLinks
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

2- When connecting to http://192.168.1.16/dav.php in a browser, I get a "404 not found" response, on port 80

3- As I use Apache 2.4.10, I do not have a httpd.conf file in /etc/apache2. The only file I find is apache2.conf. I did not change anything in it...

I will concentrate on apache config ;)

Thanks 
Francois
Message has been deleted

Francois Druel

unread,
Feb 2, 2017, 1:44:19 PM2/2/17
to SabreDAV Discussion
Hi !

After reinstalling Baikal, I created a new user, using email address as login 

Then I tried to connect to http://192.168.1.16/baikal/html/dav.php

An I arrived on a SabreDav webpage (see attached file) 

Very strange !

Francois
SabreDav.png

Dominik Tobschall

unread,
Feb 2, 2017, 2:05:30 PM2/2/17
to sabredav...@googlegroups.com
Well that sounds good then!

If you use http://192.168.1.16/baikal/html/dav.php in your calendar client, it should work.

Your well-known redirects are probably wrong though if you didn't change the config example as your baikal is in /baikal/html/

--
Sent from mobile device

For more options, visit https://groups.google.com/d/optout.
<SabreDav.png>

Francois Druel

unread,
Feb 2, 2017, 3:14:53 PM2/2/17
to SabreDAV Discussion
Thanks,

When I use the given url in Mac Calendar, it does not work, with the same error : 

URL http://192.168.1.16/principals/users/francois%40druel.com/
Status Complete
Response Code 405 Method Not Allowed
Protocol HTTP/1.1
SSL -
Method PROPFIND

Strange, isn't it ? 

F

Dominik Tobschall

unread,
Feb 2, 2017, 3:29:00 PM2/2/17
to sabredav...@googlegroups.com
Your configuration is still not correct. That base URL is wrong.
Your installation is in /baikal/html/dav.php so /principals/users/xyz won't work.

Your either have to set up your webserver (Apache) so Baikal is available at "/" and things get rewritten to dav.php, or you have to configure the base URL correctly in Baikal.

Alternatively, if you just want a CardDAV/CalDAV server that works without any configuration, you might be interested in https://fruux.com

Dominik


-- 
Sent from mobile device

Francois Druel

unread,
Feb 3, 2017, 5:29:31 AM2/3/17
to SabreDAV Discussion
OK, thanks for help... 

I'll keep going on and I sure I will find a solution. 

I'll test Fruux but I am looking for a self-hosting solution ;))

Francois

Francois Druel

unread,
Feb 3, 2017, 11:40:46 AM2/3/17
to SabreDAV Discussion
Well, I continue on with Baikal... 

Two news for today : 

1- I can connect to the address book ! For the moment,  I cannot save any data yet (although the "default" addressbook is created) but the connection establishes

2- when connecting to : http://192.168.1.16/baikal/html/dav.php, a web page appears ! (see attached file)

Keep going ! 

Francois
Screen Shot 2017-02-03 at 17.37.06.png
Message has been deleted

Francois Druel

unread,
Feb 4, 2017, 5:37:39 AM2/4/17
to SabreDAV Discussion
Good news this morning : it woooooorks ! 

After many, many, many, many many errors using macOS's Calendar and Contact to connect to my server, I decided to test with my phone (a Pixel w/ Android 7.1.1). 

I installed CardDav-Sync and CalDAV-Syncv (http://dmfs.org), entered the server's address (http://192.168.1.16:80/baikal/html/dav.php in both cases) and... it simply worked ! 

All seems to be fully functional : I can add and modify contacts, I can add and modify appointments and todos ! 

I will try other software on the mac.

F
Reply all
Reply to author
Forward
0 new messages