[rt-users] RT boilerplate error: Log file '/local/rt3/var/log/rt.log' couldn't be written or created

Richard McMahon rgm at ast.cam.ac.uk
Fri Feb 24 12:49:33 EST 2012


I am trying to run some RT queries using the RT boilerplate
from the O' Reilly All About RT presentation page 188 by Jesse Vincent
as a normal user on a existing RT installation.


#!/usr/bin/perl -w
use strict;
use lib qw(/opt/rt3/local/lib /opt/rt3/lib);
use RT;
# Load the config file
RT::LoadConfig();
# Connect to the database and get RT::SystemUser
# loaded
RT::Init();


This produces the error.

Log file '/local/rt3/var/log/rt.log' couldn't be written or created.
  RT can't run. at /local/rt3/lib/RT.pm line 318.

Is there a way to change the location of the of rt.log from within a perl 
script. I do not have root priveledges and only want read access for
queries using the API.

Thanks Richard


-------------------------------------------------------------------
  Dr. Richard G. McMahon    | Phone (office)     44-(0)-1223-337519
  University of Cambridge   |       (switchboard)       1223-337548
  Institute of Astronomy    |       (secretary)         1223-337516
  Madingley Rd              | FAX                       1223-337523
  Cambridge, CB3 OHA, UK.   | mobile                    7885-409019
  Office: Hoyle 18          | home                      1223-359770
-------------------------------------------------------------------
  email: rgm at ast.cam.ac.uk  | WWW:    http://www.ast.cam.ac.uk/~rgm
  richardgmcmahon at gmail.com | skype:                richardgmcmahon
-------------------------------------------------------------------



More information about the rt-users mailing list