Ad Widget

Collapse

Zabbix server won't start after upgrading to 3.0.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peske
    Junior Member
    • Aug 2016
    • 2

    #1

    Zabbix server won't start after upgrading to 3.0.4

    Today I've upgraded my zabbix_server to v3.0.4, but since then I cannot start the server anymore. I'm using Ubuntu 14.04. After trying to start the server by executing

    service zabbix-server start

    I don't get any error, but service is not started. I'm not sure which exact version I've had before, but it is 3.xxx for sure, and everything was working perfectly.

    I'm experiencing the same exact issue with zabbix-agent also (after the upgrade).

    Important thing to note that no entries are written to any of log files, as if I've never tried to start the service.

    Is it known issue? Any suggestion how to resolve?

    Thanks!
  • sancho
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2015
    • 295

    #2
    Hello Peke,
    It happens the same, until they find a solution, I'm starting services from CRON
    sudo service zabbix-server start
    sudo service zabbix-agent start

    Comment

    • m.campanelli
      Junior Member
      • Sep 2015
      • 1

      #3
      It's a matter of timing.
      If you check zabbix log ( /var/log/zabbix/zabbix_server.log ) you see that zabbix-server tries to connect to database but this one is not up and running.
      Just give it some time before trying to connect to the database putting the line:
      sleep 30
      in the start case of startup script /etc/init.d/zabbix-server

      The content will change from this:
      case "$1" in
      start)
      log_daemon_msg "Starting $DESC" "$NAME"
      start-stop-daemon --oknodo --start --pidfile $PID \

      to this:
      case "$1" in
      start)
      log_daemon_msg "Starting $DESC" "$NAME"
      sleep 30
      start-stop-daemon --oknodo --start --pidfile $PID \

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by peske
        Today I've upgraded my zabbix_server to v3.0.4, but since then I cannot start the server anymore. I'm using Ubuntu 14.04. After trying to start the server by executing
        [..]
        I'm experiencing the same exact issue with zabbix-agent also (after the upgrade).
        You must check server and agent logs (/var/log/zabbix/zabbix_{agent,server}.log)
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • peske
          Junior Member
          • Aug 2016
          • 2

          #5
          The Solution

          Well, sorry guyz. I've located the problem and it is not related to Zabbix, but to Zabbix Puppet module which I'm using in my infrastructure. It coincides that I've upgraded both Zabbix and the module at the same time, so I've falsely blamed Zabbix.

          For those who encounter a similar problem: you can find more details here.

          Sorry again, and thank you very much!

          Comment

          • lgalford
            Junior Member
            • Aug 2014
            • 21

            #6
            Zabbix Server is not running

            Hi, I have encounter the same problem as you did, where you able to fix it? if so how did you do it,. When I see the Zabbix server log file I Believe that it is running how ever when i go to dashboard I see the message that it is not.

            any help would be really appreciated.

            thanks in advance
            Luis

            Comment

            • Weter
              Junior Member
              • Feb 2016
              • 2

              #7
              Zabbix server won't start after upgrading to 3.0.4

              I'm using OpenSuse 13_1. Zabbix server upgrading to 3.0.4 after restart OS, zabbix is not runnig.

              zabbix-server.log-----

              connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
              2043:20160906:145926.338 Cannot connect to the database. Exiting...
              ---------------

              zabbix is starting only in manual:
              systemctl restar zabbix-server.service

              Comment

              Working...