<?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[Ubuntu 14.04 / sqLite -  Your database has format version -1, ...]]></title><description><![CDATA[<p dir="auto">Hi,<br />
my environment is:<br />
Ubuntu 64 14.04</p>
<p dir="auto">After install, on init netxmsd, i receve this on log:</p>
<p dir="auto">tail -f /var/log/netxmsd<br />
[03-Jul-2014 17:39:20.382] Log file opened<br />
[03-Jul-2014 17:39:20.382] [DEBUG] Code page set to ASCII<br />
[03-Jul-2014 17:39:20.393] [INFO ] Platform subagent "/usr/lib/netxms/linux.nsm" successfully loaded<br />
[03-Jul-2014 17:39:20.393] [DEBUG] Debug callback set for DB library<br />
[03-Jul-2014 17:39:20.459] [INFO ] Database driver "/usr/local/lib/libnxddr_sqlite.so" loaded and initialized successfully<br />
[03-Jul-2014 17:39:20.466] [DEBUG] New DB connection opened: handle=0x2339eb0<br />
[03-Jul-2014 17:39:20.466] [DEBUG] Successfully connected to database netxms@localhost<br />
[03-Jul-2014 17:39:20.467] [ERROR] <strong>SQL query failed (Query = "SELECT var_value FROM metadata WHERE var_name='SchemaVersion'"): no such table: metadata</strong><br />
[03-Jul-2014 17:39:20.467] [ERROR] <strong>SQL query failed (Query = "SELECT var_value FROM config WHERE var_name='DBFormatVersion'"): no such table: config</strong><br />
[03-Jul-2014 17:39:20.467] [ERROR] <strong>Your database has format version -1, but server is compiled for version 318</strong></p>
]]></description><link>https://forum.netxms.org/topic/3251/ubuntu-14.04-sqlite-your-database-has-format-version-1-...</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:10:24 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3251.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jul 2014 20:45:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ubuntu 14.04 / sqLite -  Your database has format version -1, ... on Fri, 04 Jul 2014 09:45:09 GMT]]></title><description><![CDATA[<p dir="auto">You need to create all required tables and load initial configuration. This can be done with "nxdbmgr init path_to_sql_file" command, for example:</p>
<pre><code>nxdbmgr init /opt/netxms/share/netxms/sql/dbinit_pgsql.sql
</code></pre>
<p dir="auto">You need to change path (/opt/netxms/share/netxms/sql/) to conform your installation, and please note, that file name is different for different database types:</p>
<pre><code>AirAlk:~() $ ls -l /opt/netxms/share/netxms/sql/dbinit_*.sql
-rw-r--r--  1 alk  admin  120673 Jun 22 22:17 /opt/netxms/share/netxms/sql/dbinit_db2.sql
-rw-r--r--  1 alk  admin  119910 Jun 22 22:17 /opt/netxms/share/netxms/sql/dbinit_mssql.sql
-rw-r--r--  1 alk  admin  112856 Jun 22 22:17 /opt/netxms/share/netxms/sql/dbinit_mysql.sql
-rw-r--r--  1 alk  admin  120498 Jun 22 22:17 /opt/netxms/share/netxms/sql/dbinit_oracle.sql
-rw-r--r--  1 alk  admin  117540 Jun 22 22:17 /opt/netxms/share/netxms/sql/dbinit_pgsql.sql
-rw-r--r--  1 alk  admin  118248 Jun 22 22:17 /opt/netxms/share/netxms/sql/dbinit_sqlite.sql
</code></pre>
<p dir="auto">In your case, most likely command will be</p>
<pre><code>nxdbmgr init /usr/share/netxms/sql/dbinit_sqlite.sql
</code></pre>
<p dir="auto">NB! We strongly suggest not to use SQLite for anything than testing or development</p>
]]></description><link>https://forum.netxms.org/post/14332</link><guid isPermaLink="true">https://forum.netxms.org/post/14332</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Fri, 04 Jul 2014 09:45:09 GMT</pubDate></item></channel></rss>