<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: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=us-ascii"><meta name=Generator content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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=DE-AT link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>Clear the intermediate fee csv uplaod table by<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:35.4pt'><span style='color:#1F497D;mso-fareast-language:EN-US'>truncate billing.billing_fees_raw;<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>then re-run missing cmds from 15424.up, ie.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D;mso-fareast-language:EN-US'>alter table billing_fees_raw<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D;mso-fareast-language:EN-US'>  drop index profsrcdesdirtype_idx,<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D;mso-fareast-language:EN-US'>  add column match_mode enum('regex_longest_pattern', 'regex_longest_match', 'prefix', 'exact_destination') not null default 'regex_longest_pattern', <o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D;mso-fareast-language:EN-US'>  add unique key bfr_srcdestdir_idx (billing_profile_id, type, match_mode, direction, source, destination),<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D;mso-fareast-language:EN-US'>  add key bfr_destsrcdir_idx (billing_profile_id, type, match_mode, destination, source, direction);<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'>finally, register 15424.up in the db-schema table, then the „update_db_schema“ script should be able to skip/continue.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=DE>Von:</span></b><span lang=DE> Spce-user [mailto:spce-user-bounces@lists.sipwise.com] <b>Im Auftrag von </b>Greg Chlopowiec<br><b>Gesendet:</b> Dienstag, 27. November 2018 05:00<br><b>An:</b> spce-user@lists.sipwise.com<br><b>Betreff:</b> [Spce-user] Error while upgrading 5.5.6 to 6.5.2<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Upgrading Sipwise version 5.5.6 to 6.5.2 but I’m getting following error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Applying revision script /usr/share/ngcp-db-schema/db_scripts/diff/15422.up: done<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Applying revision script /usr/share/ngcp-db-schema/db_scripts/diff/15424.up: ERROR 1062 (23000) at line 16: Duplicate entry '10----.-^212612000000.+$' for key 'bfr_srcdestdir_idx'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>failed. :(<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Please resolve the problem and run ngcp-update-db-schema again.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>ERROR: the step '2.8/ngcp_update_db_schema' failed, upgrade aborted!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Need help in resolving this issue. Thank you in advance for all your help.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif'><img width=1 height=1 id="_x0000_i1025" src="https://t.sidekickopen72.com/s1t/o/5/f18dQhb0S7ks8dDMPbW2n0x6l2B9gXrN7sKj6v4LGBMN7gr-d6d_VdbW63K6Fl2zlZNzW2c3Mwb1k1H6H0?si=6223741096558592&pi=2d7b636c-43fc-43f4-a166-b5e860d7751d"><o:p></o:p></span></p></div></body></html>