[ QBaikal ] [ 0.7.0.0 ] Lightweight CalDAV+CardDAV server

This is the best place for community developers to publish their genius work. Your Apps enrich the QNAP Turbo NAS.
Dimaxa
New here
Posts: 9
Joined: Tue Jul 19, 2011 6:26 pm

Re: [ QBaikal ] [ 0.2.7.0.3 ] Lightweight CalDAV+CardDAV server

Post by Dimaxa » Fri Oct 23, 2015 2:05 pm

Thank you! Waiting for your reply.
Please tell me if I can help you

User avatar
QNAP_Stephane
Experience counts
Posts: 3796
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QBaikal ] [ 0.2.7.0.3 ] Lightweight CalDAV+CardDAV server

Post by QNAP_Stephane » Sat Oct 24, 2015 7:06 pm

Dimaxa wrote:Thank you! Waiting for your reply.
Please tell me if I can help you



ARMv5 must continue to use the version http://www.positiv-it.fr/QNAP/APP/QBaikal_0.2.7.0.2.qpkg.zip
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

Dimaxa
New here
Posts: 9
Joined: Tue Jul 19, 2011 6:26 pm

Re: [ QBaikal ] [ 0.2.7.0.3 ] Lightweight CalDAV+CardDAV server

Post by Dimaxa » Sun Oct 25, 2015 5:19 pm

QNAP_Stephane wrote:ARMv5 must continue to use the version http://www.positiv-it.fr/QNAP/APP/QBaikal_0.2.7.0.2.qpkg.zip

Works like charm!! Thank you very much!

Does anyone know if it possible to set Baikal for one-way syncronization? I want to connect few user to addressbook but I donn't want them add/delete/update the addressbook.

Magellan498
Starting out
Posts: 23
Joined: Wed Apr 27, 2011 1:01 am

Re: [ QBaikal ] [ 0.2.7.0.3 ] Lightweight CalDAV+CardDAV server

Post by Magellan498 » Thu Dec 31, 2015 11:45 pm

So, I've done a little bit of troubleshooting on my own to no avail. I've installed 0.2.7 on my TS-269 Pro and I can get to the administration page on my LAN. I forwarded the ports 31000 and 31443 and as far as I can tell, they're definitely open according to all the port scan sites I've tried. On LAN, I can hit <serverIP>:31000 and get a "Baikal is running allright." message. No dice through WAN. Any ideas of next steps here???

Here are some logs also:

[Wed Dec 30 15:32:32 2015] [notice] FastCGI: process manager initialized (pid 29429)
[Wed Dec 30 15:32:32 2015] [notice] Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1p mod_fastcgi/2.4.7 configured -- resuming normal operations
[Wed Dec 30 15:34:00 2015] [notice] caught SIGTERM, shutting down
[Wed Dec 30 15:34:00 2015] [alert] (2)No such file or directory: FastCGI: read() from pipe failed (0)
[Wed Dec 30 15:34:00 2015] [alert] (2)No such file or directory: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Wed Dec 30 17:30:37 2015] [notice] FastCGI: process manager initialized (pid 19749)
[Wed Dec 30 17:30:37 2015] [notice] Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1p mod_fastcgi/2.4.7 configured -- resuming normal operations
[Wed Dec 30 17:34:58 2015] [notice] caught SIGTERM, shutting down
[Wed Dec 30 17:34:58 2015] [alert] (2)No such file or directory: FastCGI: read() from pipe failed (0)
[Wed Dec 30 17:34:58 2015] [alert] (2)No such file or directory: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Wed Dec 30 17:35:03 2015] [notice] FastCGI: process manager initialized (pid 13895)
[Wed Dec 30 17:35:03 2015] [notice] Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1p mod_fastcgi/2.4.7 configured -- resuming normal operations
[Wed Dec 30 18:22:16 2015] [notice] caught SIGTERM, shutting down
[Wed Dec 30 18:22:17 2015] [alert] (4)Interrupted system call: FastCGI: read() from pipe failed (0)
[Wed Dec 30 18:22:17 2015] [alert] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Wed Dec 30 18:31:43 2015] [notice] FastCGI: process manager initialized (pid 17727)
[Wed Dec 30 18:31:43 2015] [notice] Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1p mod_fastcgi/2.4.7 configured -- resuming normal operations
[Wed Dec 30 22:06:07 2015] [notice] caught SIGTERM, shutting down
[Wed Dec 30 22:06:07 2015] [alert] (4)Interrupted system call: FastCGI: read() from pipe failed (0)
[Wed Dec 30 22:06:07 2015] [alert] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Wed Dec 30 22:37:53 2015] [notice] FastCGI: process manager initialized (pid 20512)
[Wed Dec 30 22:37:53 2015] [notice] Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1p mod_fastcgi/2.4.7 configured -- resuming normal operations
[Thu Dec 31 03:41:37 2015] [notice] FastCGI: process manager initialized (pid 13579)
[Thu Dec 31 03:41:37 2015] [warn] pid file /share/CACHEDEV1_DATA/.qpkg/QBaikal/QBaikal.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Dec 31 03:41:37 2015] [notice] Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1p mod_fastcgi/2.4.7 configured -- resuming normal operations

superwallah
New here
Posts: 2
Joined: Tue Feb 16, 2016 3:18 pm

[ QBaikal ] [ 0.2.7.0.3 ] Integrate "permissions.php"

Post by superwallah » Tue Feb 16, 2016 10:43 pm

Hi,

to allow using one calendar by multiple users or expose a calendar on the web, mrbaseman has written a small php script: https://github.com/mrbaseman/calendar-tools
To avoid the hassle with the additional digest authentication which is handle on QNAP http server a bit differently, it would be nice if this script was already included in the QBaikal bundle.

Can you include this, adapting the appropriate access rights in the http server?

Thank you very much,

Superwallah

superwallah
New here
Posts: 2
Joined: Tue Feb 16, 2016 3:18 pm

Re: [ QBaikal ] [ 0.2.7.0.3 ] Lightweight CalDAV+CardDAV server

Post by superwallah » Mon Feb 22, 2016 5:52 am

Hi,

I am still trying to get an authentication accepted when accessing the "permissions.php" by mrbaseman. In a standard Baikal installation, the system's admin password should be sufficient to be taken over by the variable PHP_AUTH_USER. But it seems that the QBaikal variante is not receiving this at all, but the Apache always answering the Basic Authentication with 401 Not Authorized.

Any idea, what is different between a standard Baikal Apache installation and your QBaikal package?

Thanks.

User avatar
QNAP_Stephane
Experience counts
Posts: 3796
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QBaikal ] [ 0.3.5.0 ] Lightweight CalDAV+CardDAV server

Post by QNAP_Stephane » Fri Feb 26, 2016 10:30 pm

just published the 0.3.5 from github

no more custom port
no more needed to restart qpkg
works on all plateform

not sure it support update
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

grb43
Starting out
Posts: 21
Joined: Fri Jul 25, 2014 2:39 pm

Re: [ QBaikal ] [ 0.3.5.0 ] Lightweight CalDAV+CardDAV server

Post by grb43 » Sat Feb 27, 2016 1:29 pm

What do I have to do, to use Baikal with my own Certifikate? Just creating my certifikate and replace the server.key and server.crt in the Baikal folder?


I'm using certificates signed by Lets Encrypt.

I found it more convenient to modify apache-ssl.conf (in the QBaikal directory) to point to my new certificates because I wanted to keep them separate from the QBaikal installation. The settings I used are shown below but you would obviously adjust these to wherever you keep your new certificates. Note that Apache/QBaikal actually requires 3 certificates.

    SSLCertificateFile "/opt/etc/ssl/certs/cert.pem"
    SSLCertificateKeyFile "/opt/etc/ssl/private/privkey.pem"
    SSLCertificateChainFile "/opt/etc/ssl/certs/chain.pem"

grb43
Starting out
Posts: 21
Joined: Fri Jul 25, 2014 2:39 pm

Re: [ QBaikal ] [ 0.3.5.0 ] Lightweight CalDAV+CardDAV server

Post by grb43 » Sun Feb 28, 2016 8:19 am

It seems there is no apache-ssl.conf in the new version anymore


I haven't had time to upgrade to 0.3.5 yet, but noticed this version doesn't use a separate port. I presume this means it no longer uses a separate instance of Apache, but relies on the same instance that provides the general web interface and uses the standard certs.

User avatar
QNAP_Stephane
Experience counts
Posts: 3796
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QBaikal ] [ 0.3.5.0 ] Lightweight CalDAV+CardDAV server

Post by QNAP_Stephane » Sun Feb 28, 2016 3:30 pm

Exact
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

Metria
Getting the hang of things
Posts: 89
Joined: Thu May 28, 2015 2:38 am

