Package Details: baikal 0.7.1-1

Git Clone URL: https://aur.archlinux.org/baikal.git (read-only, click to copy)
Package Base: baikal
Description: Lightweight CalDAV+CardDAV server
Upstream URL: http://sabre.io/baikal/
Licenses: GPL
Submitter: The-Compiler
Maintainer: Martchus
Last Packager: Martchus
Votes: 20
Popularity: 0.53
First Submitted: 2014-01-07 12:12
Last Updated: 2020-06-13 23:18

Pinned Comments

Martchus commented on 2020-01-31 13:47

When updating your PHP, have a look whether Baikal still works and checkout the comments here for possible issues. Any hints/patches from your side are welcome of course, too. PHP is known to break things and it broke Baikal in the past. At the bottom of this comment you also find NGINX configuration snippets to use an older PHP version. Using an older PHP version is likely the best for being on the safe side.


All my packages are managed at GitHub where you can also contribute directly: https://github.com/Martchus/PKGBUILDs
There's also a binary repository, also including older PHP versions: https://wiki.archlinux.org/index.php/Unofficial_user_repositories#ownstuff


head -n 20 /etc/nginx/nginx.conf 
[...]
http {
    include php-handler.conf;
    include php72-handler.conf;
cat /etc/nginx/php.conf 
location ~ ^(/baikal.+?\.php)(/.*)?$ {
  try_files $1 =404;
  include fastcgi.conf;
  fastcgi_pass php72-handler; # handler registered via php72-handler.conf included in nginx.conf
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$1;
  fastcgi_param PATH_INFO $2;
  fastcgi_param HTTPS on;
}
location ~ ^(.+?\.php)(/.*)?$ {
  try_files $1 =404;
  include fastcgi.conf;
  fastcgi_pass php-handler; # handler registered via php-handler.conf included in nginx.conf
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$1;
  fastcgi_param PATH_INFO $2;
  fastcgi_param HTTPS on;
}
cat /etc/nginx/php72-handler.conf 
upstream php72-handler {
  server unix:/run/php72-fpm/php-fpm.sock;
}
cat /etc/nginx/php-handler.conf 
upstream php-handler {
  server unix:/run/php-fpm/php-fpm.sock;
}

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

The-Compiler commented on 2016-01-14 15:19

Indeed it seems like PHP7 decided to change operator precedence, which broke the (older) version of SabreDAV bundled with Baikal...

I wrote a patch based on the SabreDAV fix and included it in -6. This makes it work for me again, please let me know if it fixed things for you as well!

Iwmrby commented on 2016-01-14 15:15

@The-Compiler: not really, no. I reloaded the software on my phone( BlackBerry) and still the same issue.

Vdirsyncer works on my notebook though.

I looked thorough logs and so on and nothing seems broken or I just fail at finding any errors.

The-Compiler commented on 2016-01-14 15:00

@Iwmrby Any update? I've been having trouble as well and today suddenly my client actually showed an error message, which I reported here:

https://github.com/netgusto/Baikal/issues/434

Iwmrby commented on 2016-01-10 08:57

Baikal doesn't seem to sync anymore since the upgrade to PHP7. Does anybody else have this problem? Is there some config change I missed?

Later edit: It might be an issue with my phone.

BunBum commented on 2014-09-05 07:27

Fixed. You also have to copy config.php and config.system.php to /var/lib/baikal

Now everything works. Hopefully future updates will run much more smoother ;-)

BunBum commented on 2014-09-05 07:13

When I delete ENABLE_INSTALL I get

Baïkal Install Tool is locked.
To unlock it, create (or re-create if it exists already) an empty file named ENABLE_INSTALL (uppercase, no file extension) in the Specific/ folder of Baïkal.

Could you tell me how I can enable Baikal without loosing all my contacts?

The-Compiler commented on 2014-09-05 07:11

Heh, weird - I got an email for both of your comments but only see one now.

Looks like I need to take a closer look at the package again, having an ENABLE_INSTALL doesn't make much sense on upgrading, so I really should create that file in the .install...

What happens when you delete the file entirely and proceed? Do you get the same baikal error?

BunBum commented on 2014-09-05 07:07

My comment here was deleted???

I found the issue.

PHP Warning: file_exists(): open_basedir restriction in effect. File(/usr/share/webapps/baikal/Specific/ENABLE_INSTALL) is not within the allowed path
After I added it to my open_basedir setting in my php.ini it works.

But now I get the Baïkal initialization wizard in my browser :-(

BunBum commented on 2014-09-05 07:04

I found it. journalctl told me "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/usr/share/webapps/baikal/Specific/ENABLE_INSTALL) is not within the allowed path"

In my php.ini you have to add /usr/share/webapps/baikal/Specific/ to open_basedir.

But now I get confrontade with the Baikal initialization wizard :-(

The-Compiler commented on 2014-09-05 06:50

Did you wait more than an hour between installing the package and navigating to that path with your browser? Then that'd happen.

Try doing a:
touch /var/lib/baikal/ENABLE_INSTALL

Could you tell me what happens then? I tried an upgrade and it worked fine for me, but maybe I missed something.