Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Error connecting database in init Phase

  • Error connecting database in init Phase

    Posted by dranach on October 19, 2008 at 16:49

    Hello,

    I have following problem when I start pandora_server:

    […]
    Pandora FMS Data Server 2.0 Build PS081014 Copyright (c) 2004-2008 ArticaST
    This program is OpenSource, licensed under the terms of GPL License version 2.
    You can download latest versions and documentation at http://www.pandorafms.org

  • Server basepath is /etc/pandora/pandora_server.conf
  • Server logfile at /var/log/pandora/pandora_server.log
  • Server errorlogfile at /var/log/pandora/pandora_server.error
  • Server incoming directory at /var/spool/pandora/data_in
  • Server keepalive 45
  • Server threshold 5
  • You are running Pandora FMS Data Server.
  • This server is running in MASTER mode.
  • [ERROR] Error connecting database in init Phase. Aborting startup.

    DBI connect(‘pandora:localhost:3306′,’pandora’,…) failed: Access denied for user ‘pandora’@’localhost’ (using password: YES) at /usr/local/share/perl/5.8.8/PandoraFMS/Config.pm line 518
    Cannot start Pandora FMS Data Server. Aborted.
    #

    Is there anyone who can help me solve this problem?
    Everything else is, I guess, correctly configured (I get data in my ‘data_in’ folder).
    Unfortunately I’m not very knowledgeable on databases 🙁
    Any help is greatly appreciated.

manu replied 16 years, 4 months ago 3 Members · 9 Replies
  • 9 Replies
    • dranach

      Member
      October 19, 2008 at 16:58
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      I’m sorry, problem solved.

      Please disregard my question..

    • ttlang

      Member
      October 21, 2008 at 19:30
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      amini,
      I had this same problem but could not figure it out.

      How did you solve it?

    • manu

      Member
      October 22, 2008 at 01:54
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Ok, let’s go step by step
      How did you install the console? Did you use the wizard? If so, you have to have the file /var/www/pandora_console/include/config.php where you can find the password.

      That password has to be put in /etc/pandora/pandora_server.conf

    • dranach

      Member
      October 26, 2008 at 07:12
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      The solution to my problem was actually quite simple: I had to (manually) start all my servers…
      For some reason they didn’t start automatically, but now they do.

    • manu

      Member
      October 26, 2008 at 07:25
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Yes, you always need to start them manually once you installed everything.
      If you used the installer, they will start automatically every time you restart the server (in case you needed to)

    • dranach

      Member
      October 26, 2008 at 12:13
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Hello Manu,

      Indeed, it is like you say..

      I still have one small related problem, though, but not so urgent (or important for the moment):
      When I start the Pandora FMS server, all the servers come up, but right after pandora_plugin goes down.
      But each time it goes down, I do a manual start for the plugin-server, it comes back up, and stays up.

      Strange problem, but like I said, not so urgent because I’m not using any plugins right now.
      Besides, this is a testing installation, that’s why I shut evertything down when I’m done for the day.
      So, if I should have to restart it manually and afterwards it stays up, it really wouldn’t be such a big deal..

      Toni

    • manu

      Member
      October 26, 2008 at 13:17
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Hi,

      try to do this:

      /usr/local/bin/pandora_plugin /etc/pandora/pandora_server.conf

      Now we’ll be able to see what it says when it dies

    • dranach

      Member
      October 26, 2008 at 13:44
      0 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      I get the following:

      Pandora FMS Plugin Server 2.0 Build PS081014 Copyright (c) 2004-2008 ArticaST
      This program is OpenSource, licensed under the terms of GPL License version 2.
      You can download latest versions and documentation at http://www.pandorafms.org

    • Server basepath is /etc/pandora/pandora_server.conf
    • Server logfile at /var/log/pandora/pandora_server.log
    • Server errorlogfile at /var/log/pandora/pandora_server.error
    • Server incoming directory at /var/spool/pandora/data_in
    • Server keepalive 45
    • Server threshold 5
    • You are running Pandora FMS Plugin Server.
    • This server is running in MASTER mode.
    • Pandora FMS Server [pandora_Plugin] is running and operative
    • Starting up Plugin Consumer Thread # 0
    • Starting up Plugin Consumer Thread # 1
    • All threads loaded and running
    • Starting up Plugin Consumer Thread # 2
    • Starting up Plugin Producer Thread …
    • Toni

  • manu

    Member
    October 26, 2008 at 15:18
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Yeah, but now till wait it crashes and we’ll see what the error is