Ad Widget

Collapse

Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mudit.gupta
    Member
    • Aug 2016
    • 39

    #1

    Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

    Hello

    I am using CentOS 7 and installed Zabbix Server 3.0.4 on this CentOS 7 Machine .

    On front end Zabbix Server shows that its running but when I run the command " service zabbix-server status ". It shows that service is active but when I see more information of command " service zabbix-server status " , It gives an error ::: Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet ) after start


    Can any one help me ?

    Thanks
    Mudit
  • guzzijason
    Senior Member
    • Dec 2015
    • 106

    #2
    Do you have a PidFile defined in zabbix_server.conf? The systemd unit file is expecting the pid file in /run/zabbix/zabbix_server.pid, but if you are changing this path in zabbix_server.conf, it might cause problems. (Also note that there should be a link /var/run -> /run)

    On my server (also CentOS 7), its working fine with:

    PidFile=/var/run/zabbix/zabbix_server.pid


    You also might want to take a look at this: https://support.zabbix.com/browse/ZBX-9867

    It seem other people are reporting the same problem, but it's not clear what the root cause is yet. For me, it just worked OK for whatever reason.

    __Jason

    Comment

    • mudit.gupta
      Member
      • Aug 2016
      • 39

      #3
      Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

      Hello guzzijason

      In my vim /etc/zabbix/zabbix_server.conf ,

      PidFile=/var/run/zabbix/zabbix_server.pid .

      I tried to create link between /var/run -> /run but did not get success .

      Can you please help me and show me that in which things I need to create link ?

      Thanks
      Mudit

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        I've also installed many times Zabbix3.0.4 on CentOS 7,
        but it does not have a thing became such a problem.

        I'm sure in the physical server or virtual environment(VMware, VirtualBox).
        Creating a link is also unnecessary.
        It had been set by default in my environment.

        What kind of environment do you using?
        What are the detailed version of CentOS 7?
        Are you up to date with yum update?

        Comment

        • mudit.gupta
          Member
          • Aug 2016
          • 39

          #5
          Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

          Hello Atsushi

          I am using Virtual Box Environment .

          Detailed report Uname -a has been attached here and yes , yum is updated.

          Thanks
          Mudit
          Last edited by mudit.gupta; 20-02-2017, 11:05.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            Please be some to confirm additional.

            - Did you also update other packages not only the kernel?
            - What are the SELinux mode of? (enforcing? disabled?)
            - Its either Zabbix was installed using the official package?
            - How did you set up in the time to auto-start?

            Comment

            • guzzijason
              Senior Member
              • Dec 2015
              • 106

              #7
              I agree with Atsushi - there should be no need to manually create the /var/run symlink. It should be created automatically during the base OS install, part of the 'filesystem' RPM.

              __Jason

              Comment

              • mudit.gupta
                Member
                • Aug 2016
                • 39

                #8
                Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

                Hello Atsushi

                You :id you also update other packages not only the kernel?
                Me:: I did " yum update all " , will this will other packages also ??

                You :: What are the SELinux mode of? (enforcing? disabled?)
                Me ::: It is disabled .

                You :: Its either Zabbix was installed using the official package?
                Me :: I followed below link completely to install ::
                Install Zabbix server (Network Monitoring tool) on CentOS/RHEL 7/6. This guide will help you to step by step install Zabbix server on a Linux system


                You :: How did you set up in the time to auto-start?
                Me:: vim /etc/httpd/conf.d/zabbix.conf

                php_value date.timezone Asia/Kolkata


                Please guide me .


                Thanks
                Mudit

                Comment

                • Atsushi
                  Senior Member
                  • Aug 2013
                  • 2028

                  #9
                  I've used the systemctl command when setting the automatic start.

                  Code:
                  # systemctl enable zabbix-server
                  # systemctl enable zabbix-agent
                  How did you set to start automatically?

                  Comment

                  • mudit.gupta
                    Member
                    • Aug 2016
                    • 39

                    #10
                    Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

                    Hello Atsushi !!!!! Thank you .

                    I tried the same as you did ::

                    # systemctl enable zabbix-server
                    # systemctl enable zabbix-agent

                    And now I am not getting Error " Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet ) after start " while I check the status of Zabbix-server.

                    I will come here again , if there will be any issue .


                    Thanks
                    Mudit

                    Comment

                    • mudit.gupta
                      Member
                      • Aug 2016
                      • 39

                      #11
                      Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start

                      Yesterday , I am getting the same message :: " Error :: pid file /run/zabbix/zabbix_server.pid not readable (yet?) after start
                      " as I check " service zabbix-server status " on my machine .

                      Any help ?

                      Thanks
                      Mudit

                      Comment

                      • zsg
                        Junior Member
                        Zabbix Certified Specialist
                        • Nov 2010
                        • 2

                        #12
                        Please check this thread:


                        The pid file not being readable was for me that the pid file name in /etc/zabbix/zabbix-server.conf didn't match the one in /usr/lib/systemd/system/zabbix-server.service

                        Comment

                        • aquarios
                          Junior Member
                          • May 2021
                          • 4

                          #13
                          If the Zabbix Server itself is in active (running) state - check it with:
                          Code:
                          systemctl status zabbix-server.service
                          And the last message of the status check is:
                          "Started Zabbix Server."

                          Then it is ok, just the server process had started earlier than the corresponding PID file was created
                          You can check with cat:
                          Code:
                          cat /run/zabbix/zabbix_server.pid

                          Comment

                          Working...