Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18243

zabbix-agent2.service fails to start on Centos 7

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.2
    • Fix Version/s: 5.0.4rc1, 5.2.0alpha3, 5.2 (plan)
    • Component/s: Packages (C)
    • Labels:
      None
    • Environment:
      Centos 7
    • Team:
      Team I
    • Sprint:
      Sprint 67 (Aug 2020), Sprint 68 (Sep 2020)
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      1. install zabbix-agent2 from Centos 7 repo: https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/
      2. enable zabbix-agent2.service
      3. start zabbix-agent2.service

      Result:
      See log file /var/log/messages

      zabbix_agent2: 2020/08/12 11:24:25.287696 cannot initialize logger: open /var/log/zabbix/zabbix_agent2.log: permission denied
      zabbix_agent2: zabbix_agent2 [24141]: ERROR: cannot initialize logger: open /var/log/zabbix/zabbix_agent2.log: permission denied
      systemd: zabbix-agent2.service: main process exited, code=exited, status=1/FAILURE
      systemd: Unit zabbix-agent2.service entered failed state.
      systemd: zabbix-agent2.service failed.

       

      zabbix_agent2 fails to start because the zabbix user does not have access right to the log file

      Expected:
      the rpm package should create the log file /var/log/zabbix/zabbix_agent2.log

      with the correct access permission/ownership

      workaround: fix the ownership manually:

      chown zabbix /var/log/zabbix/zabbix_agent2.log

        Attachments

          Activity

            People

            Assignee:
            yurii Jurijs Klopovskis
            Reporter:
            tni tni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: