<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Aaron,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for your suggestion! I had the technical team run RT-Validator with links-only. This fixed the links in the “Refers to” category, but did not fix
 the tickets in the “Referred to by:” category. We next ran RT Validator with –check—resolve—force and it did not resolve the “Referred to by:” category.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Looking at the output from the RT-Validator run, we received a lot of errors.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">23159 reports of “</span>Record #<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">123456</span> in Transactions. Value of NewValue
 column most probably is an incorrect link”<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">176 reports of</span> “Record #<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">1234567</span> in Transactions. Value of OldValue
 column most probably is an incorrect link”<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20275 reports of</span> “Record #<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">12345</span> in Links. Value of Target column
 most probably is an incorrect link”<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20323 reports of</span>   “Record #<span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">12345</span> in Links. Value of Base column
 most probably is an incorrect link”<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">A little bit of this:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in">Warning: Use of "localtime" without parentheses is ambiguous at /public/server/apps/rt-4.2.11/sbin/../lib/RT/Interface/Email.pm line 526.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">[7344] [Thu Oct 22 21:59:40 2015] [warning]: Nonexistant status refferred in action in default lifecycle at /public/server/apps/rt-4.2.11/sbin/../lib/RT/Lifecycle.pm line 744. (/public/server/apps/rt-4.2.11/sbin/../lib/RT/Lifecycle.pm:744)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">A little bit of that:</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">[7344] [Thu Oct 22 22:00:15 2015] [warning]: DBD::Oracle::st execute failed: ORA-00001: unique constraint (RT3EMTS.LINKS1) violated (DBD ERROR: OCIStmtExecute) [for Statement "UPDATE Links SET Base = CONCAT(?, SUBSTR(Base,
 ?)) WHERE Base LIKE ?" with ParamValues: :p1='fsck.com-rt://abc.com', :p2=26, :p3="fsck.com-rt://example.com/%"] at ./rt-validator line 1316. (./rt-validator:1316)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">[7344] [Thu Oct 22 22:00:15 2015] [critical]: couldn't execute UPDATE Links SET Base = CONCAT(?, SUBSTR(Base, ?)) WHERE Base LIKE ?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            Error: ORA-00001: unique constraint (RT3EMTS.LINKS1) violated (DBD ERROR: OCIStmtExecute) at ./rt-validator line 1316. (/public/server/apps/rt-4.2.11/sbin/../lib/RT.pm:389)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">couldn't execute UPDATE Links SET Base = CONCAT(?, SUBSTR(Base, ?)) WHERE Base LIKE ?<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            Error: ORA-00001: unique constraint (RT3EMTS.LINKS1) violated (DBD ERROR: OCIStmtExecute) at ./rt-validator line 1316.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Warning: Use of "localtime" without parentheses is ambiguous at /public/server/apps/rt-4.2.11/sbin/../lib/RT/Interface/Email.pm line 526.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">[15012] [Fri Oct 23 02:23:07 2015] [warning]: Nonexistant status refferred in action in default lifecycle at /public/server/apps/rt-4.2.11/sbin/../lib/RT/Lifecycle.pm line 744. (/public/server/apps/rt-4.2.11/sbin/../lib/RT/Lifecycle.pm:744)<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Record #3665 in Principals references a nonexistent record in Users<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            id => '3665' => id<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Record #3356 in GroupMembers references a nonexistent record in Principals<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            MemberId => '3665' => id<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">                        <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Record #1356849 in CachedGroupMembers references a nonexistent record in GroupMembers<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            GroupId => '5' => GroupId<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            MemberId => '3665' => MemberId<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            <o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Record #328577 in Transactions references a nonexistent record in Groups<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            ObjectId => '64505' => id<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            Transaction #328577 -> object RT::Group #64505<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">Record #3042 in ObjectCustomFieldValues references a nonexistent record in Articles<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in">            ObjectId => '8' => id<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The entire output is around 2580 pages.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Prior to the upgrade (with all the links working), I printed off the System Configuration webpage. I just double checked and our Organization was ‘abc.com’
 . In our system configuration after the upgrade(with broken links), the organization is ‘abc.com’.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Would having the app down effect the RT-Validator? My technical team did not take Request Tracker down during the process and they were wondering if this could
 make a difference. Is there anything else we can do or check?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thank you for your time and support.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Sincerely,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Greg<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Aaron Guise [mailto:aaron@guise.net.nz]
