ckulka / baikal-docker

Provides a ready-to-go Baikal server, incl. docker-compose.yml & Systemd service file
https://hub.docker.com/r/ckulka/baikal
MIT License
352 stars 46 forks source link

Baikal throwing errors after upgrade #183

Closed AlexKalopsia closed 6 months ago

AlexKalopsia commented 6 months ago

I pulled the latest image and recreated the container. The UI asked me to perform the upgrade. Now I can't reach Baikal anymore.

Stack trace:
#0 /var/www/baikal/Core/Frameworks/Flake/Framework.php(265): Flake\Framework::initDb
Sqlite()
#1 /var/www/baikal/Core/Frameworks/Flake/Framework.php(205): Flake\Framework::initDb
()
#2 /var/www/baikal/html/dav.php(50): Flake\Framework::bootstrap()
#3 {main}
  thrown in /var/www/baikal/Core/Frameworks/Flake/Framework.php on line 269" while r
eading response header from upstream, client: 172.20.0.1, server: _, request: "PROPF
IND /dav.php/calendars/ala/default/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/ph
p-fpm.sock:", host: "dav.mydomain.com"
172.20.0.1 - alex [22/Apr/2024:20:26:19 +0000] "PROPFIND /dav.php/calendars/ala/defa
ult/ HTTP/1.1" 500 5 "-" "DAVx5/4.3.16.1-gplay (2024/04/17; dav4jvm; okhttp/4.12.0)
Android/12" "192.168.1.1"
2024/04/22 20:26:19 [error] 49#49: *8 FastCGI sent in stderr: "PHP message: PHP Warn
ing:  Trying to access array offset on value of type null in /var/www/baikal/Core/Fr
ameworks/Flake/Framework.php on line 262PHP message: PHP Warning:  Trying to access
array offset on value of type null in /var/www/baikal/Core/Frameworks/Flake/Framewor
k.php on line 262PHP message: PHP Fatal error:  Uncaught TypeError: Flake\Framework:
:initDbSqlite(): Argument #1 ($config) must be of type array, null given, called in
/var/www/baikal/Core/Frameworks/Flake/Framework.php on line 265 and defined in /var/
www/baikal/Core/Frameworks/Flake/Framework.php:269

Compose:

baikal:
    image: ckulka/baikal:nginx
    container_name: baikal
    restart: always
    ports:
      - "5233:80"
    volumes:
      - ${DOCKER_PATH}/baikal/config:/var/www/baikal/config
      - ${DOCKER_PATH}/baikal/data:/var/www/baikal/Specific
    depends_on:
      - mariadb
ckulka commented 6 months ago

Hi @AlexKalopsia,

This looks like an issue with the Baikal code base, can you please open this issue in the repository of the maintainers of the code base at sabre-io/Baikal?

This repository just packages the Baikal code and provides it as a container image, but doesn't contain or fix the Baikal's code itself.

AlexKalopsia commented 6 months ago

I'll do that, thanks. The reason why I wrote here is that it seems like they bumped their PHP version requirement, and I thought this could be the cause (and connected to how it's packaged here)

ckulka commented 6 months ago

Good point! Can you try the new PHP 8.2 image version? If that resolves the issue, then it is due to the PHP version.

On Fri 26. Apr 2024 at 18:12, Alex Camilleri @.***> wrote:

I'll do that, thanks. The reason why I wrote here is that it seems like they bumped their PHP version requirement, and I thought this could be the cause (and connected to how it's packaged here)

— Reply to this email directly, view it on GitHub https://github.com/ckulka/baikal-docker/issues/183#issuecomment-2079313259, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABD7VLHRJFTVQAMZH2VVBD3Y7JDUTAVCNFSM6AAAAABGTPDKPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZZGMYTGMRVHE . You are receiving this because you were assigned.Message ID: @.***>

AlexKalopsia commented 6 months ago

Seems like the problem didn't get fixed, I'll report to the Baikal team, thank you for the help