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

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Installation (I)
    • operating system Debian

      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...

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

              Created:
              Updated: