<?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[SQL errors in 1.2.2 ?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"> Server Platform: Windows Server 2008 R2 standard (64bit)<br />
 NetXMS Server: netxms-1.2.2-x64</p>
<p dir="auto"> Since upgrading to 1.2.2 I'm having intermittent problems viewing graphs of DCI values and getting DCI collection failures in the client. In the server system log I get a number of entries when the DCI collection fails:</p>
<p dir="auto">SQL query failed (Query = "INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,event_severity,event_message,root_event_id,user_tag) VALUES (?,?,?,?,?,?,?,?)"): constraint failed</p>
<p dir="auto">SQL query failed (Query = "INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,event_severity,event_message,root_event_id,user_tag) VALUES (?,?,?,?,?,?,?,?)"): constraint failed</p>
<p dir="auto">SQL query failed (Query = "INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,event_severity,event_message,root_event_id,user_tag) VALUES (?,?,?,?,?,?,?,?)"): column event_id is not unique</p>
<p dir="auto">SQL query failed (Query = "INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,event_severity,event_message,root_event_id,user_tag) VALUES (?,?,?,?,?,?,?,?)"): constraint failed</p>
<p dir="auto">SQL query failed (Query = "INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,event_severity,event_message,root_event_id,user_tag) VALUES (?,?,?,?,?,?,?,?)"): column event_id is not unique</p>
<p dir="auto">SQL query failed (Query = "INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,event_severity,event_message,root_event_id,user_tag) VALUES (?,?,?,?,?,?,?,?)"): constraint failed</p>
<p dir="auto"> I then restart NetXMS Core and its ok again for a while before failing again with the same problem.</p>
<p dir="auto"> Any pointers on where I should be looking would a great help.</p>
<p dir="auto">David</p>
]]></description><link>https://forum.netxms.org/topic/1867/sql-errors-in-1.2.2</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:48:12 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1867.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Aug 2012 11:56:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Wed, 12 Sep 2012 08:09:15 GMT]]></title><description><![CDATA[<p dir="auto">Many thanks Victor, 1.2.3 has sorted the dB import error.</p>
<p dir="auto">Best regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8464</link><guid isPermaLink="true">https://forum.netxms.org/post/8464</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Wed, 12 Sep 2012 08:09:15 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 06 Sep 2012 16:33:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto"> It is too big to email and I don't want to put it on the forum so have you any suggestions on how I can debug the problem ?</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8403</link><guid isPermaLink="true">https://forum.netxms.org/post/8403</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Thu, 06 Sep 2012 16:33:23 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 06 Sep 2012 15:48:26 GMT]]></title><description><![CDATA[<p dir="auto">Sure. Send it to <a href="mailto:victor@netxms.org" rel="nofollow ugc">victor@netxms.org</a>.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8402</link><guid isPermaLink="true">https://forum.netxms.org/post/8402</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 06 Sep 2012 15:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 06 Sep 2012 15:17:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto"> Is it possible to send it to you directly rather than making it publicly available here ?</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8401</link><guid isPermaLink="true">https://forum.netxms.org/post/8401</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Thu, 06 Sep 2012 15:17:09 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 06 Sep 2012 15:03:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Just try to reproduce the error on my system, but without success. Is it possible to send me your SQLite database because I suspect that some combination of data causes this crash. If it violates your security policy, we will find other ways to debug it.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8400</link><guid isPermaLink="true">https://forum.netxms.org/post/8400</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 06 Sep 2012 15:03:32 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 06 Sep 2012 14:04:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"> I forgot to mention, I had to upgrade the database with nxdbmgr.exe upgrade after the init.</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8399</link><guid isPermaLink="true">https://forum.netxms.org/post/8399</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Thu, 06 Sep 2012 14:04:50 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 06 Sep 2012 14:02:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"> I have now installed MySQL Community Server 5.5.27 (x64), re-installed NetXMS to include MySQL client support. I setup MySQL database thus:</p>
<p dir="auto"> mysql&gt; CREATE DATABASE netxms;<br />
 mysql&gt; GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'password'</p>
