Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make initdb fails with RT4.2 #62

Open
waelsh opened this issue Nov 2, 2013 · 10 comments
Open

Make initdb fails with RT4.2 #62

waelsh opened this issue Nov 2, 2013 · 10 comments

Comments

@waelsh
Copy link

waelsh commented Nov 2, 2013

i got the following error while trying to install AT with RT 4.2 ... any help please ?

Please specify that user's database password below. If the user has no database
password, just press return.

Password:
Working with:
Type: mysql
Host: localhost
Port:
Name: rt4
User: rt_user
DBA: root
Now inserting data.
[18972] [Sat Nov 2 00:59:22 2013] [warning]: Use of inherited AUTOLOAD for non-method RT::System::AddRights() is deprecated at lib/RTx/AssetTracker/Type.pm line 114, <$handle> line 1. (lib/RTx/AssetTracker/Type.pm:114)
Couldn't finish 'insert' step.

ERROR: Couldn't load data from 'etc/initialdata' for import:

ERROR:Can't locate object method "_Accessible" via package "DeleteAsset" (perhaps you forgot to load "DeleteAsset"?) at /usr/local/share/perl5/DBIx/SearchBuilder/Record.pm line 422, <$handle> line 1.
Compilation failed in require at lib/RTx/AssetTracker/Types.pm line 70, <$handle> line 1.
BEGIN failed--compilation aborted at lib/RTx/AssetTracker/Types.pm line 70, <$handle> line 1.
Compilation failed in require at lib/RTx/AssetTracker.pm line 56, <$handle> line 1.
BEGIN failed--compilation aborted at lib/RTx/AssetTracker.pm line 56, <$handle> line 1.
Compilation failed in require at etc/initialdata line 2, <$handle> line 1.
BEGIN failed--compilation aborted at etc/initialdata line 2, <$handle> line 1.
Compilation failed in require at /opt/rt4/sbin/../lib/RT/Handle.pm line 803, <$handle> line 1.

...returned with error: 65280
make: *** [initdb] Error 2

@liadsh
Copy link

liadsh commented Nov 15, 2013

Have the exact same issue ...

Can anyone please help ?

@jgzgithub
Copy link

Having the same issue with 4.2. Using Ubuntu 12.04 and perl v5.14.2.

@btb
Copy link
Member

btb commented Nov 16, 2013

RT 4.2 is simply not supported at this time. Support may be added in the future, but you may want to use
https://github.com/bestpractical/rt-extension-assets instead.

@ghost
Copy link

ghost commented Dec 23, 2013

Please add support for RT 4.2. We've been using AssetTracker for an extremely long time and there is no migration path to rt-extension-assets.

@toldav
Copy link

toldav commented Jan 17, 2014

Any hope on supporting RT 4.2?

@btb
Copy link
Member

btb commented Jan 17, 2014

It shouldn't be all that difficult, but I don't think I would be the person to do so, as I'm pretty sure we will never move past RT 4.0 at my workplace. If that changes I myself would rather extend RT-Extension-Assets to fill my needs since it is maintained by BestPractical.

@65Custom
Copy link

Please add support for RT 4.2 + I really prefer this version over the BP Version

@darkpixel
Copy link

I'm running 4.2.10 and make initdb runs flawlessly. I add the plugin to RT_SiteConfig and restart spawnfcgi. RT runs, but when I try to access Asset Tracker-related data, I get the following in my syslog:

