Open hesco opened 9 years ago
This changes the errors, but things are still unresolved. Perhaps after some sleep:
rt=# INSERT INTO users (id, name, password, comments, realname,
creator, created, lastupdatedby, lastupdated)
VALUES( 1, 'RT_System', '*NO-PASSWORD*',
'Do not delete or modify this user. It is integral to the RT internal database structures',
'The RT System itself', 1, now(), 1, now() );
INSERT 0 1
rt=# INSERT INTO users (id, name, password, comments, realname,
creator, created, lastupdatedby, lastupdated)
VALUES( 2, 'Nobody', '*NO-PASSWORD*',
'Do not delete or modify this user. It is integral to the RT internal database structures',
'The RT System itself', 1, now(), 1, now() );
INSERT 0 1
Poking around in the installation I find this file: /usr/share/request-tracker4/etc/initialdata but again a recursive grep through the code shows nothing which seems to read and use it. This is beginning to smell like an issue with the debian package, and its postinstall script. That file defines complex data structures written in perl, but does nothing to apply them to the database. Perhaps it is the rt4-db-postgresql package which ought to be responsible for this. Still investigating this.
I found this link: https://bestpractical.com/docs/rt/4.0/initialdata.html#Running-an-initialdata-file
and then added this Exec[] resource:
exec { 'seed_db_schema':
environment => 'PGPASSFILE=/etc/request-tracker4/.pgpass',
command => "/usr/sbin/rt-setup-database-4 --action insert --datafile /usr/share/request-tracker4/etc/initialdata",
require => [ File['/etc/request-tracker4/.pgpass'],
Exec['deploy_db_schema'] ],
}
I ran this query twice:
SELECT nextval('users_id_seq');
and the resource got successfully applied, and a manual check of the database shows some expected data in the tables.
But now I face this:
[28481] [Mon Nov 2 00:48:20 2015] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Plack/Handler/FCGI.pm line 115. (/usr/share/perl5/Plack/Handler/FCGI.pm:115)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: Use of uninitialized value in quotemeta at /usr/share/perl5/Plack/Handler/FCGI.pm line 117. (/usr/share/perl5/Plack/Handler/FCGI.pm:117)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: Use of uninitialized value $method in string ne at /usr/share/perl5/HTML/Mason/Utils.pm line 43. (/usr/share/perl5/HTML/Mason/Utils.pm:43)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: Use of uninitialized value $method in string ne at /usr/share/perl5/HTML/Mason/Utils.pm line 43. (/usr/share/perl5/HTML/Mason/Utils.pm:43)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: The requested host (rt.example.com) does NOT match the configured WebDomain (localhost). Perhaps you should Set($WebDomain, 'rt.example.com'); in RT_SiteConfig.pm, otherwise your internal links may be broken. (/usr/share/request-tracker4/lib/RT/Interface/Web.pm:1238)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: binmode() on unopened filehandle GEN51 at /usr/share/perl5/Plack/Handler/FCGI.pm line 164. (/usr/share/perl5/Plack/Handler/FCGI.pm:164)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: print() on unopened filehandle GEN51 at /usr/share/perl5/Plack/Handler/FCGI.pm line 176. (/usr/share/perl5/Plack/Handler/FCGI.pm:176)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: print() on unopened filehandle GEN51 at /usr/share/perl5/Plack/Handler/FCGI.pm line 178. (/usr/share/perl5/Plack/Handler/FCGI.pm:178)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: print() on unopened filehandle GEN51 at /usr/share/perl5/Plack/Handler/FCGI.pm line 178. (/usr/share/perl5/Plack/Handler/FCGI.pm:178)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: print() on unopened filehandle GEN51 at /usr/share/perl5/Plack/Handler/FCGI.pm line 178. (/usr/share/perl5/Plack/Handler/FCGI.pm:178)
[28481] [Mon Nov 2 00:48:20 2015] [warning]: print() on unopened filehandle GEN51 at /usr/share/perl5/Plack/Handler/FCGI.pm line 178. (/usr/share/perl5/Plack/Handler/FCGI.pm:178)
I ran a locate RT_SiteConfig.pm
, but can not sort out why the logs report: 'configured WebDomain (localhost)'.
WebDomain has been set in the configuration.
Adding this code right after the first error, shows that REQUEST_URI is not defined in the environment: print STDERR Data::Dumper::Dumper $uri, $env;
not sure how it is it should have gotten there, or why localhost is used on that line rather than the configured domain. I assume that is a plack thing.
I am wondering if I am missing anything here. A recursive grep on the modules/rt/ path found no mention of the RT_System user. This is how I am deploying a new installation of RT:
The code in the RT::Handle->CheckIntegrity() method which throws this error looks like this:
Investigating a working installation, I see:
Below are the errors I see in the apache error.log.