<p dir="auto"> netxmsd.conf:<br />
---------------------------------------------------------------------------------<br />
#<br />
# NetXMS Server configuration file<br />
# Created by NetXMS Server configuration wizard at Wed May 09 15:31:46 2012<br />
#</p>
<p dir="auto">LogFile = {syslog}<br />
DBDriver = C:\NetXMS\bin\mysql.ddr<br />
DBServer = localhost<br />
DBName = netxms<br />
DBLogin = netxms<br />
DBPassword = password<br />
LogFailedSQLQueries = yes<br />
---------------------------------------------------------------------------------</p>
<p dir="auto">I initialised the database using:</p>
<p dir="auto"> nxdbmgr.exe init C:\NetXMS\lib\sql\dbinit_mysql.sql</p>
<p dir="auto">then I tried importing the existing configuration and history using:</p>
<p dir="auto"> mxdbmgr.exe import C:\NetXMS\database\bn-netxms</p>
<p dir="auto"> this results in the following output:</p>
<p dir="auto">-------------------------------------------------------------------------<br />
NetXMS Database Manager Version 1.2.2</p>
<p dir="auto">WARNING!!!<br />
This operation will clear all configuration and collected data from database.<br />
Are you sure? (Y/N) Y<br />
Database successfully cleared<br />
Importing table config<br />
Importing table config_clob<br />
Importing table users<br />
-------------------------------------------------------------------------</p>
<p dir="auto"> The import generates an exception, logged as follows:</p>
<p dir="auto">-------------------------------------------------------------------------<br />
Faulting application name: nxdbmgr.exe, version: 0.0.0.0, time stamp: 0x500d3368<br />
Faulting module name: libnetxmsw.dll, version: 0.0.0.0, time stamp: 0x500d32f4<br />
Exception code: 0xc0000005<br />
Fault offset: 0x000000000001c5ab<br />
Faulting process id: 0x11b8<br />
Faulting application start time: 0x01cd8c3483769b7d<br />
Faulting application path: C:\NetXMS\bin\nxdbmgr.exe<br />
Faulting module path: C:\NetXMS\bin\libnetxmsw.dll<br />
Report Id: c265019d-f827-11e1-ad02-00155d002212<br />
-------------------------------------------------------------------------</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8398</link><guid isPermaLink="true">https://forum.netxms.org/post/8398</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Thu, 06 Sep 2012 14:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Mon, 03 Sep 2012 15:29:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">There are export/import option in nxdbmgr. What it basically does is exporting data from your existing database into SQLite database file, and the importing into another database. As you have SQLite already, you can try to just create empty database on another engine, create correct netxmsd.conf, and the use your existing database file as input for nxdbmgr import command.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8357</link><guid isPermaLink="true">https://forum.netxms.org/post/8357</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 03 Sep 2012 15:29:01 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Mon, 03 Sep 2012 09:09:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"> Is there an easy way to migrate existing configuration and history to a better dB product ?</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8345</link><guid isPermaLink="true">https://forum.netxms.org/post/8345</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Mon, 03 Sep 2012 09:09:48 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Mon, 03 Sep 2012 09:05:57 GMT]]></title><description><![CDATA[<p dir="auto">Guys... Just a reminder or in case you are not aware. Please do not use SQLite for production. SQLite is not designed to handle big data volumes or a high DB load. Don't get me wrong, SQLite is still a great DB engine and does very well what its designed for. But it's just not up to the task for an average NetXMS production environment. Use NetXMS with SQLite for trying out, testing new features or if you monitor home network with 3 nodes <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> But stay away from it in the production!!! You will be really better off with MySQL, Postgres or Oracle.</p>
<p dir="auto">As for the topic. There is a fix for this specific problem committed yesterday. Well, actually this is a work around some obscure SQLite behaviour (see warning above!). It will go into 1.2.3. If you need it faster feel free to get it off the svn and test <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/8344</link><guid isPermaLink="true">https://forum.netxms.org/post/8344</guid><dc:creator><![CDATA[macro]]></dc:creator><pubDate>Mon, 03 Sep 2012 09:05:57 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Tue, 28 Aug 2012 08:23:00 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"> Anyone any thoughts on this ?</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8271</link><guid isPermaLink="true">https://forum.netxms.org/post/8271</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Tue, 28 Aug 2012 08:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 16 Aug 2012 16:17:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto"> Yes it is SQLite, conf file:</p>
<p dir="auto">LogFile = {syslog}<br />
DBDriver = sqlite.ddr<br />
DBName = C:\NetXMS\database\bn-netxms<br />
LogFailedSQLQueries = yes</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8178</link><guid isPermaLink="true">https://forum.netxms.org/post/8178</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Thu, 16 Aug 2012 16:17:52 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 16 Aug 2012 15:49:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Check netxmsd.conf file, DBDriver parameter.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8177</link><guid isPermaLink="true">https://forum.netxms.org/post/8177</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 16 Aug 2012 15:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 16 Aug 2012 15:29:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto"> It is the one built into the installer, is that SQLite ? The original install was quite some time ago ( 0.x version) and upgraded over time. Is there a way of asking netxms which dB it is using ?</p>
<p dir="auto">Regards,<br />
David</p>
]]></description><link>https://forum.netxms.org/post/8176</link><guid isPermaLink="true">https://forum.netxms.org/post/8176</guid><dc:creator><![CDATA[dhewison]]></dc:creator><pubDate>Thu, 16 Aug 2012 15:29:08 GMT</pubDate></item><item><title><![CDATA[Reply to SQL errors in 1.2.2 ? on Thu, 16 Aug 2012 14:54:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Looks more like a bug. What database you are using and what driver?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/8174</link><guid isPermaLink="true">https://forum.netxms.org/post/8174</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 16 Aug 2012 14:54:37 GMT</pubDate></item></channel></rss>