Jun  2 19:03:53 tickets RT: [28424] RT::Handle=HASH(0xa1afb18) couldn't execute the query 'SELECT  * FROM RTxCatalogs WHERE LOWER(Name) = LOWER(?)' at /usr/local/share/perl/5.18.2/DBIx/SearchBuilder/Handle.pm line 599.#012#011DBIx::SearchBuilder::Handle::SimpleQuery('RT::
Handle=HASH(0xa1afb18)', 'SELECT  * FROM RTxCatalogs WHERE LOWER(Name) = LOWER(?)', 'new') called at /usr/local/share/perl/5.18.2/DBIx/SearchBuilder/Record.pm line 1234#012#011DBIx::SearchBuilder::Record::_LoadFromSQL('RT::Catalog=HASH(0xa9760c8)', 'SELECT  * FROM RTxCata
logs WHERE LOWER(Name) = LOWER(?)', 'new') called at /usr/local/share/perl/5.18.2/DBIx/SearchBuilder/Record.pm line 1153#012#011DBIx::SearchBuilder::Record::LoadByCols('RT::Catalog=HASH(0xa9760c8)', 'LOWER(Name)', 'HASH(0xa9b08a8)') called at /usr/local/share/perl/5.18.2/
DBIx/SearchBuilder/Record/Cachable.pm line 120#012#011DBIx::SearchBuilder::Record::Cachable::LoadByCols('RT::Catalog=HASH(0xa9760c8)', 'LOWER(Name)', 'HASH(0xa9b08a8)') called at /opt/rt4/sbin/../lib/RT/Record.pm line 416#012#011RT::Record::LoadByCols('RT::Catalog=HASH(0x
a9760c8)', 'Name', 'new') called at /opt/rt4/local/plugins/RT-Extension-Assets/lib/RT/Catalog.pm line 154#012#011RT::Catalog::Load('RT::Catalog=HASH(0xa9760c8)', 'new') called at /opt/rt4/local/plugins/RT-Extension-Assets/html/Callbacks/RT-Extension-Assets/Elements/Tabs/P
rivileged line 194#012#011HTML::Mason::Commands::__ANON__('Path', '/Admin/Assets/Catalogs/Create.html') called at /usr/share/perl5/HTML/Mason/Component.pm line 138#012#011HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa9b91f8)', 'Path', '/Admin/Asse
ts/Catalogs/Create.html') called at /usr/share/perl5/HTML/Mason/Request.pm line 1300#012#011eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1295#012#011HTML::Mason::Request::comp(undef, undef, 'Path', '/Admin/Assets/Catalogs/Create.html') called at /opt/r
t4/sbin/../lib/RT/Interface/Web/Request.pm line 138#012#011RT::Interface::Web::Request::callback('RT::Interface::Web::Request=HASH(0xa1a65d8)', 'CallbackName', 'Privileged', 'Path', '/Admin/Assets/Catalogs/Create.html') called at /opt/rt4/share/html/Elements/Tabs line 939
#012#011HTML::Mason::Commands::__ANON__() called at /opt/rt4/share/html/Elements/Tabs line 997#012#011HTML::Mason::Commands::__ANON__() called at /usr/share/perl5/HTML/Mason/Component.pm line 138#012#011HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0
xa87eae0)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1305#012#011eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1295#012#011HTML::Mason::Request::comp(undef, undef) called at /opt/rt4/local/plugins/RT-Extension-Assets/html/Admin/Assets/Catal
ogs/Create.html line 49#012#011HTML::Mason::Commands::__ANON__('Description', 'Utilize IT Equipment', 'Lifecycle', 'assets', 'id', 'new', 'SetDisabled', 1, 'Update', ...) called at /usr/share/perl5/HTML/Mason/Component.pm line 138#012#011HTML::Mason::Component::run('HTML:
:Mason::Component::FileBased=HASH(0xa707e48)', 'Description', 'Utilize IT Equipment', 'Lifecycle', 'assets', 'id', 'new', 'SetDisabled', 1, ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 1305#012#011eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm l
ine 1295#012#011HTML::Mason::Request::comp(undef, undef, undef, 'Description', 'Utilize IT Equipment', 'Lifecycle', 'assets', 'id', 'new', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 958#012#011HTML::Mason::Request::call_next('RT::Interface::Web::Request=HA
SH(0xa1a65d8)', 'Name', 'UIT', 'Update', 'Create catalog', 'SetDisabled', 1, 'id', 'new', ...) called at /opt/rt4/share/html/Admin/autohandler line 49#012#011HTML::Mason::Commands::__ANON__('Description', 'Utilize IT Equipment', 'Lifecycle', 'assets', 'id', 'new', 'SetDis
abled', 1, 'Update', ...) called at /usr/share/perl5/HTML/Mason/Component.pm line 138#012#011HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xa708968)', 'Description', 'Utilize IT Equipment', 'Lifecycle', 'assets', 'id', 'new', 'SetDisabled', 1, ...)
called at /usr/share/perl5/HTML/Mason/Request.pm line 1305#012#011eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1295#012#011HTML::Mason::Request::comp(undef, undef, undef, 'Description', 'Utilize IT Equipment', 'Lifecycle', 'assets', 'id', 'new', ...) c
alled at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 681#012#011RT::Interface::Web::ShowRequestedPage('HASH(0xa50c140)') called at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 369#012#011RT::Interface::Web::HandleRequest('HASH(0xa50c140)') called at /opt/rt4/share/html
/autohandler line 53#012#011HTML::Mason::Commands::__ANON__('Update', 'Create catalog', 'Name', 'UIT', 'id', 'new', 'SetDisabled', 1, 'Lifecycle', ...) called at /usr/share/perl5/HTML/Mason/Component.pm line 138#012#011HTML::Mason::Component::run('HTML::Mason::Component::
FileBased=HASH(0xa50bcc0)', 'Update', 'Create catalog', 'Name', 'UIT', 'id', 'new', 'SetDisabled', 1, ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 1300#012#011eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1295#012#011HTML::Mason::Request::
comp(undef, undef, undef, 'Update', 'Create catalog', 'Name', 'UIT', 'id', 'new', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 484#012#011eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 484#012#011eval {...} called at /usr/share/perl5/HTML/M
ason/Request.pm line 436#012#011HTML::Mason::Request::exec('RT::Interface::Web::Request=HASH(0xa1a65d8)') called at /usr/share/perl5/HTML/Mason/PSGIHandler.pm line 85#012#011eval {...} called at /usr/share/perl5/HTML/Mason/PSGIHandler.pm line 85#012#011HTML::Mason::Reques
t::PSGI::exec('RT::Interface::Web::Request=HASH(0xa1a65d8)') called at /usr/share/perl5/HTML/Mason/Interp.pm line 345#012#011HTML::Mason::Interp::exec(undef, undef, 'Update', 'Create catalog', 'Name', 'UIT', 'id', 'new', 'SetDisabled', ...) called at /usr/share/perl5/HTML
/Mason/PSGIHandler.pm line 48#012#011eval {...} called at /usr/share/perl5/HTML/Mason/PSGIHandler.pm line 48#012#011HTML::Mason::PSGIHandler::invoke_mason('HTML::Mason::PSGIHandler::Streamy=HASH(0xa1ac2a8)', 'HTML::Mason::FakeApache=HASH(0xa6fd978)', 'HASH(0xa50b750)') ca
lled at /usr/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm line 52#012#011HTML::Mason::PSGIHandler::Streamy::__ANON__('CODE(0xa5f6ec0)') called at /opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm line 310#012#011RT::Interface::Web::Handler::__ANON__('CODE(0xa5f6ec0)') cal
led at /usr/share/perl5/Plack/Util.pm line 301#012#011Plack::Util::__ANON__('CODE(0xa5f6d58)') called at /usr/share/perl5/Plack/Util.pm line 301#012#011Plack::Util::__ANON__('CODE(0xa50d0f8)') called at /usr/share/perl5/Plack/Handler/FCGI.pm line 136#012#011Plack::Handler
::FCGI::run('Plack::Handler::FCGI=HASH(0xa4b1680)', 'CODE(0xa35dd50)') called at /usr/share/perl5/Plack/Loader.pm line 84#012#011Plack::Loader::run('Plack::Loader=HASH(0xa30fbe8)', 'Plack::Handler::FCGI=HASH(0xa4b1680)') called at /usr/share/perl5/Plack/Runner.pm line 277
#012#011Plack::Runner::run('RT::PlackRunner=HASH(0x2a69e10)') called at /opt/rt4/sbin/../lib/RT/PlackRunner.pm line 141#012#011eval {...} called at /opt/rt4/sbin/../lib/RT/PlackRunner.pm line 141#012#011RT::PlackRunner::run('RT::PlackRunner=HASH(0x2a69e10)') called at /op
t/rt4/sbin/rt-server.fcgi line 162

@tbrumm
Copy link
Contributor

tbrumm commented Jun 3, 2015

darkpixel: from the error log it looks like a problem together with RT-Assets. Btw. We (our company) are at the moment in contact with BPS to extend RT-Extension-Assets to have nearly the same features as RTx-AssetTracker.

@JvdW
Copy link

JvdW commented Jun 3, 2015

On 3-6-2015 10:58, Torsten Brumm wrote:

darkpixel: from the error log it looks like a problem together with
RT-Assets. Btw. We (our company) are at the moment in contact with BPS
to extend RT-Extension-Assets to have nearly the same features as
RTx-AssetTracker.

Great work!!
Does that include a migration script?

Regards,

Joop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants