ExportXMLWordPrintable

    • Type: Incident report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 6.0.49, 7.0.32
    • None
    • Environment:
      Ubuntu 13, Ubuntu 24, Ubuntu 26

      Steps to reproduce:

      1. Changes in configuration...
      2. Navigate to screen title...
      3. Click on screen element...
      4. ...

      Result:
      Starting with zabbix-agent2-plugin-postgresql 7.0.32-1 (and the corresponding 6.0.49 packages), the postinst of the plugin packages contains:

      chown root:zabbix /etc/zabbix/zabbix_agent2.d/plugins.d/postgresql.conf

      The plugin postinst does not create the zabbix group. The group is only created by the zabbix-agent2 postinst. Because zabbix-agent2 has a hard Depends on the plugin packages, dpkg must configure the plugins before the agent. As a result, every fresh install on a host without an existing zabbix group fails. The packages cannot be installed separately in a working order.

       

      # apt install zabbix-agent2 zabbix-agent2-plugin-mongodb zabbix-agent2-plugin-postgresql
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      The following NEW packages will be installed:
        zabbix-agent2 zabbix-agent2-plugin-mongodb zabbix-agent2-plugin-postgresql
      0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
      Need to get 0 B/11.4 MB of archives.
      After this operation, 38.1 MB of additional disk space will be used.
      Selecting previously unselected package zabbix-agent2-plugin-mongodb.
      (Reading database ... 133958 files and directories currently installed.)
      Preparing to unpack .../zabbix-agent2-plugin-mongodb_1%3a6.0.49-1+ubuntu24.04_amd64.deb ...
      Unpacking zabbix-agent2-plugin-mongodb (1:6.0.49-1+ubuntu24.04) ...
      Selecting previously unselected package zabbix-agent2-plugin-postgresql.
      Preparing to unpack .../zabbix-agent2-plugin-postgresql_1%3a6.0.49-1+ubuntu24.04_amd64.deb ...
      Unpacking zabbix-agent2-plugin-postgresql (1:6.0.49-1+ubuntu24.04) ...
      Selecting previously unselected package zabbix-agent2.
      Preparing to unpack .../zabbix-agent2_1%3a6.0.49-1+ubuntu24.04_amd64.deb ...
      Unpacking zabbix-agent2 (1:6.0.49-1+ubuntu24.04) ...
      Setting up zabbix-agent2-plugin-postgresql (1:6.0.49-1+ubuntu24.04) ...
      chown: invalid group: 'root:zabbix'
      dpkg: error processing package zabbix-agent2-plugin-postgresql (--configure):
       installed zabbix-agent2-plugin-postgresql package post-installation script subprocess returned error exit status 1
      Setting up zabbix-agent2-plugin-mongodb (1:6.0.49-1+ubuntu24.04) ...
      chown: invalid group: 'root:zabbix'

       

      Expected:
      All packages install and configure successfully, as with versions before 7.0.32 / 6.0.49.

       

            Assignee:
            Edgars Melveris
            Reporter:
            Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: