RT_SiteConfig.pm error formatting question

I am setting up a server on Debian (Jessie). I am at the point of configuring the RT_SiteConfig.pm file and following examples found online I am getting an error when trying to validate my config

Here is the text

25 # You may also split settings into separate files under the etc/RT_SiteConfig.d/
26 # directory. All files ending in “.pm” will be parsed, in alphabetical order,
27 # after this file is loaded.
28
29 Set($rtname , ‘xxx.ca’);
30 Set($Organization,‘xxxx.xxxxx.ca’);
31
32 Set($Timezone, “US/Eastern”);
33 Set($CorrespondAddress, ‘Service.Test@xxxxx.ca’);

When I try
sudo perl -C /opt/rt4/etc/RT_SiteConfig.pm
Undefined subroutine &main::Set called at /opt/rt4/etc/RT_SiteConfig.pm line 29.

If I # line 29 then the error goes to the next line.
I have searched the formatting and the error.

Any help appreciated.

Hi Brian,

The RT_SiteConfig.pm file is not a script that you run manually. It is read automatically by RT. Please see the documentation Web deployment - RT 4.4.1 Documentation - Best Practical https://docs.bestpractical.com/rt/4.4.1/web_deployment.html for information about setting up the web server. You can also run a standalone server to test with something like

$ sudo /opt/rt4/sbin/standalone_httpd

This will let you know if your config is valid and you have done everything else leading up to this point. If you are getting some kind of errors, I would recommend you follow the steps in the README README - RT 4.4.1 Documentation - Best Practical https://docs.bestpractical.com/rt/4.4.1/README.html to ensure that you have all of the dependencies installed and your database is set-up correctly.

Thank you,
Dustin> On Jun 22, 2016, at 11:25 AM, Dunbar, Brian Brian.Dunbar@von.ca wrote:

I am setting up a server on Debian (Jessie). I am at the point of configuring the RT_SiteConfig.pm file and following examples found online I am getting an error when trying to validate my config

Here is the text

25 # You may also split settings into separate files under the etc/RT_SiteConfig.d/
26 # directory. All files ending in “.pm” will be parsed, in alphabetical order,
27 # after this file is loaded.
28
29 Set($rtname , ‘xxx.ca http://xxx.ca/’);
30 Set($Organization,‘xxxx.xxxxx.ca http://xxxx.xxxxx.ca/’);
31
32 Set($Timezone, “US/Eastern”);
33 Set($CorrespondAddress, ‘Service.Test@xxxxx.ca mailto:Service.Test@xxxxx.ca’);

When I try
sudo perl -C /opt/rt4/etc/RT_SiteConfig.pm
Undefined subroutine &main::Set called at /opt/rt4/etc/RT_SiteConfig.pm line 29.

If I # line 29 then the error goes to the next line.
I have searched the formatting and the error.

Any help appreciated.


RT 4.4 and RTIR Training Sessions https://bestpractical.com/training https://bestpractical.com/training

  • Los Angeles - September, 2016

Hi Brian,
welcome to the list. I assume, you have not the line number written infront of the Set Paramenters?

TorstenVon: rt-users [mailto:rt-users-bounces@lists.bestpractical.com] Im Auftrag von Dunbar, Brian
Gesendet: Mittwoch, 22. Juni 2016 17:26
An: rt-users@lists.bestpractical.com
Betreff: [rt-users] RT_SiteConfig.pm error formatting question

I am setting up a server on Debian (Jessie). I am at the point of configuring the RT_SiteConfig.pm file and following examples found online I am getting an error when trying to validate my config

Here is the text

25 # You may also split settings into separate files under the etc/RT_SiteConfig.d/
26 # directory. All files ending in “.pm” will be parsed, in alphabetical order,
27 # after this file is loaded.
28
29 Set($rtname , ‘xxx.ca’);
30 Set($Organization,‘xxxx.xxxxx.ca’);
31
32 Set($Timezone, “US/Eastern”);
33 Set($CorrespondAddress, ‘Service.Test@xxxxx.ca’);

When I try
sudo perl -C /opt/rt4/etc/RT_SiteConfig.pm
Undefined subroutine &main::Set called at /opt/rt4/etc/RT_SiteConfig.pm line 29.

If I # line 29 then the error goes to the next line.
I have searched the formatting and the error.

Any help appreciated.

Kühne + Nagel (AG & Co.) KG
Rechtsform: Kommanditgesellschaft, Bremen HRA 21928, USt-IdNr.: DE 812773878.
Geschäftsleitung Kühne + Nagel (AG & Co.) KG: Yngve Ruud (Vors.), Martin Brinkmann, Matthias Heimbach, Jan-Hendrik Köstergarten, Nicholas Minde, Michael Nebel, Lars Wedel.
Persönlich haftende Gesellschafterin: Kühne & Nagel A.G., Rechtsform: Aktiengesellschaft nach luxemburgischem Recht, HR-Nr.: B 18745, Geschäftsführendes Verwaltungsratsmitglied: Karl Gernandt.
Geschäftsleitung Region Westeuropa: Yngve Ruud (Vors.), Diederick de Vroet, Dominic Edmonds, Uwe Hött, Richard Huhn, Björn Johansson, Holger Ketz, Jan Kunze.

Wir arbeiten ausschließlich auf Grundlage der Allgemeinen Deutschen Spediteurbedingungen 2016 (ADSp 2016). Die ADSp 2016 beschränken in Ziffer 23 die gesetzliche Haftung für Güterschäden in Höhe von 8,33 SZR/kg je Schadenfall bzw. je Schadenereignis auf 1 Million bzw. 2 Millionen Euro oder 2 SZR/kg, je nachdem, welcher Betrag höher ist, und bei multimodalen Transporten unter Einschluss einer Seebeförderung generell auf 2 SZR/kg. Den vollständigen Text der ADSp 2016 übersenden wir Ihnen gerne auf Anfrage und können Sie auch unter http://www.kuehne-nagel.com einsehen.