Baikal update failed

Hi,
meine Dietpi-Maschine läuft mit php7.4-fpm, das Baikal-Update setzt php8.2 voraus. Der bisher einfache Austausch der Dateien unter /var/www/baikal/ wirft Fehler. Was muss ich tun, um den Baikal-Kalender-Server zu updaten?

Aktualisierungen der Abhängigkeiten. Sollte die Kompatibilität mit php 8.2 verbessern
Wird mit sabre/dav 4.6.0 ausgeliefert

Hi,
my Dietpi machine runs with php7.4-fpm, the baikal update requires php8.2. The so far simple exchange of files under /var/www/baikal/ throws errors. What do I have to do to update the Baikal calendar server?

Update the dependencies. Should improve compatibility with php 8.2
Delivered with sabre/dav 4.6.0

Viele Grüße / many greetings.

Pls can you fill the troubleshooting template

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

root@RasPi3:~# cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=2
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘beta’
G_GITOWNER=‘MichaIng’
root@RasPi3:~#

root@RasPi3:~# uname -a
Linux RasPi3 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
root@RasPi3:~#

root@RasPi3:~# dpkg --print-architecture
armhf
root@RasPi3:~#

root@RasPi3:~# echo $G_HW_MODEL_NAME
RPi 3 Model B (armv7l)
root@RasPi3:~#

This on seems to be missing. I guess it will report Bullseye? Correct?

Yes, correct:
root@RasPi3:~# echo $G_DISTRO_NAME
bullseye
root@RasPi3:~#

@Joulinar:
Do you have any new insights on this topic? Thank you.

Yes, you would need to upgrade to Debian Bookworm to get PHP 8

Now after upgrade

root@RasPi3:~# echo $G_DISTRO_NAME
bookworm
root@RasPi3:~#

Baikal error:
503 Service unavailable

What can I do?

Thank you.

all services are up??

dietpi-services status

Entschuldigung; meine Familie braucht den Baikal-Kalender unablässig. Deshalb habe ich auf der genannten Maschine mittels dietpi-backup den alten Zustand wiederhergestellt und erstmal läuft der Kalender wieder.

Nun habe ich als Test auf einem genau baugleichen RasPi3 das Bookworm-Update und danach Baikal installiert, was von Anfang an korrekt funktioniert hat.

Mein Problem hat sich also insofern erledigt, was das Update von Baikal anbetrifft. Nun muss ich den “alten” Kalender auf den neuen Kalender umziehen, was mir ebenfalls nicht gelingt. Ich finde die “alte” MySQL-Datenbank nicht, um sie auf den neuen RasPi3 umziehen zu können. Notfalls muss ich alle Termine des alten Kalenders und den neuen Kalender händisch eintragen, aber ich dachte, das kann man automatisch durch umziehen der MySQL-Datenbank machen. Ich weiß nur nicht, wie man das bewerkstelligen könnte.
Ich habe das hier deutsch geschrieben, um Missverständnissen vorzubeugen, füge aber die DeepL-Übersetzung an:

Sorry; my family needs the Baikal calendar incessantly. That’s why I restored the old state on the above-mentioned machine using dietpi-backup and for now the calendar is working again.

As a test, I installed the Bookworm update and then Baikal on an identical RasPi3, which worked correctly from the start.

So my problem has been solved as far as the Baikal update is concerned. Now I have to move the “old” calendar to the new calendar, which I can’t do either. I can’t find the “old” MySQL database so that I can move it to the new RasPi3. If necessary, I have to manually enter all the dates of the old calendar and the new calendar, but I thought this could be done automatically by moving the MySQL database. I just don’t know how to do this.

Danke und freundliche Grüße / thank you and friendly greetings.

did you checked location /mnt/dietpi_userdata/mysql?? It should be possible to copy folder baikal. Best to stop the old MariaDB server and create a tar archive before moving the files.

Probably it would be needed to migrate files from /var/www/baikal/config as well

I need help for migrate baikal calendar and addresbook to another identical Raspi machine, the mysql folder moving interrupted after 15 seconds.

Best to export database (using mysqldump) on source side and have it reimported on target system.

mysqldump --all-databases scheint funktioniert zu haben. Wo finde ich den Dump auf der Quell-Maschine, wie kann ich ihn exportieren und wie wird er in die Zielmaschine importiert?

Es ist alles sehr kompliziert, ich schaffe das nicht ohne Hilfe.

mysqldump --all-databases seems to have worked. Where can I find the dump on the source machine, how can I export it and how is it imported into the target machine?

It’s all very complicated, I can’t do it without help.

Following should do

  • on source side
mysqldump -u"baikal" -h"127.0.0.1" -p"<your-db-pass>" baikal > /tmp/baikal-database-backup.sql
  • install Baikal on target system and complete initial configuration
  • Copy the sql file to your new system and have it imported
mysqladmin drop baikal
/boot/dietpi/func/create_mysql_db baikal baikal <your-db-pass>
mysql baikal < /tmp/baikal-database-backup.sql

If you don’t remember your database password, it is stored in /var/www/baikal/config/baikal.yaml

mysqldump reported one error:

root@RasPi3:~# mysqldump -u"baikal" -h"127.0.0.1" -p"anonymized PW" baikal > /tmp/baikal-database-backup.sql
mysqldump: Got error: 1045: “Access denied for user ‘baikal’@‘localhost’ (using password: YES)” when trying to connect
root@RasPi3:~#

Please give me any hints to resolve this problem, thank you.

Looks like wrong password used

system:
configured_version: 0.9.4
timezone: Europe/Berlin
card_enabled: true
cal_enabled: true
dav_auth_type: Digest
admin_passwordhash: ad3e22f2f3f8c558215d17ae67c5d8af59ea35c734ecdecdeaaf9ffebf48f14c
failed_access_message: ‘user %u authentication failure for Baikal’
auth_realm: BaikalDAV
base_uri: ‘’
invite_from: ‘’
database:
sqlite_file: /var/www/baikal/Specific/db/db.sqlite
mysql: true
mysql_host: 127.0.0.1
mysql_dbname: baikal
mysql_username: baikal
mysql_password: dietpi
encryption_key: b21391df413a8a6866d6ffdb29577ca9

root@RasPi3:~# root@RasPi3:~# mysqldump -u"baikal" -h"127.0.0.1" -p"dietpi" baikal > /tmp/baikal-database-backup.sql
-bash: root@RasPi3:~#: Kommando nicht gefunden.
root@RasPi3:~#

Please help, thank you.

You copied the beginning of the line into your command. The host name.

1 Like

root@RasPi3:~# mysqldump -u “baikal” -h"127.0.0.1" -p “dietpi” baikal > /tmp/baikal-database-backup.sql
Enter password:

mysqldump: Got error: 1045: “Access denied for user ‘baikal’@‘localhost’ (using password: YES)” when trying to connect
root@RasPi3:~#

I use PW “YES”, not successful.

Which PW, from root or from baikal or YES?

THX.