<br>
<b>Sent:</b> Thursday, October 22, 2015 5:43 AM<br>
<b>To:</b> Hummer, Greg<br>
<b>Cc:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> Re: [rt-users] Ticket Links missing post upgrade/conversion to Oracle 4.2.11.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Verdana","sans-serif";color:#666666">Hi Greg,
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Verdana","sans-serif";color:#666666">This certainly sounds like a mismatch as Maik suggested.   This happens when I refresh my test/dev instance of RT from production also.  
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Verdana","sans-serif";color:#666666">I then run the rt-validator over the database and this corrects all the mismatched links.  This is needed as I use the server hostname as the Organization
 and this does differ between environments.   <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-family:"Verdana","sans-serif";color:#666666">I simply import the database and then execute /opt/rt4/sbin/rt-validator --check --resolve --force
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Verdana","sans-serif";color:#666666">Once that is completed all ticket links are working again.<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal"><b>Regards,</b><br>
<br>
<b>Aaron Guise</b><o:p></o:p></p>
<div>
<div>
<blockquote style="margin-left:0in;margin-top:.25in;margin-right:0in;margin-bottom:.25in">
<p><b><img width="25" height="22" id="_x0000_i1025" src="http://www.guise.net.nz/images/signatures/ph.jpg">  07 850 3231<br>
<img width="30" height="24" id="_x0000_i1026" src="http://www.guise.net.nz/images/signatures/mob.gif">027 704 5306<br>
<img width="29" height="26" id="_x0000_i1027" src="http://www.guise.net.nz/images/signatures/email.gif"><a href="mailto:aaron@guise.net.nz" target="_blank">aaron@guise.net.nz</a><br>
 </b><br>
<img border="0" height="30" id="_x0000_i1028" src="http://www.guise.net.nz/images/signatures/itil_logo.gif">  <img border="0" id="_x0000_i1029" src="http://www.guise.net.nz/images/signatures/officiallogo-nd-25.jpg">  <img border="0" height="30" id="_x0000_i1030" src="http://www.guise.net.nz/images/signatures/ubuntu.png"> <a href="http://nz.linkedin.com/pub/aaron-guise/35/953/b86" target="_blank"><span style="text-decoration:none"><img border="0" id="_x0000_i1031" src="http://www.linkedin.com/img/webpromo/btn_profile_greytxt_80x15.png"></span></a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Oct 14, 2015 at 3:23 AM, Hummer, Greg <<a href="mailto:Greg_Hummer@sra.com" target="_blank">Greg_Hummer@sra.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Good morning, Maik.<br>
<br>
My technical team checked our production RT and found the $organization variable. It appeared to be correct, however, they were unsure what you meant when you said (<i>It must fit to the values of field "base" and "target" in table "links"</i>)<i>.</i> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Can you provide more directions on what you meant? The more specific you can be, the better it would be for my non-Request Tracker
 DBA's. </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Some additional information: we have a stage server that is currently running the same version of request tracker (4.2.11 Oracle).
 It is a copy of our production database from a few months ago. It is showing the ticket links and has the same $</span><span style="font-family:"Tahoma","sans-serif";color:black">Organization</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> variable
 as the production account.</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Thanks for the help!</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black">Greg</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:black"><br>
________________________________________<br>
From: rt-users [<a href="mailto:rt-users-bounces@lists.bestpractical.com" target="_blank">rt-users-bounces@lists.bestpractical.com</a>] on behalf of Maik Nergert [<a href="mailto:maik.nergert@uni-hamburg.de" target="_blank">maik.nergert@uni-hamburg.de</a>]<br>
Sent: Friday, October 09, 2015 2:12 AM<br>
To: <a href="mailto:rt-users@lists.bestpractical.com" target="_blank">rt-users@lists.bestpractical.com</a><br>
Subject: Re: [rt-users] Ticket Links missing post upgrade/conversion to Oracle 4.2.11.<br>
<br>
Hey Greg,<br>
<br>
please check if your $Organization variable is set in RT_SiteConfig.pm<br>
It must fit to the values of field "base" and "target" in table "links"<br>
<br>
If your code snipped is correct then<br>
Set( $Organization, '<a href="http://example.com" target="_blank">example.com</a>' );<br>
<br>
<br>
best<br>
Maik<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>