<?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[Database export error]]></title><description><![CDATA[<p dir="auto">Hi Folks,</p>
<p dir="auto">in order to update netxms to the newest version, I wanted to save my database.<br />
When I'm trying to export it to file,  I get the following error:</p>
<p dir="auto">"Exporting table idata_sc_default<br />
SQL query failed (42P01 ERROR:  relation "idata_sc_default" does not exist<br />
LINE 1: SELECT * FROM idata_sc_default<br />
                      ^):<br />
SELECT * FROM idata_sc_default<br />
Database export failed."</p>
<p dir="auto">"Check-data-tables" and "check" using nxdbmgr says everything is fine. Database is PostgreSQL.<br />
I checked the database tables manually and in deed there is no "idata_sc_default" table.<br />
If there has to be this table, how can I get it back or create it new?<br />
If there is no need for this table, how can I export my database before updating?<br />
Thanks for your help!</p>
]]></description><link>https://forum.netxms.org/topic/6446/database-export-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:55:28 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6446.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Mar 2020 12:01:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Database export error on Mon, 06 Apr 2020 11:35:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">I was a little busy last week.</p>
<p dir="auto">Here's what debug lvl 6 shows:</p>
<blockquote>
<p dir="auto">2020.03.30 02:48:51.256 *D* [poll.conf          ] Primary IP address 1xx.xxx.xxx.21 of node <a href="http://server08.domain.de" rel="nofollow ugc">server08.domain.de</a> [279] found on interface Microsoft Network Adapter Multiplexor Driver of node <a href="http://ilo-server08.domain.de" rel="nofollow ugc">ilo-server08.domain.de</a> [106297]<br />
2020.03.30 02:48:51.256 *D* [poll.conf          ] Node <a href="http://server08.domain.de" rel="nofollow ugc">server08.domain.de</a> [279] is a duplicate of node <a href="http://ilo-server08.domain.de" rel="nofollow ugc">ilo-server08.domain.de</a> [106297]<br />
2020.03.30 02:48:51.256 *D* [poll.conf          ] Removing node <a href="http://ilo-server08.domain.de" rel="nofollow ugc">ilo-server08.domain.de</a> [106297] as duplicate<br />
2020.03.30 02:48:51.256 *D* [                   ] Deleting object 106297 [<a href="http://ilo-server08.domain.de" rel="nofollow ugc">ilo-server08.domain.de</a>]</p>
</blockquote>
<p dir="auto">The problem is appearing at all of our ILOs after we decided to monitor their network.<br />
The servers are in a different network than their ILOs. The ILOs get found and then get deleted.<br />
e.g.: <a href="http://server08.domain.de" rel="nofollow ugc">server08.domain.de</a> has primary IP 192.111.222.21 an <a href="http://ILO-server08.domain.de" rel="nofollow ugc">ILO-server08.domain.de</a> has IP 192.111.100.8.</p>
<p dir="auto">Best regards<br />
Sebastian</p>
]]></description><link>https://forum.netxms.org/post/27660</link><guid isPermaLink="true">https://forum.netxms.org/post/27660</guid><dc:creator><![CDATA[Meandmybrain]]></dc:creator><pubDate>Mon, 06 Apr 2020 11:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Fri, 20 Mar 2020 08:14:10 GMT]]></title><description><![CDATA[<p dir="auto">It could also be bug in deduplication (when server decides that two nodes are in fact represent same device and deletes one of them). You can try to turn deduplication off by setting configuration parameter NetworkDiscovery.MergeDuplicateNodes to false. Also, try to set debug level to 6, create node, wait for it to disappear, and show log file filtered by that node name.<br />
Also, try to execute command on debug console</p>
<pre><code>show object name
</code></pre>
<p dir="auto">replacing nme with actual name of disappeared node.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27607</link><guid isPermaLink="true">https://forum.netxms.org/post/27607</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 20 Mar 2020 08:14:10 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Thu, 19 Mar 2020 08:40:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">there are no errors in the log-file, if I checked the right one. (which is set in netxmxd.conf?).<br />
netxmsd.conf is:</p>
<p dir="auto">"DBDriver = pgsql.ddr<br />
DBServer = localhost<br />
DBName = netxms<br />
DBLogin = xxxxx<br />
DBPassword = xxxxxx<br />
LogFailedSQLQueries = yes<br />
LogFile = /var/log/netxmsd"</p>
<p dir="auto">In server configuration, "DeleteUnreachableNodesPeriod" is set to 0.</p>
<p dir="auto">Edit: I added one oft the new nodes manually and after a while this one also disappears.</p>
<p dir="auto">Kind regards,<br />
Sebastian</p>
]]></description><link>https://forum.netxms.org/post/27600</link><guid isPermaLink="true">https://forum.netxms.org/post/27600</guid><dc:creator><![CDATA[Meandmybrain]]></dc:creator><pubDate>Thu, 19 Mar 2020 08:40:18 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Wed, 18 Mar 2020 13:28:57 GMT]]></title><description><![CDATA[<p dir="auto">idata_sc* tables are only needed for TimescaleDB deployment, so it definitely is export bug.</p>
<p dir="auto">As for disappearing nodes - do you have any SQL errors in server log?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27589</link><guid isPermaLink="true">https://forum.netxms.org/post/27589</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 18 Mar 2020 13:28:57 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Wed, 18 Mar 2020 12:38:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/27577">Database export error</a>:</p>
<blockquote>
<p dir="auto">Hi,</p>
<p dir="auto">what exact version you are using? Please show content of table "metadata".</p>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">Hi Victor,</p>
<p dir="auto">now I'm on version 3.2.400.</p>
<p dir="auto">I played along a little bit with excluding tables until the export worked.<br />
Following tables needed to be skipped:</p>
<p dir="auto">idata_sc_default<br />
idata_sc_7<br />
idata_sc_30<br />
idata_sc_90<br />
idata_sc_180<br />
idata_sc_other<br />
tdata_sc_default<br />
tdata_sc_7<br />
tdata_sc_30<br />
tdata_sc_90<br />
tdata_sc_180<br />
tdata_sc_other<br />
idata_83292</p>
<p dir="auto">And here is the metadata-table:</p>
<p dir="auto">          var_name           |                                                                                              var_value<br />
-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br />
 SchemaVersion               | 700<br />
 Syntax                      | PGSQL<br />
 IDataIndexCreationCommand_0 | CREATE INDEX idx_idata_%d_id_timestamp ON idata_%d(item_id,idata_timestamp DESC)<br />
 TDataTableCreationCommand_0 | CREATE TABLE tdata_%d (item_id integer not null,tdata_timestamp integer not null,tdata_value text null)<br />
 TDataIndexCreationCommand_0 | CREATE INDEX idx_tdata_%d ON tdata_%d(item_id,tdata_timestamp)<br />
 LocationHistory             | CREATE TABLE gps_history_%d (latitude varchar(20), longitude varchar(20), accuracy integer not null, start_timest          var_name           |                                                                                              var_value                                                                                 <br />
-----------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br />
 SchemaVersion               | 700<br />
 Syntax                      | PGSQL<br />
 IDataIndexCreationCommand_0 | CREATE INDEX idx_idata_%d_id_timestamp ON idata_%d(item_id,idata_timestamp DESC)<br />
 TDataTableCreationCommand_0 | CREATE TABLE tdata_%d (item_id integer not null,tdata_timestamp integer not null,tdata_value text null)<br />
 TDataIndexCreationCommand_0 | CREATE INDEX idx_tdata_%d ON tdata_%d(item_id,tdata_timestamp)<br />
 LocationHistory             | CREATE TABLE gps_history_%d (latitude varchar(20), longitude varchar(20), accuracy integer not null, start_timestamp integer not null, end_timestamp integer not null, PRIMARY KEY(start_timestamp))<br />
 ServerID                    | 2E2D7FC5BAC725ED<br />
 SingeTablePerfData          | 0<br />
 SchemaVersionLevel.30       | 102<br />
 SchemaVersionLevel.22       | 59<br />
 SchemaVersionLevel.31       | 10<br />
 SchemaVersionMajor          | 32<br />
 IDataTableCreationCommand   | CREATE TABLE idata_%d (item_id integer not null,idata_timestamp integer not null,idata_value varchar(255) null,raw_value varchar(255) null)<br />
 SchemaVersionMinor          | 12<br />
(14 rows)</p>
<p dir="auto">(END) </p>
<p dir="auto">Edit: Now there is another problem, maybe it depends on the "missing-table-problem" an would have appeared befor updating netxms:<br />
We put 4 new devices into our network, which are found via active network discovery. After a while, they disappear in netxms and get found within the next network discovery. This kept repeading.</p>
<p dir="auto">Kind regards<br />
Sebastian</p>
]]></description><link>https://forum.netxms.org/post/27586</link><guid isPermaLink="true">https://forum.netxms.org/post/27586</guid><dc:creator><![CDATA[Meandmybrain]]></dc:creator><pubDate>Wed, 18 Mar 2020 12:38:34 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Wed, 18 Mar 2020 12:16:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/woody" aria-label="Profile: woody">@<bdi>woody</bdi></a> said in <a href="/post/27563">Database export error</a>:</p>
<blockquote>
<p dir="auto">Hello,<br />
netxms has fixed many bugs with the latest version.<br />
I think you can just upgrade it.<br />
I never had problems oder data loss while upgrading.</p>
<p dir="auto">Best regards<br />
Woody</p>
</blockquote>
<p dir="auto">Upgrade works but error is still there</p>
]]></description><link>https://forum.netxms.org/post/27585</link><guid isPermaLink="true">https://forum.netxms.org/post/27585</guid><dc:creator><![CDATA[Meandmybrain]]></dc:creator><pubDate>Wed, 18 Mar 2020 12:16:15 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Wed, 18 Mar 2020 08:43:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">what exact version you are using? Please show content of table "metadata".</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27577</link><guid isPermaLink="true">https://forum.netxms.org/post/27577</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 18 Mar 2020 08:43:09 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Mon, 16 Mar 2020 11:32:50 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
netxms has fixed many bugs with the latest version.<br />
I think you can just upgrade it.<br />
I never had problems oder data loss while upgrading.</p>
<p dir="auto">Best regards<br />
Woody</p>
]]></description><link>https://forum.netxms.org/post/27563</link><guid isPermaLink="true">https://forum.netxms.org/post/27563</guid><dc:creator><![CDATA[Woody]]></dc:creator><pubDate>Mon, 16 Mar 2020 11:32:50 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Mon, 16 Mar 2020 09:34:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Yes, I used nxdbmgr export command, giving the specified error.<br />
I know pg_dump, used this and have a dump of my database, but the problem is still the missing table.<br />
I'd like to work with nxdbmgr instead of using pgsql for export/dump.<br />
Maybe it will be created after updating netxms?</p>
]]></description><link>https://forum.netxms.org/post/27561</link><guid isPermaLink="true">https://forum.netxms.org/post/27561</guid><dc:creator><![CDATA[Meandmybrain]]></dc:creator><pubDate>Mon, 16 Mar 2020 09:34:07 GMT</pubDate></item><item><title><![CDATA[Reply to Database export error on Sun, 15 Mar 2020 19:33:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
did you use the <em>nxdbmgr export</em> command?<br />
If this doesn't work you can dump the database (pg_dump, mysqldump, exp, etc.).<br />
You can dump database while netxmsd is running.<br />
Here is the documentation for PostgreSQL.<br />
<a href="https://www.postgresql.org/docs/current/backup-dump.html" rel="nofollow ugc">https://www.postgresql.org/docs/current/backup-dump.html</a></p>
<p dir="auto">Best regards<br />
Woody</p>
]]></description><link>https://forum.netxms.org/post/27559</link><guid isPermaLink="true">https://forum.netxms.org/post/27559</guid><dc:creator><![CDATA[Woody]]></dc:creator><pubDate>Sun, 15 Mar 2020 19:33:48 GMT</pubDate></item></channel></rss>