Skip to content

Upgrade to 0.11.0 can't connect to SQL anymore #1368

Closed

Description

@WeT-Klb

Checklist

  • I have used the search function for OPEN issues to see if someone else has already submitted the same feature request.
  • I have also used the search function for CLOSED issues to see if the feature is already implemented and just waiting to be released.
  • I will describe the problem with as much detail as possible.
  • This is not about the docker image. In that case, contact the authors of the docker image.

Common problems checklist

  • I have installed the release zip, not the source code zip
  • I have moved the whole, untouched Specific and config folders to the new installation

Baikal version before

0.10.1

Baikal version after

0.10.1

PHP version

8.3

Problem you are having

No response

Activity

  1. WeT-Klb commented on Nov 30, 2025

    @WeT-Klb
    Author

    After I replaced all folders but "config" and "Specific" I get this message:

    Baïkal was not able to establish a connexion to the configured MySQL database (as configured in config/baikal.yaml).

    I didn't change anything in that folder.
    When I bring back the "old" folders my Baikal works like it should.

    The yaml file looks like this:

    system:
    configured_version: 0.10.1
    timezone: Europe/Berlin
    card_enabled: true
    cal_enabled: true
    dav_auth_type: Digest
    admin_passwordhash: ----------------------------------------- (only removed here)
    failed_access_message: 'user %u authentication failure for Baikal'
    auth_realm: BaikalDAV
    base_uri: ''
    invite_from: noreply@192.168.1.241
    database:
    sqlite_file: /share/CACHEDEV1_DATA/Web/baikal/Specific/db/db.sqlite
    backend: mysql
    mysql_host: 'localhost:3306'
    mysql_dbname: Baikal
    mysql_username: ----------------------------------------- (only removed here)
    mysql_password: ----------------------------------------- (only removed here)
    encryption_key: ----------------------------------------- (only removed here)
    pgsql_host: ''
    pgsql_dbname: ''
    pgsql_username: ''
    pgsql_password: ''

  2. ByteHamster commented on Nov 30, 2025

    @ByteHamster
    Member

    @mestrode please take a look, you recently changed MySQL auth

  3. WeT-Klb commented on Nov 30, 2025

    @WeT-Klb
    Author

    I am not sure what you mean - I only changed the entries above to keep the secret. Until now all upgrades worked easyly.
    Ich weiß nicht, genau, weas Du meinst, ich habe oben nur die Angaben gestrichelt, damit die Werte nicht sichtbar sind. Bis jetzt haben alle Upgrades problemlos funktioniert.

  4. MatzeKitt commented on Nov 30, 2025

    @MatzeKitt

    I can reproduce the issue with the exact same problem. Copied v0.11.0 from GitHub, copied my baikal.yml from my old instance and tried to access Baikal in the browser:

    Baïkal was not able to establish a connexion to the configured MySQL database (as configured in config/baikal.yaml).

    (By the way, there is a typo in “connextion”, it should be “connection”.)

  5. MatzeKitt commented on Nov 30, 2025

    @MatzeKitt

    Quick fix: You need to add the entry mysql_ca_cert to your baikal.yml:

    database:
        backend: mysql
        mysql_host: '*snip*'
        mysql_dbname: *snip*
        mysql_username: *snip*
        mysql_password: '*snip*'
        mysql_ca_cert: '' # <= ADD THIS
        encryption_key: *snip*
  6. WeT-Klb commented on Nov 30, 2025

    @WeT-Klb
    Author

    Quick fix: You need to add the entry mysql_ca_cert to your baikal.yml:

    database:
    backend: mysql
    mysql_host: 'snip'
    mysql_dbname: snip
    mysql_username: snip
    mysql_password: 'snip'
    mysql_ca_cert: '' # <= ADD THIS
    encryption_key: snip

    Thank you so much - I just did what you suggested and added

    mysql_ca_cert: ''

    to my baikal.yaml and the upgrade worked like before.
    :-)

  7. somakuna commented on Nov 30, 2025

    @somakuna

    Quick fix: You need to add the entry mysql_ca_cert to your baikal.yml:

    database:
    backend: mysql
    mysql_host: 'snip'
    mysql_dbname: snip
    mysql_username: snip
    mysql_password: 'snip'
    mysql_ca_cert: '' # <= ADD THIS
    encryption_key: snip

    Thank you, it works! 👍

  8. Joulinar commented on Nov 30, 2025

    @Joulinar

    I can confirm the workaround as well.

  9. Joulinar commented on Nov 30, 2025

    @Joulinar

    @ByteHamster I can confirm, issue has been fixed with v0.11.1 👍

  10. mestrode commented on Nov 30, 2025

    @mestrode
    Contributor

    Sorry, this was my fault. Thank you for the fast fix! @ByteHamster

  11. Citroene commented on Jan 23, 2026

    @Citroene

    Sorry for bumping this topic.
    But i have the same issue, i upgrade to the latest version (0.11.1).
    I added mysql_ca_cert: '' to the config file and get still this error

    Baïkal was not able to establish a connection to the configured MySQL database (as configured in config/baikal.yaml).

    My config file:

    database:
        sqlite_file: /opt/baikal/Specific/db/db.sqlite
        backend: mysql
        mysql_host: '192.168.30.240:3306'
        mysql_dbname: baikal
        mysql_username: baikal
        mysql_password: '***'
        encryption_key: ***
        mysql_ca_cert: ''
    system:
        configured_version: 0.10.1
        timezone: Europe/Brussels
        card_enabled: true
        cal_enabled: true
        dav_auth_type: Basic
        admin_passwordhash: **
        failed_access_message: 'user %u authentication failure for Baikal'
        auth_realm: BaikalDAV
        base_uri: ''
        invite_from: ''
    
  12. rubenvandeven commented on Oct 25, 2026

    @rubenvandeven

    I ran into this issue as well (version 0.12.1). And could not find any errors in the apache/php logs. I fixed it with the following, hope it helps someone!

    I edited Core/Frameworks/Flake/Framework.php addin on line 341:

    var_dump($e->getMessage());

    Apparently PDO could not find MySQL driver.

    Check if it is installed: php -m | grep -iE 'PDO|pdo_mysql'
    For me it was. Yet I had to run the following to enable it:

    sudo phpenmod -v 8.2 pdo_mysql
    sudo service apache2 restart

    So it was not a Baikal issue, but probably a package upgrade that caused this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions