<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I am testing the upgrade from RT 4.0.19 + RTIR 3.0.2  --> RT 4.2.7 + RTIR 3.2.0rc1, and I found a problem when updating RTIR.<br></div><br>The install is based on Debian packages for RT and postgresql 9.1.14. My procedure was:<br><br></div>- Upgrade distro from stable to testing (to get 4.2.7 packages)<br></div>- Upgrade RT packages to 4.2.7 --> package update ok, but the automatic dbconfig-common update process was not successful. I fixed config files manually.<br></div>- Upgrade database (rt-setup-database --action upgrade). --> result OK<br></div>- Disable RTIR and delete its directory<br></div>- Download RTIR 3.2.0rc1<br></div>  - perl Makefile.PL --> I had to install Parse::Boolean from CPAN manually<br></div>  - make<br></div>  - make upgrade-database --> this does not work if you use peer authentication for postgres user. However, I copy the command and execute it with the proper parameters for authentication (including the --package parameter)<br></div><div>    - it asks for the RT::IR version I'm upgrading from.<br></div><div>    - it shows all the RT versions later than RT 3.0, up to 4.2.7, instead of RTIR versions. When I continue (either specifying a target version or not), it gives the following error:<br>        [critical]: DBD::Pg::st execute failed: ERROR:  relation "attributes_id_seq" already exists at /usr/share/request-tracker4/lib/RT/Handle.pm line 528. (/usr/share/request-tracker4/lib/RT.pm:389)<br><br><br></div><div>I guess it's trying to re-apply RT upgrades instead of RTIR's, and failing because they are already applied.<br></div><div>Is there a manual database upgrade progress that I can use? Shoud I use the scripts in $RTIR-HOME/etc/upgrade? In that case how?<br><br></div><div>If I ignore the errors and enable RTIR, there are several errors:<br><br></div><div>- When trying to Edit an RTIR ticket:<br><br>[19654] [Thu Oct 23 
18:12:38 2014] [error]: Can't call method "Name" on an undefined value 
at /usr/local/share/request-tracker4/plugins/RT-IR/lib/RT/IR.pm line 
642.<br><br>Stack:<br>  [/usr/local/share/request-tracker4/plugins/RT-IR/lib/RT/IR.pm:642]<br>  [/usr/local/share/request-tracker4/plugins/RT-IR/html/RTIR/Elements/EditConstituency:83]<br>  [/usr/share/request-tracker4/html/Elements/EditCustomField:111]<br>  [/usr/local/share/request-tracker4/plugins/RT-IR/html/RTIR/Elements/EditRTIRField:48]<br>  [/usr/local/share/request-tracker4/plugins/RT-IR/html/RTIR/Edit.html:119]<br>  [/usr/share/request-tracker4/html/Widgets/TitleBox:56]<br>  [/usr/local/share/request-tracker4/plugins/RT-IR/html/RTIR/Edit.html:130]<br>  [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:681]<br>  [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:369]<br>  [/usr/share/request-tracker4/html/autohandler:53] (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209)<br><br></div><div>I have found that this is due to the Constituency CustomField type set to "Select multiple values" instead of the default "Select one value". This used to work in RTIR 3.0.2.<br>If you reset it back to "Select one value", Edit works.<br><br>Note: our constituencies are created from the web gui, not using the cli tool, since we don't need the advanced ACL features.<br></div><div><br><br></div><div>- When displaying Incident Report, when loading the History area:<br><br>[19654] [Thu Oct 23 18:12:45 2014] [error]: Wide character in subroutine entry at /usr/local/share/request-tracker4/plugins/RT-IR/html/Callbacks/RTIR/Elements/MakeClicky/Default line 252.<br><br>Stack:<br>  [/usr/local/share/request-tracker4/plugins/RT-IR/html/Callbacks/RTIR/Elements/MakeClicky/Default:252]<br>  [/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:205]<br>  [/usr/share/request-tracker4/html/Elements/ShowTransactionAttachments:81]<br>  [/usr/share/request-tracker4/html/Elements/ShowTransaction:72]<br>  [/usr/share/request-tracker4/html/Elements/ShowHistory:121]<br>  [/usr/share/request-tracker4/html/Helpers/TicketHistory:48]<br>  [/usr/share/request-tracker4/html/Helpers/autohandler:51]<br>  [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:681]<br>  [/usr/share/request-tracker4/lib/RT/Interface/Web.pm:369]<br>  [/usr/share/request-tracker4/html/autohandler:53] (/usr/share/request-tracker4/lib/RT/Interface/Web/Handler.pm:209)<br><br></div><div>I have tried leaving MakeClicky options as default with no luck.<br></div><div><br></div><div>Thank you in advance for any hints about the problem!<br><br></div><div>Kind regards,<br>Marcos.<br></div></div><div> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-06 23:13 GMT+02:00 Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com" target="_blank">falcone@bestpractical.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">RTIR 3.2.0rc1 is the first release candidate of RTIR compatible with RT 4.2.<br>
<br>
It is only compatible with RT 4.2.7 and later and will refuse to install<br>
on earlier versions of RT 4.2.<br>
<br>
You should be sure to review both core RT's UPGRADING-4.2 as well as<br>
RTIR's UPGRADING-3.2 documentation.<br>
<br>
<a href="http://download.bestpractical.com/pub/rt/devel/RT-IR-3.2.0rc1.tar.gz" target="_blank">http://download.bestpractical.com/pub/rt/devel/RT-IR-3.2.0rc1.tar.gz</a><br>
<a href="http://download.bestpractical.com/pub/rt/devel/RT-IR-3.2.0rc1.tar.gz.asc" target="_blank">http://download.bestpractical.com/pub/rt/devel/RT-IR-3.2.0rc1.tar.gz.asc</a><br>
<br>
SHA1 sums<br>
<br>
02e3afef82636a1474b01fdd41dbf277868f5cd1  RT-IR-3.2.0rc1.tar.gz<br>
d1fe337868c7edad5a65ff9821c19805de147319  RT-IR-3.2.0rc1.tar.gz.asc<br>
<br>
Numerous internal updates have been made for compatibility with RT 4.2.<br>
If you have local modifications to RTIR you will want to ensure that you<br>
update them for compatibility.  RT 4.2 renamed many components and<br>
introduced a new /static/ root for CSS/JS etc.  As a result, many<br>
components and callbacks in RTIR have also been modified to align with<br>
core renames.  You should be sure to review UPGRADING-4.2 in core RT.<br>
<br>
RTIR makes use of RT's Custom Field Grouping feature, you can read more<br>
about it in RTIR_Config.pm and make use of it to organize both RTIR's<br>
core Custom Fields as well as your site-specific fields.<br>
<br>
RTIR's Constituencies have been refactored and will now provide better<br>
error messages and will make better use of caching and other performance<br>
enhancements.  This release also includes recent bugfixes from 3.0 to<br>
ensure that Constituency does not lose state during ticket creation and<br>
editing.<br>
<br>
RTIR's linkification of ticket histories will be cached by default on<br>
4.2 which will assist with ticket history rendering on second load.<br>
<br>
RTIR now also uses RT's delayed-load for history, causing history to be<br>
loaded via JavaScript after the rest of the page is rendered, improving<br>
page load times.<br>
<br>
When linking an Incident Report to an Incident after Incident Creation,<br>
the IR IP Custom Fields will be automatically copied.  Framework now<br>
exists to easily add new Scrips to copy other Custom Fields.<br>
Particularly useful if you link IRs to Incidents using the API.<br>
<br>
When splitting a ticket, you can now change Due and Starts.  In addition,<br>
you can now manually change an Incident's Due Date.<br>
<br>
RTIR now uses core's Forward functionality, allowing a message to be<br>
included with a forward, as well as forwarding of a full ticket in<br>
addition to transactions.  Forwards are recorded in the history of a<br>
ticket.<br>
<br>
RTIR now has access to core's improved charting, allowing grouping by<br>
multiple attributes and calculation of some ticket statistics.<br>
<br>
The $RTIR_OldestRelatedTickets will now apply to tickets updated in the<br>
last n days for any Lookup search.<br>
<br>
In addition to GnuPG support, RTIR can now leverage RT's S/MIME<br>
integration.  See the core RT documentation for specifics and<br>
configuration.<br>
<br>
Users who are members of a DutyTeam will now be redirected to the RTIR<br>
Homepage on login.<br>
<br>
Additionally many bugs were squashed, performance enhancements made,<br>
doc cleaned up and new callbacks added.<br>
<br>
A complete changelog is available from git by running:<br>
    git log 3.0.2..3.2.0rc1<br>
or visiting<br>
    <a href="https://github.com/bestpractical/rtir/compare/3.0.2...3.2.0rc1" target="_blank">https://github.com/bestpractical/rtir/compare/3.0.2...3.2.0rc1</a><br>
<br>--<br>
RT Training - November 4-5 Los Angeles<br>
<a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br></blockquote></div><br></div>