• Bug#1100165: rabbitmq-server: RabbitMQ can only be upgraded to 4.0 from

    From tuxayo@21:1/5 to All on Wed Mar 12 08:40:01 2025
    Package: rabbitmq-server
    Version: 4.0.5-2
    Severity: important
    X-Debbugs-Cc: victor+debiantickets@tuxayo.net

    Dear Maintainer,

    *** Reporter, please consider answering these questions, where appropriate ***

    * What led up to the situation?
    * What exactly did you do (or not do) that was effective (or
    ineffective)?
    * What was the outcome of this action?
    * What outcome did you expect instead?

    *** End of the template - remove these template lines ***


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.13.5-zen1-1-zen (SMP w/4 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: unable to detect

    Versions of packages rabbitmq-server depends on:
    pn adduser <none>
    pn erlang-base | erlang-base-hipe <none>
    pn erlang-crypto <none>
    pn erlang-eldap <none>
    pn erlang-inets <none>
    pn erlang-mnesia <none>
    pn erlang-os-mon <none>
    pn erlang-parsetools <none>
    pn erlang-public-key <none>
    pn erlang-runtime-tools <none>
    pn erlang-ssl <none>
    pn erlang-syntax-tools <none>
    pn erlang-tools <none>
    pn erlang-xmerl <none>
    pn logrotate <none>
    ii openssl 3.4.1-1
    ii python3 3.13.2-1
    pn socat <none>

    rabbitmq-server recommends no packages.

    rabbitmq-server suggests no packages.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tuxayo@21:1/5 to All on Wed Mar 12 09:30:01 2025
    Dear Maintainer,

    (I'm sorry for the default body template on bug submission. I messed up
    when using a container. It didn't have an editor so reportbug
    malfunctioned and I though the process was to send the bug title and
    metadata from reportbug, and then one could fill the body via email reply)


    * What led up to the situation?

    I was investigating a failure on rabbitmq-server 4.X on a CI build
    testing. Pointing to possibly the packaging needing to create a plugin directory or having a value for the default related config value.

    #15 124.9 Error: :plugins_dir_does_not_exist
    #15 124.9 Arguments given:
    #15 124.9 enable rabbitmq_stomp
    #15 124.9
    #15 124.9 Usage
    #15 124.9
    #15 124.9 rabbitmq-plugins [--node <node>] [--longnames] [--quiet]
    enable <plugin1> [ <plugin2>] | --all [--offline] [--online]

    Another occurrence of the plugin dir issue on another distro: https://wiki.archlinux.org/title/Talk:RabbitMQ#Plugins_Directory_Missing

    So I planned to have a testing install with a rabbitmq instance on 3.X,
    with the plugin, upgrade it and see what happened to the existing plugin
    dir. But then the current issue came up.

    * What exactly did you do (or not do) that was effective (or
    ineffective)?

    So, on existing testing installs or on future upgrades from D12 to D13.
    Rabbit will jump 🐇 from 3.10.8 to 4.0.5.

    But «You can only upgrade to RabbitMQ 4.0 from RabbitMQ 3.13.» https://www.rabbitmq.com/docs/upgrade

    «stable feature flags have to be enabled before the upgrade. The upgrade
    will fail if you miss this step.»

    I'm not sure how to read this but there seem to be stable feature flags
    after 3.10.x https://www.rabbitmq.com/docs/feature-flags#core-feature-flags

    I tried in a D13 container: existing 3.10.x install; rabbitmqctl enable_feature_flag all ; upgrade

    * What was the outcome of this action?

    Can't restart due to missing stream_single_active_consumer.

    Which is listed as being introduced in 3.11.0.

    So 4.0 expects data that was migrated by running a command on a more
    recent 3.X release. But they don't exist on any Debian repo. (And do
    that before upgrading to 4.0) It's impossible without getting another
    release from somewhere else. And then upgrade to 4.0

    So IIUC there is no clean upgrade path possible.

    * What outcome did you expect instead?

    I don't know how such upgrade constrains can be properly handled by
    packaging.

    Arch Linux users can get away with recommending wiping the install.
    (that would likely also circumvent the current issue) https://wiki.archlinux.org/title/RabbitMQ#Upgraded_RabbitMQ_to_latest_version_and_cannot_start
    Maybe any install really needing to not never loose the content of the
    queue would have multiple nodes? Which would be upgraded separately and
    wiping wouldn't be and issue as it will be replicated after.

    I'm not really a user of RabbitMQ so sorry for eventual big
    misunderstandings of the nature of the issue.


    Thanks for you maintenance work.


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)


    --
    tuxayo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)