Ad Widget

Collapse

Error connecting to database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DSI_agglo
    Member
    • Jul 2019
    • 35

    #1

    Error connecting to database

    Hello,

    My zabbix server says me that : "Database error : Error connecting to database".

    I've checked the logs :

    -- Logs begin at Mon 2018-05-14 14:55:47 CEST, end at Mon 2019-09-02 10:09:01 CEST. --
    sept. 02 09:59:25 S19029 systemd[1]: Starting Zabbix Server...
    sept. 02 09:59:34 S19029 systemd[1]: zabbix-server.service: Supervising process 1533 which is not our child. We'll most likely not notice when it exits.
    sept. 02 09:59:34 S19029 systemd[1]: Started Zabbix Server.
    sept. 02 10:01:26 S19029 systemd[1]: Stopping Zabbix Server...
    sept. 02 10:01:26 S19029 systemd[1]: zabbix-server.service: Killing process 1533 (zabbix_server) with signal SIGKILL.
    sept. 02 10:01:26 S19029 systemd[1]: zabbix-server.service: Killing process 1533 (zabbix_server) with signal SIGKILL.
    sept. 02 10:01:26 S19029 systemd[1]: Stopped Zabbix Server.
    sept. 02 10:01:26 S19029 systemd[1]: zabbix-server.service: Found left-over process 1533 (zabbix_server) in control group while starting unit. Ignoring.
    sept. 02 10:01:26 S19029 systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
    sept. 02 10:01:26 S19029 systemd[1]: Starting Zabbix Server...
    sept. 02 10:01:26 S19029 systemd[1]: zabbix-server.service: Supervising process 2196 which is not our child. We'll most likely not notice when it exits.
    sept. 02 10:01:26 S19029 systemd[1]: Started Zabbix Server.


    I have nothning in my /var/log/zabbix/zabbix-server.log

    Thank you for your help.
    Last edited by DSI_agglo; 02-09-2019, 10:09.
  • DSI_agglo
    Member
    • Jul 2019
    • 35

    #2
    I have this errors in the zabbix_server.log.1 :

    1914:20190831:032427.921 database is down: reconnecting in 10 seconds
    1939:20190831:032428.738 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
    could not create socket: Address family not supported by protocol

    1939:20190831:032428.738 database is down: reconnecting in 10 seconds
    1956:20190831:032428.780 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
    could not create socket: Address family not supported by protocol

    1956:20190831:032428.780 database is down: reconnecting in 10 seconds
    1923:20190831:032429.030 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
    could not create socket: Address family not supported by protocol

    1923:20190831:032429.030 database is down: reconnecting in 10 seconds
    1955:20190831:032429.498 fping failed: no output
    1955:20190831:032430.518 fping failed: no output
    1955:20190831:032431.527 fping failed: no output
    1955:20190831:032432.536 fping failed: no output
    1955:20190831:032433.546 fping failed: no output
    1955:20190831:032434.555 fping failed: no output
    1955:20190831:032435.566 fping failed: no output
    1937:20190831:032435.592 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused
    Is the server running on host "localhost" (127.0.0.1) and accepting
    TCP/IP connections on port 5432?
    could not create socket: Address family not supported by protocol

    1937:20190831:032435.592 database is down: reconnecting in 10 seconds
    1913:20190831:032435.592 [Z3001] connection to database 'zabbix' failed: [0] could not connect to server: Connection refused
    Is the server running on host "lroot@S19029:/var/log/zabbix#

    Comment

    Working...