Varnish plugin does not work with Varnish 7

Asked by Justin Lloyd

This package's varnish plugin links against libvarnishapi2, which works with Varnish 6 but prevents it from working with Varnish 7, which is linked against libvarnishapi3 (which ships inside the official Varnish 7 package). Are there plans to somehow update this package to accommodate that library change, or perhaps separate out the varnish plugin into a dedicated package, e.g. collectd-varnish?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu collectd Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Which Ubuntu release are you running, which version of collectd and which version of varnish?

What is the output of the commands

uname -a
lsb_release -crid
apt policy libcollectdclient1 varnish

Revision history for this message
Justin Lloyd (justinl) said :
#2

Currently the relevant servers are running Ubuntu 20.04 with Collectd 5.9 out of the default repo and Varnish 6.6 out of the official Varnish Cache repo. I'd like to upgrade to Ubuntu 22.04 (Collectd 5.12) and Varnish 7 out of the Varnish Cache repo.

Current servers:

# uname -a
Linux hostname_redacted 5.15.0-1031-aws #35~20.04.1-Ubuntu SMP Sat Feb 11 16:19:06 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal

# apt policy libcollectdclient1 varnish
libcollectdclient1:
  Installed: (none)
  Candidate: 5.9.2.g-1ubuntu5
  Version table:
     5.9.2.g-1ubuntu5 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
varnish:
  Installed: 6.6.2-1~focal
  Candidate: 6.6.2-1~focal
  Version table:
 *** 6.6.2-1~focal 500
        500 https://packagecloud.io/varnishcache/varnish66/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status
     6.6.1-1~focal 500
        500 https://packagecloud.io/varnishcache/varnish66/ubuntu focal/main amd64 Packages
     6.6.0-1~focal 500
        500 https://packagecloud.io/varnishcache/varnish66/ubuntu focal/main amd64 Packages
     6.2.1-2ubuntu0.2 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
     6.2.1-2 500
        500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 Packages

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Manfred Hampl suggests this article as an answer to your question:
FAQ #3037: “no rolling release”.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

If you are using (or want to use) a foreign version of varnish, then we cannot help.

The packages in the Ubuntu repositories are tested to work together, but if you use a foreign version of varnish, then this is out of scope of the Ubuntu support and you have to help yourself.

Remark:
In Ubuntu 23.04 (published today) there is a package collectd 5.12.0-14 with a recommends/suggests of libvarnishapi3 (from varnish 7.*).
Upgrading to Ubuntu 23.04 should solve your problem; eventually it is possible to install Ubuntu 23.04's collectd packages also on Ubuntu 22.04 (I did not check any details).

Can you help with this problem?

Provide an answer of your own, or ask Justin Lloyd for more information if necessary.

To post a message you must log in.