Failed to start the daemon: err="Failed to create dqlite server: version mismatch

Hello,

I am running lxd on debian 11.7 host. I tried to upgrade the lxd version from 5.9 to 5.15 ( compiled manually from source) and the build was successful but failed to start lxd daemon.

Getting the below error:

ERROR  [2023-07-18T09:11:43+01:00] Failed to start the daemon                    err="Failed to create dqlite server: version mismatch: required version(1.14.x) current version(1.10.x)"
Error: Failed to create dqlite server: version mismatch: required version(1.14.x) current version(1.10.x)

can anyone help me on this?

Thanks in advance

I have compiled from this tarball file https://github.com/canonical/lxd/releases/download/lxd-5.15/lxd-5.15.tar.gz

@tomp any help?

looking at the snapcraft.yaml (to be found in /snap/lxd/current/snap/snapcraft.yaml) of the lxd snap on my system i see:

  dqlite:
    after:
    - raft
    - sqlite
    autotools-configure-parameters:
    - --prefix=
    build-packages:
    - libuv1-dev
    organize:
      usr/lib/: lib/
    plugin: autotools
    prime:
    - lib/libdqlite*so*
    - lib/*/libuv*
    source: https://github.com/canonical/dqlite
    source-depth: 1
    source-type: git
    stage-packages:
    - libuv1

… so it seems to build libdqlite from source instead of using an archive package … you might need to do something similar …

1 Like