<?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[Problems with startup (DB, service netxmsd)]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">After installation of components I have some problems:</p>
<ul>
<li>i want to initialization DB:<br />
<em>nxdbmgr init /usr/lib/postgresql/9.5/bin/initdb</em></li>
</ul>
<p dir="auto">but result:</p>
<p dir="auto"><strong>SQL query failed (42601 ERROR:  syntax error at or near "<br />
LINE 1:ELF<br />
        ^):<br />
ELF<br />
Database initialization failed</strong></p>
<p dir="auto">In the logfile:</p>
<p dir="auto">*I* Platform subagent "/usr/lib/x86_64-linux-gnu/netxms/linux.nsm" successfully loaded<br />
*I* Database driver "pgsql.ddr" loaded and initialized successfully<br />
*E* SQL query failed (Query = "SELECT var_value FROM metadata WHERE var_name='SchemaVersion'"): 42P01 ERROR:  relation "metadata" does not exist<br />
LINE 1: SELECT var_value FROM metadata WHERE var_name='SchemaVersion...<br />
                              ^<br />
*E* SQL query failed (Query = "SELECT var_value FROM config WHERE var_name='DBFormatVersion'"): 42P01 ERROR:  relation "config" does not exist<br />
LINE 1: SELECT var_value FROM config WHERE var_name='DBFormatVersion...<br />
                              ^<br />
* Unable to get database schema version</p>
<p dir="auto">What I can change to fix it?</p>
<ul>
<li>
<p dir="auto">if I login with admin/netxms in web management console, i always have "Connection refused".</p>
</li>
<li>
<p dir="auto">and one problem yet:</p>
</li>
</ul>
<p dir="auto"><em>root@nxms:~# service netxmsd status</em><br />
<strong>● netxmsd.service - NetXMS Server<br />
   Loaded: loaded (/lib/systemd/system/netxmsd.service; disabled; vendor preset: enabled)<br />
   Active: failed (Result: exit-code) since MSK; 30min ago<br />
  Process: 3172 ExecStart=/usr/bin/netxmsd -d (code=exited, status=0/SUCCESS)<br />
 Main PID: 3176 (code=exited, status=3)</strong></p>
<p dir="auto"><strong>nxms systemd[1]: Starting NetXMS Server...<br />
nxms systemd[1]: netxmsd.service: PID file /var/run/netxmsd.pid not readable (yet?) after start: No s<br />
nxms systemd[1]: Started NetXMS Server.<br />
nxms systemd[1]: netxmsd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED<br />
nxms systemd[1]: netxmsd.service: Unit entered failed state.<br />
nxms systemd[1]: netxmsd.service: Failed with result 'exit-code'.</strong></p>
<p dir="auto">I use:</p>
<ul>
<li>Ubuntu server 16.04</li>
<li>PostgreSQL 9.5.13</li>
<li>tomcat8</li>
</ul>
<p dir="auto">--<br />
Thanks for help</p>
]]></description><link>https://forum.netxms.org/topic/5774/problems-with-startup-db-service-netxmsd</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:23:00 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5774.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Dec 2018 11:21:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problems with startup (DB, service netxmsd) on Wed, 26 Dec 2018 21:56:54 GMT]]></title><description><![CDATA[<p dir="auto">You are trying to import a binary file, not the actual dbinit file.<br />
For Postgres, the file you need to import is named dbinit_pgsql.sql.<br />
The documentation (<a href="https://www.netxms.org/documentation/adminguide/installation.html" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/installation.html</a>) gives the following sample command (your actual paths will likely differ):</p>
<pre><code>/usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_pgsql.sql
</code></pre>
]]></description><link>https://forum.netxms.org/post/25139</link><guid isPermaLink="true">https://forum.netxms.org/post/25139</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Wed, 26 Dec 2018 21:56:54 GMT</pubDate></item></channel></rss>