Re: [ QBaikal ] [ 0.3.5.0 ] Lightweight CalDAV+CardDAV server

Post by Metria » Tue Mar 01, 2016 1:40 am

Loaded QBaikal_0.3.5.0.qpkg onto my TVS-863+ and although it says running, unable to access it in anyway. The open button on the apps page does tries to take me to http://192.168.1.130/baikal/admin, (page not found) . Could you give any instructions? Going to http://192.168.1.130:31000/admin tells me connection refused. Thanks in advance!

jumihehi
New here
Posts: 7
Joined: Tue Dec 23, 2014 2:18 am

Re: [ QBaikal ] [ 0.3.5.0 ] Lightweight CalDAV+CardDAV server

Post by jumihehi » Sun Mar 13, 2016 5:41 am

Hello,

i run into a strange error connecting to my addressbook via OSX Contacts.app and thunderbird too, using the sogo connector…

Log from apache:

Code: Select all

"PROPFIND /dav.php/addressbooks/karl/ HTTP/1.1" 400 299 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 Lightning/4.0.6"
"PROPFIND /dav.php/adressbooks/karl/default HTTP/1.1" 400 299 "-" "Mac OS X/10.11.3 (15D21) AddressBook/1679.4"


If i open the page http://myserver:10000/.well-known/carddav, i get the login, which works and im redirected to

Code: Select all

http://myserver:10000/dav.php/addressbooks/karl/b345-1234-bla/


apache log shows

Code: Select all

"GET /dav.php/addressbooks/karl/b345-1234-bla/ HTTP/1.1" 200 19125 "http://myserver:10000/dav.php/addressbooks/karl/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0"


and i see the vcards.

My virtualhost config:

Code: Select all

<VirtualHost *:10000>
   ServerName myserver
   DocumentRoot "/share/Web/baikal"

   CustomLog logs/baikal-access.log combined
   ErrorLog logs/baikal-error.log

   RewriteEngine On
   RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
        RewriteRule /.well-known/carddav /dav.php [R,L]
        RewriteRule /.well-known/caldav /dav.php [R,L]

    <Directory "/share/Web/baikal">
   Options None
   Options +FollowSymlinks
   AllowOverride All
    </Directory>

</VirtualHost>


Any hints??

User avatar
QNAP_Stephane
Experience counts
Posts: 3796
Joined: Wed Mar 27, 2013 1:00 am

Re: [ QBaikal ] [ 0.4.4.0 ] Lightweight CalDAV+CardDAV server

Post by QNAP_Stephane » Sat Apr 02, 2016 12:33 am

updated to 0.4.4
--------------------------------------------------------------------------
QnapClub AppCenter - https://www.qnapclub.eu
--------------------------------------------------------------------------

halol
Getting the hang of things
Posts: 97
Joined: Thu Aug 09, 2012 9:43 pm

Re: [ QBaikal ] [ 0.4.4.0 ] Lightweight CalDAV+CardDAV server

Post by halol » Fri May 20, 2016 9:26 pm

jumihehi, did you manage to fix your problem?

I have what appears to be exactly the same issue (I also get the error 400 in the Apache logs). And when trying to sync using DAVdroid, I get a No CalDAV/CardDAV service is available at this location, despite the fact that the URL is working fine in the browser.

I tried with 0.4.4, 0.4.3, same issue. Only 0.2.7 is working for me...

By the way, I am on TVS-663 with QTS 4.2.
TVS-663

WeT-Klb
New here
Posts: 9
Joined: Fri Apr 29, 2016 2:18 am

Re: [ QBaikal ] [ 0.4.4.0 ] Lightweight CalDAV+CardDAV server

Post by WeT-Klb » Sat Jun 25, 2016 10:11 pm

Hi,

i found out something looking weired for me. I´m trying to use Qbaikal 0.4.4 on a TS-251. In the "web"-Folder there will be created a Folder "baikal" with subfolders "admin", "html" and "res".
Inside subfolder "html" i get exactly the same files. When switching to the "sub-subfolder html" there´s a copy again and and so on.
To make it clear i add a Picture. Is this a behavious to be expected or just a mistake?

Verzeichnisstruktur.jpg


Never the less i can´t manage to make it work. I can Access the admin page through http://192.168.1.241:90/baikal/admin and i can Access the calendar http://192.168.1.241:90/baikal/cal.php/ ... er/default - but only through web browser.
Until now i can´t manage to contact the Server with sunbird.

C U
Werner
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Community Apps”