Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2585

zabbix Packages: postremove script assume zabbix server/proxy are running

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Installation (I)
    • Labels:
    • Environment:
      operating system Debian

      Description

      When purge the zabbix server packages (any) and the serve are not runnign a error raised, due script postrm/prerm assumes that a possitive result must return from killed proces

      sysmonitor:~# /etc/init.d/zabbix-server stop
      Stopping Zabbix server: zabbix_server.
      sysmonitor:~# aptitude
      (Reading database ... 26430 files and directories currently installed.)
      Removing zabbix-server-pgsql ...
      Stopping Zabbix server: zabbix_serverNo process in pidfile `/var/run/zabbix/zabbix_server.pid' found running; none killed.
      Purging configuration files for zabbix-server-pgsql ...
      zabbix_server: no process killed
      dpkg: error processing zabbix-server-pgsql (--purge):
      subprocess post-removal script returned error exit status 1
      Processing triggers for man-db ...
      Errors were encountered while processing:
      zabbix-server-pgsql
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      A package failed to install. Trying to recover:

      I suggest (no that those packages are not officialy from debian and not have the debian certification)
      usage or "killall" if a non spected result are returned from stop service command, or at leas revise the pid file if still exist

      NOTE: the server process must be killed due if thi are not killed database purge cound not performend if postgresql or sqlite are configured.
      NOTE2: same for proxy cases...

        Attachments

          Activity

            People

            Assignee:
            kodai Kodai Terashima
            Reporter:
            mckaygerhard PICCORO Lenz McKAY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: