<?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 Upgrade Fails 3.8.366]]></title><description><![CDATA[<p dir="auto">We upgraded from NetXMS 3.8.314 to 3.8.366 (Under Windows 2019 Server using Microsoft SQL 2019) and the database upgrade is failing. nxdbmgr error below. Anyone have any ideas on how to proceed? Thanks</p>
<p dir="auto">E:\NetXMS\bin\nxdbmgr.exe -t upgrade<br />
NetXMS Database Manager Version 3.8.366 Build 3.8-366-gd7bdc676e2 (UNICODE)</p>
<p dir="auto">Upgrading database...<br />
Upgrading from version 38.16 to 38.17<br />
&gt;&gt;&gt; ALTER TABLE alarms ADD rule_description varchar(255)<br />
&gt;&gt;&gt; UPDATE alarms SET rule_description=(SELECT REPLACE(REPLACE(REPLACE(REPLACE(comments, ?, ' '), ?, ' '), ?, ' '), '  ', ' ') FROM event_policy WHERE event_policy.rule_guid=alarms.rule_guid)<br />
SQL query failed ([Microsoft][SQL Server Native Client 11.0][SQL Server]Argument data type text is invalid for argument 1 of replace function.):<br />
UPDATE alarms SET rule_description=(SELECT REPLACE(REPLACE(REPLACE(REPLACE(comments, ?, ' '), ?, ' '), ?, ' '), '  ', ' ') FROM event_policy WHERE event_policy.rule_guid=alarms.rule_guid)<br />
Rolling back last stage due to upgrade errors...<br />
Database upgrade failed<br />
&gt;&gt;&gt; SELECT var_value FROM metadata WHERE var_name='PendingOnlineUpgrades'</p>
]]></description><link>https://forum.netxms.org/topic/7062/database-upgrade-fails-3.8.366</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:40:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7062.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 May 2021 05:08:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Database Upgrade Fails 3.8.366 on Wed, 26 May 2021 09:22:41 GMT]]></title><description><![CDATA[<p dir="auto">This is now fixed in 3.8.382</p>
]]></description><link>https://forum.netxms.org/post/30050</link><guid isPermaLink="true">https://forum.netxms.org/post/30050</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 26 May 2021 09:22:41 GMT</pubDate></item><item><title><![CDATA[Reply to Database Upgrade Fails 3.8.366 on Wed, 26 May 2021 08:08:49 GMT]]></title><description><![CDATA[<p dir="auto">I had the same problem, but after executing the satements it did work.</p>
]]></description><link>https://forum.netxms.org/post/30049</link><guid isPermaLink="true">https://forum.netxms.org/post/30049</guid><dc:creator><![CDATA[Woody]]></dc:creator><pubDate>Wed, 26 May 2021 08:08:49 GMT</pubDate></item><item><title><![CDATA[Reply to Database Upgrade Fails 3.8.366 on Tue, 25 May 2021 21:21:18 GMT]]></title><description><![CDATA[<p dir="auto">Filipp --</p>
<p dir="auto">Thanks for that. Worked great!</p>
]]></description><link>https://forum.netxms.org/post/30044</link><guid isPermaLink="true">https://forum.netxms.org/post/30044</guid><dc:creator><![CDATA[foxcomm]]></dc:creator><pubDate>Tue, 25 May 2021 21:21:18 GMT</pubDate></item><item><title><![CDATA[Reply to Database Upgrade Fails 3.8.366 on Tue, 25 May 2021 12:53:30 GMT]]></title><description><![CDATA[<p dir="auto">This is excellent.  Worked like a charm!</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.netxms.org/post/30041</link><guid isPermaLink="true">https://forum.netxms.org/post/30041</guid><dc:creator><![CDATA[jmcdole]]></dc:creator><pubDate>Tue, 25 May 2021 12:53:30 GMT</pubDate></item><item><title><![CDATA[Reply to Database Upgrade Fails 3.8.366 on Tue, 25 May 2021 12:12:28 GMT]]></title><description><![CDATA[<p dir="auto">This was addressed in Telegram, let's copy this info here:</p>
<p dir="auto">execute manually the following statements:<br />
ALTER TABLE alarms ADD rule_description varchar(255);<br />
 (may file if alter was already done by nxdbmgr and didn't rolled back - that's ok then</p>
<p dir="auto">UPDATE metadata SET var_value='17' WHERE var_name='SchemaVersionMinor';</p>
<p dir="auto">server should start after that</p>
]]></description><link>https://forum.netxms.org/post/30040</link><guid isPermaLink="true">https://forum.netxms.org/post/30040</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 25 May 2021 12:12:28 GMT</pubDate></item></channel></rss>