Subject: | Couldn't load data on a fresh new RT instance |
Date: | Tue, 15 Sep 2020 16:03:36 +0800 |
To: | bug-RT-Extension-SLA [...] rt.cpan.org |
From: | Abdul Qoyyuum Haji Abdul Kadir <abdul.qoyyuum [...] gmail.com> |
Just installed a new RT version 4.2 and tried to install the SLA extension.
Followed the guide, tried to `make initdb` and ended up with an error as
follows:
root@fe046e0820a9:/usr/local/src/rt-4.2.16/RT-Extension-SLA-1.04# make
initdb
/usr/bin/perl -Ilib -I/opt/rt4/local/lib -I/opt/rt4/lib
/opt/rt4/sbin/rt-setup-database --action insert --datadir etc --datafile
etc/initialdata --dba root --prompt-for-dba-password --package
RT::Extension::SLA --ext-version 1.04
In order to create or update your RT database, this script needs to connect
to your SQLite instance on localhost (port '') as root
Please specify that user's database password below. If the user has no
database
password, just press return.
Password:
Working with:
Type: SQLite
Host: localhost
Port:
Name: /opt/rt4/var/rt4
User: rt_user
DBA: root
Now inserting data.
Couldn't finish 'insert' step.
ERROR: Couldn't load data from 'etc/initialdata' for import:
ERROR:Can't locate etc/initialdata in @INC (@INC contains:
/opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib lib /opt/rt4/local/lib
/opt/rt4/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1
/usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28
/usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at
/opt/rt4/sbin/../lib/RT/Handle.pm line 838, <$handle> line 1.
...returned with error: 65280
make: *** [Makefile:874: initdb] Error 2
Looking inside the /opt/rt4/ does show that the file exists:
root@fe046e0820a9:/usr/local/src/rt-4.2.16/RT-Extension-SLA-1.04# ls -la
/opt/rt4/etc/
total 224
drwxr-xr-x 3 root www-data 4096 Sep 15 07:50 .
drwxr-xr-x 10 root root 4096 Sep 15 07:50 ..
-r--r----- 1 root www-data 87663 Jul 18 11:55 RT_Config.pm
-rw-r--r-- 1 root root 67 Sep 15 07:50 RT_SiteConfig.pm
-r-------- 1 root www-data 27 Jul 18 11:55 acl.Oracle
-r-------- 1 root www-data 2129 Jul 18 11:55 acl.Pg
-r-------- 1 root www-data 708 Jul 18 11:55 acl.mysql
-r-------- 1 root www-data 34321 Jul 18 11:55 initialdata
-r-------- 1 root www-data 18380 Jul 18 11:55 schema.Oracle
-r-------- 1 root www-data 15766 Jul 18 11:55 schema.Pg
-r-------- 1 root www-data 15315 Jul 18 11:55 schema.SQLite
-r-------- 1 root www-data 16831 Jul 18 11:55 schema.mysql
drwxr-xr-x 75 root www-data 4096 Sep 15 07:50 upgrade
Please advise.
--
<https://about.me/qoyyuum?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>
Abdul Qoyyuum Haji Abdul Kadir
about.me/qoyyuum
<https://about.me/qoyyuum?promo=email_sig&utm_source=product&utm_medium=email_sig&utm_campaign=gmail_api&utm_content=thumb>