<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FATAL:  the database system is starting up]]></title><description><![CDATA[<pre><code>14-Mar-2017 21:04:11.465] Log file opened
[14-Mar-2017 21:04:11.884] [INFO ] Platform subagent "/usr/lib/x86_64-linux-gnu/netxms/linux.nsm" successfully loaded
[14-Mar-2017 21:04:12.362] [INFO ] Database driver "pgsql.ddr" loaded and initialized successfully
[14-Mar-2017 21:04:37.534] [ERROR] Unable to establish connection with database (FATAL:  the database system is starting up
FATAL:  the database system is starting up)
</code></pre>
<p dir="auto">Whenever the computer restarts uncleanly I keep getting the above error and netxms doesn't run. Have to start netxsms manually through sudo netxmsd -d</p>
]]></description><link>https://forum.netxms.org/topic/4959/fatal-the-database-system-is-starting-up</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:36:26 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4959.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Mar 2017 18:21:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FATAL:  the database system is starting up on Fri, 17 Mar 2017 19:04:32 GMT]]></title><description><![CDATA[<p dir="auto">insert a line below the "# start daemon" comment:</p>
<pre><code>    sleep 300 # wait 5 minutes
</code></pre>
<p dir="auto">You might want to read a little about shell programming ....</p>
<p dir="auto">Kind regards,<br />
Thomas</p>
]]></description><link>https://forum.netxms.org/post/21977</link><guid isPermaLink="true">https://forum.netxms.org/post/21977</guid><dc:creator><![CDATA[twenrich]]></dc:creator><pubDate>Fri, 17 Mar 2017 19:04:32 GMT</pubDate></item><item><title><![CDATA[Reply to FATAL:  the database system is starting up on Fri, 17 Mar 2017 04:48:06 GMT]]></title><description><![CDATA[<p dir="auto">Yes. That must be the problem. This is what I have in the start up script.</p>
<pre><code># Description:
### END INIT INFO
#######################################
#
# NetXMS server startup script
# For Ubuntu Linux
#
# Written by Dmitry Chernyshov
# dchernyshov@cogito.ru
#
#######################################

NETXMS_BINDIR="~BINDIR~"
NETXMS_LIBDIR="~LIBDIR~"

NAME=netxmsd
DAEMON=$NETXMS_BINDIR/netxmsd
PIDFILE=/var/run/netxmsd.pid

test -x $DAEMON || exit 5


. /lib/lsb/init-functions
case "$1" in
 start)
        # start daemon
        log_daemon_msg "Starting NetXMS server" "netxmsd"
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- -p $PIDFILE -d
        log_end_msg $?
        ;;
 stop)
        log_daemon_msg "Stopping NetXMS server" "netxmsd"
        start-stop-daemon --stop --quiet --pidfile $PIDFILE
        log_end_msg $?
        ;;
 restart)
        $0 stop &amp;&amp; sleep 2 &amp;&amp; $0 start
        ;;
esac
</code></pre>
<p dir="auto">What line should I modify to make the netxms launch after 5 minutes?</p>
]]></description><link>https://forum.netxms.org/post/21975</link><guid isPermaLink="true">https://forum.netxms.org/post/21975</guid><dc:creator><![CDATA[kiki]]></dc:creator><pubDate>Fri, 17 Mar 2017 04:48:06 GMT</pubDate></item><item><title><![CDATA[Reply to FATAL:  the database system is starting up on Thu, 16 Mar 2017 12:21:40 GMT]]></title><description><![CDATA[<p dir="auto">kiki,</p>
<p dir="auto">obviously the DB startup lasts a little longer than usual when recovering from the unclean shutdown.</p>
<p dir="auto">I would try to sleep() for a minute or two in the netxmsd startup file (maybe in /etc/init.d/netxmsd).</p>
<p dir="auto">Kind regards,<br />
Thomas</p>
]]></description><link>https://forum.netxms.org/post/21974</link><guid isPermaLink="true">https://forum.netxms.org/post/21974</guid><dc:creator><![CDATA[twenrich]]></dc:creator><pubDate>Thu, 16 Mar 2017 12:21:40 GMT</pubDate></item></channel></rss>