<?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[error on export db]]></title><description><![CDATA[<p dir="auto">Hi to all.,</p>
<p dir="auto"> I receive this error when exporting the db, do you know a way to resolve it? .</p>
<p dir="auto">ERROR: SQLite query failed: UNIQUE constraint failed: config.var_name<br />
  Query: INSERT INTO config (var_name,var_value,default_value,is_visible,need_server_restart,data_type,is_public,description,units) VALUES ('DBConnectionPool.MaxLifetime','14400','14400','1','1','I','N','Maximum lifetime (in seconds) for a database connection.','seconds')<br />
Database export failed.</p>
<p dir="auto">Thank you</p>
]]></description><link>https://forum.netxms.org/topic/7846/error-on-export-db</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:20:23 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7846.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Dec 2023 23:21:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error on export db on Sun, 31 Dec 2023 16:25:24 GMT]]></title><description><![CDATA[<p dir="auto">many thanks, but I found more row duplicate  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--confused" style="height:1.4em;width:auto;vertical-align:middle" title=":-\" alt="😕" /> ... then I adopted the query below...</p>
<p dir="auto">delete from config a using config b where a=b and a.ctid &lt; b.ctid;</p>
<p dir="auto">it works well... also for all duplicate on db. </p>
<p dir="auto">I resolved.</p>
]]></description><link>https://forum.netxms.org/post/33116</link><guid isPermaLink="true">https://forum.netxms.org/post/33116</guid><dc:creator><![CDATA[luccosen]]></dc:creator><pubDate>Sun, 31 Dec 2023 16:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 17:09:11 GMT]]></title><description><![CDATA[<p dir="auto">This can be accomplished by copying only one row to a temporary table:</p>
<p dir="auto">create temp table saved as select * from config where var_name = 'DBConnectionPool.MaxLifetime' limit 1;</p>
<p dir="auto">delete from config where var_name = 'DBConnectionPool.MaxLifetime';</p>
<p dir="auto">insert into config select * from saved;</p>
]]></description><link>https://forum.netxms.org/post/33112</link><guid isPermaLink="true">https://forum.netxms.org/post/33112</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 29 Dec 2023 17:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 15:19:10 GMT]]></title><description><![CDATA[<p dir="auto">wich is the correct command to delete only 2 row? </p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.netxms.org/post/33111</link><guid isPermaLink="true">https://forum.netxms.org/post/33111</guid><dc:creator><![CDATA[luccosen]]></dc:creator><pubDate>Fri, 29 Dec 2023 15:19:10 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 15:09:52 GMT]]></title><description><![CDATA[<p dir="auto">ok, I see 3 lines... Have I to delete 2?</p>
]]></description><link>https://forum.netxms.org/post/33110</link><guid isPermaLink="true">https://forum.netxms.org/post/33110</guid><dc:creator><![CDATA[luccosen]]></dc:creator><pubDate>Fri, 29 Dec 2023 15:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 14:16:17 GMT]]></title><description><![CDATA[<p dir="auto">Ok, and if you connect to your DB using postgres tools and run<br />
select * from config where var_name = 'DBConnectionPool.MaxLifetime';</p>
<p dir="auto">how many lines this query will produce?</p>
]]></description><link>https://forum.netxms.org/post/33109</link><guid isPermaLink="true">https://forum.netxms.org/post/33109</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 29 Dec 2023 14:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 13:40:06 GMT]]></title><description><![CDATA[<p dir="auto">only one  :(.</p>
]]></description><link>https://forum.netxms.org/post/33108</link><guid isPermaLink="true">https://forum.netxms.org/post/33108</guid><dc:creator><![CDATA[luccosen]]></dc:creator><pubDate>Fri, 29 Dec 2023 13:40:06 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 13:20:38 GMT]]></title><description><![CDATA[<p dir="auto">So how many entries are there in Configuration-&gt;Server Configuration ?</p>
]]></description><link>https://forum.netxms.org/post/33107</link><guid isPermaLink="true">https://forum.netxms.org/post/33107</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 29 Dec 2023 13:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 13:19:21 GMT]]></title><description><![CDATA[<p dir="auto">I'm using postgres, and netxms 4.4.5.</p>
<p dir="auto">thanks.</p>
]]></description><link>https://forum.netxms.org/post/33106</link><guid isPermaLink="true">https://forum.netxms.org/post/33106</guid><dc:creator><![CDATA[luccosen]]></dc:creator><pubDate>Fri, 29 Dec 2023 13:19:21 GMT</pubDate></item><item><title><![CDATA[Reply to error on export db on Fri, 29 Dec 2023 08:50:11 GMT]]></title><description><![CDATA[<p dir="auto">If you open Configuration-&gt;Server Configuration in management client and search for <br />
DBConnectionPool.MaxLifetime</p>
<p dir="auto"> how many entries with such name are there? If two, delete one of them. </p>
<p dir="auto">What DB are you using, what is NetXMS version?</p>
]]></description><link>https://forum.netxms.org/post/33105</link><guid isPermaLink="true">https://forum.netxms.org/post/33105</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 29 Dec 2023 08:50:11 GMT</pubDate></item></channel></rss>