# \[Baikal\] Cal and CardDAV server

**URL:** https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969
**Category:** Apps
**Tags:** baikal
**Created:** [December 17, 2017, 5:04pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969 "2017-12-17T17:04:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 17, 2017, 5:04pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/1 "2017-12-17T17:04:11Z")

</div>

# Baïkal for YunoHost

[![Integration level](https://dash.yunohost.org/integration/baikal.svg)](https://dash.yunohost.org/appci/app/baikal)  
[![Install Baïkal with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=baikal)

## Overview

Baïkal is a Cal and CardDAV server, based on sabre/dav, that includes an administrative interface for easy management.

**Shipped version:** 0.5.3

## Screenshots

## Configuration

## Documentation

- YunoHost documentation: [https://github.com/YunoHost/doc/blob/master/app\_baikal.md](https://github.com/YunoHost/doc/blob/master/app_baikal.md)

## YunoHost specific features

#### Multi-users support

#### Supported architectures

- x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/baikal%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/baikal/)
- ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/baikal%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/baikal/)
- Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/baikal%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/baikal/)

## Limitations

## Additionnal informations

## Links

- Report a bug: [GitHub · Where software is built](https://github.com/YunoHost-Apps/baikal_ynh/issues)
- Baïkal website: [Baïkal - baikal](http://sabre.io/baikal/)
- YunoHost website: [https://yunohost.org/](https://yunohost.org/)

* * *

## Changelog

#### _Testing branch_

#### _Master branch (Official release)_

- [21 July 2019 - #37](https://github.com/YunoHost-Apps/baikal_ynh/pull/37)
  - Check if well-known urls are available before installing and restoring the app
  - Add a change\_url script
  - Global upgrade of the package.
  - Update to baikal 0.5.3

- [10 Apr 2019 - #32](https://github.com/YunoHost-Apps/baikal_ynh/pull/32)
  - Upgrade to last packaging standard

- [17 Dec 2017 - #22](https://github.com/YunoHost-Apps/baikal_ynh/pull/22)
  - Fix install
  - Package refactored to adjust to latest standards

* * *

## Developers infos

Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/baikal_ynh/tree/testing).

To try the testing branch, please proceed like that.

```auto
sudo yunohost app install https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug
or
sudo yunohost app upgrade baikal -u https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug

```

* * *

* * *

# Baïkal pour YunoHost

[![Integration level](https://dash.yunohost.org/integration/baikal.svg)](https://dash.yunohost.org/appci/app/baikal)  
[![Install Baïkal with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=baikal)

## Résumé

Baïkal est un serveur CalDav et CardDAV, basé sur sabre/dav, qui inclut une interface d’administration pour une gestion facile.

**Version embarquée:** 0.5.3

## Captures d’écran

## Configuration

## Documentation

- Documentation YunoHost: [https://github.com/YunoHost/doc/blob/master/app\_baikal\_fr.md](https://github.com/YunoHost/doc/blob/master/app_baikal_fr.md)

## Fonctionnalités spécifiques à YunoHost

#### Support multi-utilisateurs

#### Architectures supportées.

- x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/baikal%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/baikal/)
- ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/baikal%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/baikal/)
- Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/baikal%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/baikal/)

## Limitations

## Informations additionnelles

## Liens

- Reporter un bug: [GitHub · Where software is built](https://github.com/YunoHost-Apps/baikal_ynh/issues)
- Site de Baïkal: [Baïkal - baikal](http://sabre.io/baikal/)
- Site de YunoHost: [https://yunohost.org/](https://yunohost.org/)

* * *

## Changelog

#### _Branche testing_

#### _Branche master (Release officielle)_

- [21 July 2019 - #37](https://github.com/YunoHost-Apps/baikal_ynh/pull/37)
  - Check if well-known urls are available before installing and restoring the app
  - Add a change\_url script
  - Global upgrade of the package.
  - Update to baikal 0.5.3

- [10 Apr 2019 - #32](https://github.com/YunoHost-Apps/baikal_ynh/pull/32)
  - Upgrade to last packaging standard

- [17 Dec 2017 - #22](https://github.com/YunoHost-Apps/baikal_ynh/pull/22)
  - Fix install
  - Package refactored to adjust to latest standards

* * *

## Informations à l’intention des développeurs

Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/baikal_ynh/tree/testing).

Pour tester la branche testing, merci de procéder ainsi.

```auto
sudo yunohost app install https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug
ou
sudo yunohost app upgrade baikal -u https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug

```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 17, 2017, 5:06pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/2 "2017-12-17T17:06:30Z")

</div>

Baïkal is just upgraded

[Fix install and refactoring](https://github.com/YunoHost-Apps/baikal_ynh/pull/22)

- Fix install
- Package refactored to adjust to latest standards

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 19, 2017, 2:20pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/3 "2017-12-19T14:20:23Z")

</div>

Hello,  
I tried to upgrade baikal but it failed:

```
# yunohost app upgrade
Warning: 2017-12-19 15:12:50 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/3564353/c2cba910-65ec-11e6-927d-35c912bee0d9?X-Amz-
Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171219%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171219T141247Z&X-Amz-Expires=
300&X-Amz-Signature=b1454c6acc4812297eeaf061c63a73c34ddf171dba2ef6b4d8b4c9efb147a5c2&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=
attachment%3B%20filename%3Dbaikal-0.4.6.zip&response-content-type=application%2Foctet-stream [3288478/3288478] -> "app.zip" [1]                       
Warning: Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
Warning: !!
Warning: baikal's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: Upgrade failed.
Warning: 'yunohost app checkurl' is deprecated and will be removed in the future
Warning: The app was restored to the way it was before the failed upgrade.
Error: Unable to upgrade baikal
Error: No app to upgrade

```

Since that, when trying to reach “[myServer.org/baikal](http://myServer.org/baikal)” I get:

```
exception 'Exception' with message 'Specific/config.php is not writable. Please give write permissions to httpd user on file 'Specific/config.php'.' in /var/www/baikal/Core/Frameworks/Baikal/Core/Tools.php:87
Stack trace:
#0 /var/www/baikal/Core/Frameworks/Baikal/Framework.php(80): Baikal\Core\Tools::assertBaikalIsOk()
#1 /var/www/baikal/html/index.php(52): Baikal\Framework::bootstrap()
#2 {main}

```

Any idea how to fix that? Thanks!

```
yunohost 2.7.5
yunohost-admin 2.7.5
moulinette 2.7.5
ssowat 2.7.5
```

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 19, 2017, 2:53pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/4 "2017-12-19T14:53:35Z")

</div>

Ok, it seems almost fixed, doing as stated:  
/var/www/baikal/Specific# chmod +w config.system.php  
/var/www/baikal/Specific# chmod +w config.php

Now, “[myServer.org/baikal/](http://myServer.org/baikal/)” return "Baïkal is running alright."  
But… the “[myServer.org/baikal/admin”](http://myServer.org/baikal/admin%E2%80%9D) is returning a “HTTP ERROR 500”…

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 19, 2017, 5:22pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/5 "2017-12-19T17:22:33Z")

</div>

Can you see what the error nginx log says ?  
`/var/log/nginx/error.log`

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 19, 2017, 7:57pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/6 "2017-12-19T19:57:15Z")

</div>

Nothing related to baikal:

```
# tail /var/log/nginx/error.log
2017/12/19 14:49:40 [notice] 5102#0: signal process started
2017/12/19 14:54:27 [info] 620#0: Using 32768KiB of shared memory for push module in /etc/nginx/nginx.conf:63
2017/12/19 14:54:27 [info] 620#0: [lua] init.lua:57: SSOwat ready
2017/12/19 15:12:56 [emerg] 2668#0: duplicate location "/.well-known/caldav" in /etc/nginx/conf.d/myServer.org.d/nextcloud.conf:4
2017/12/19 15:13:05 [notice] 2723#0: signal process started
2017/12/19 15:14:44 [notice] 2797#0: signal process started
2017/12/19 15:23:51 [emerg] 3373#0: duplicate location "/.well-known/caldav" in /etc/nginx/conf.d/myServer.org.d/nextcloud.conf:4
2017/12/19 15:24:01 [notice] 3432#0: signal process started
2017/12/19 15:25:40 [notice] 3511#0: signal process started
2017/12/19 16:05:32 [notice] 4796#0: signal process started
```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 19, 2017, 11:11pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/7 "2017-12-19T23:11:34Z")

</div>

> [@aoz](#):
>
> 2017/12/19 15:23:51 [emerg] 3373#0: duplicate location “/.well-known/caldav” in /etc/nginx/conf.d/myServer.org.d/nextcloud.conf:4

It’s probably where there’s an error. Both nextcloud and baikal try to use that.  
I don’t know much about that…

But, I think there’s something to do with that:

> <https://github.com/YunoHost-Apps/nextcloud_ynh/blob/testing/scripts/install#L89-L93>

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 20, 2017, 12:34pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/8 "2017-12-20T12:34:59Z")

</div>

Thank you @Maniack_Crudelis for you support.

Do you think that the fact that both nextcloud and baikal are trying to use “/.well-known/caldav” does explain why the baikal upgrade has failed (my 1st message yesterday)?

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 20, 2017, 1:27pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/9 "2017-12-20T13:27:18Z")

</div>

Yes, sorry I was not clear.  
Your baikal install failed because of that:

```auto
Warning: Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.

```

And your nginx log says

```auto
2017/12/19 15:23:51 [emerg] 3373#0: duplicate location "/.well-known/caldav" in /etc/nginx/conf.d/myServer.org.d/nextcloud.conf:4

```

So, I think that the reason why baikal failed to install. And also, why we didn’t see that before, we never try an app with another already installed. And I suppose nobody had this error during the testing.

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 20, 2017, 2:11pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/10 "2017-12-20T14:11:12Z")

</div>

You mean that nobody in the testers’ group has nextcloud + baikal previously installed, before upgrading baikal?

For you to know, on my side, I had baikal installed before I installed owncloud. Then I upgraded owncloud to nextcloud. Then I tried to upgrade baikal…

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 20, 2017, 2:17pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/11 "2017-12-20T14:17:16Z")

</div>

I’m not even sure anyone have tried the testing branch of baikal…

As I said, I don’t know much about this part of baikal and nextcloud.  
But, as I can read in the script, I think you can try to comment your entries about ‘.well-known’ in your nextcloud setup and retry to upgrade baikal.

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 20, 2017, 3:11pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/12 "2017-12-20T15:11:45Z")

</div>

Thanks for the advice, I will test that.

Otherwise, do you know how I could check what version of baikal is currently installed on my server?

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 20, 2017, 4:23pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/13 "2017-12-20T16:23:55Z")

</div>

Did you try the admin interface of Baïkal ?  
It’s usually print somewhere.

Or, you can have a look at `/etc/yunohost/apps/baikal/manifest.json` that contains the version of baikal.

---

<div class="post-metadata">

### Author: ![aoz](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@aoz](https://forum.yunohost.org/u/aoz)
#### Post date: [December 20, 2017, 6:39pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/14 "2017-12-20T18:39:31Z")

</div>

It is my issue: since the failed upgrade, I do no have access to the baikal admin interface anymore.

Ok, the version number is in the manifest: v0.4.4

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [December 22, 2017, 11:40am UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/15 "2017-12-22T11:40:21Z")

</div>

Update of Baïkal today  
Fix for the error with `AbstractExternalAuth.php` and `LDAPUserBindAuth.php`

> <https://github.com/YunoHost-Apps/baikal_ynh/pull/24>

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [March 27, 2019, 8:12pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/16 "2019-03-27T20:12:37Z")

</div>

New testing available

- [27 Mar 2019 - #32](https://github.com/YunoHost-Apps/baikal_ynh/pull/32)
  - Upgrade to last packaging standard

```auto
sudo yunohost app install https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug
or
sudo yunohost app upgrade baikal -u https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug

```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [April 10, 2019, 6:58pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/17 "2019-04-10T18:58:50Z")

</div>

New stable release for Baïkal

- [10 Apr 2019 - #32](https://github.com/YunoHost-Apps/baikal_ynh/pull/32)
  - Upgrade to last packaging standard

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [May 10, 2019, 9:58am UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/18 "2019-05-10T09:58:14Z")

</div>

New testing available

- [10 May 2019 - #37](https://github.com/YunoHost-Apps/baikal_ynh/pull/37)
  - Check if well-known urls are available before installing and restoring the app
  - Add a change\_url script
  - Global upgrade of the package.

```auto
sudo yunohost app install https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug
or
sudo yunohost app upgrade baikal -u https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug

```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [June 5, 2019, 6:38pm UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/19 "2019-06-05T18:38:00Z")

</div>

New commits for the current testing

- [05 Jun 2019 - #37](https://github.com/YunoHost-Apps/baikal_ynh/pull/37)
  - Update to baikal 0.5.3

```auto
sudo yunohost app install https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug
or
sudo yunohost app upgrade baikal -u https://github.com/YunoHost-Apps/baikal_ynh/tree/testing --debug

```

---

<div class="post-metadata">

### Author: ![Maniack\_Crudelis](https://forum.yunohost.org/user_avatar/forum.yunohost.org/maniack_crudelis/32/13_2.png) [@Maniack\_Crudelis](https://forum.yunohost.org/u/Maniack_Crudelis)
#### Post date: [July 21, 2019, 11:22am UTC](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969/20 "2019-07-21T11:22:59Z")

</div>

New release available

- [21 July 2019 - #37](https://github.com/YunoHost-Apps/baikal_ynh/pull/37)
  - Check if well-known urls are available before installing and restoring the app
  - Add a change\_url script
  - Global upgrade of the package.
  - Update to baikal 0.5.3

[Next page](https://forum.yunohost.org/t/baikal-cal-and-carddav-server/3969.md?page=2)
