[librecat-dev] librecat failing to run as service

Jonathan NORRIS jnorris at ist.ac.at
Mon Feb 12 15:33:38 CET 2018


Hello,

I'm wondering if anybody knows what could be the issue here. I am trying 
to run librecat as a service following the documentation here: 
https://github.com/LibreCat/LibreCat/wiki/Deployment-%28CentOS7%29

When I run 'systemctl start librecat.service' I get no error messages, 
but when I go to librecat in the browser I am only getting the 
unrendered content of the index page, so all I see is the template 
toolkit code.

When I run 'systemctl status librecat.service' I get the following output:

● librecat.service - Librecat application
    Loaded: loaded (/etc/systemd/system/librecat.service; enabled; 
vendor preset: enabled)
    Active: active (running) since Mon 2018-02-12 14:39:58 CET; 4s ago
   Process: 19598 ExecStop=/var/storage/librecat-ist/etc/librecat.initd 
stop (code=exited, status=0/SUCCESS)
   Process: 19611 ExecStart=/var/storage/librecat-ist/etc/librecat.initd 
start (code=exited, status=0/SUCCESS)
  Main PID: 19615 (starman master )
     Tasks: 16 (limit: 4915)
    CGroup: /system.slice/librecat.service
            ├─19615 starman master
            ├─19616 starman worker
            ├─19617 starman worker
            ├─19618 starman worker
            ├─19619 starman worker
            ├─19620 starman worker
            ├─19621 starman worker
            ├─19622 starman worker
            ├─19623 starman worker
            ├─19624 starman worker
            ├─19625 starman worker
            ├─19626 starman worker
            ├─19627 starman worker
            ├─19628 starman worker
            ├─19629 starman worker
            └─19630 starman worker

' at /var/storage/librecat/local/lib/perl5/Plack/Util.pm line 120
Plack::Util::_load_sandbox('/var/storage/librecat/bin/app.pl') called at 
/var/storage/librecat/local/lib/perl5/Plack/Util.pm line 136
Plack::Util::load_psgi('/var/storage/librecat/bin/app.pl') called at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 179
Plack::Runner::__ANON__ at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 24
Plack::Runner::__ANON__ at 
/var/storage/librecat/local/lib/perl5/Plack/Loader.pm line 55
Plack::Loader::preload_app('Plack::Loader=HASH(0x55d0b5984440)', 
'CODE(0x55d0b593de50)') called at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 274
Plack::Runner::run('Plack::Runner=HASH(0x55d0b57423a0)') called at 
/var/storage/librecat/local/bin/plackup line 7
Compilation failed in require at 
/var/storage/librecat/local/lib/perl5/all.pm line 25, <DATA> line 1003.
/var/storage/librecat-ist/etc/librecat.initd: 51: 
/var/storage/librecat-ist/etc/librecat.initd: echo_success: not found
Started Librecat application.


There is some extra logging in the syslog file:

$Starting : unknown store default
Trace begun at /var/storage/librecat/local/lib/perl5/Catmandu/Env.pm 
line 140
Catmandu::Env::store('Catmandu::Env=HASH(0x55fe3d193470)', undef) called 
at /var/storage/librecat/local/lib/perl5/Catmandu.pm line 97
Catmandu::store('Catmandu', undef) called at 
/var/storage/librecat/local/lib/perl5/Dancer/Plugin/Catmandu/SRU.pm line 42
Dancer::Plugin::Catmandu::SRU::sru_provider('/sru') called at 
/var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm line 21
require LibreCat/App/Search/Route/api.pm at 
/var/storage/librecat/local/lib/perl5/all.pm line 25
eval {...} at /var/storage/librecat/local/lib/perl5/all.pm line 24
all::import('all', 'LibreCat::App::Search::Route::*') called at 
/var/storage/librecat/lib/LibreCat/App/Search.pm line 6
LibreCat::App::Search::BEGIN at 
/var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm line 0
eval {...} at /var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm 
line 0
require LibreCat/App/Search.pm at 
/var/storage/librecat/lib/LibreCat/App.pm line 13
LibreCat::App::BEGIN at 
/var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm line 0
eval {...} at /var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm 
line 0
require LibreCat/App.pm at /var/storage/librecat/bin/app.pl line 22
Plack::Sandbox::_2fvar_2fstorage_2flibrecat_2fbin_2fapp_2epl::BEGIN at 
/var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm line 0
eval {...} at /var/storage/librecat/lib/LibreCat/App/Search/Route/api.pm 
line 0
require /var/storage/librecat/bin/app.pl at (eval 8) line 3
eval 'package Plack::Sandbox::_2fvar_2fstorage_2flibrecat_2fbin_2fapp_2epl;
{
     my $app = do $_file;
     if ( !$app && ( my $error = $@ || $! )) { die $error; }
     $app;
}
' at /var/storage/librecat/local/lib/perl5/Plack/Util.pm line 120
Plack::Util::_load_sandbox('/var/storage/librecat/bin/app.pl') called at 
/var/storage/librecat/local/lib/perl5/Plack/Util.pm line 136
Plack::Util::load_psgi('/var/storage/librecat/bin/app.pl') called at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 179
Plack::Runner::__ANON__ at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 24
Plack::Runner::__ANON__ at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 24
Plack::Runner::__ANON__ at 
/var/storage/librecat/local/lib/perl5/Plack/Loader.pm line 55
Plack::Loader::preload_app('Plack::Loader=HASH(0x55fe3c146420)', 
'CODE(0x55fe3c100548)') called at 
/var/storage/librecat/local/lib/perl5/Plack/Runner.pm line 274
Plack::Runner::run('Plack::Runner=HASH(0x55fe3bf043a0)') called at 
/var/storage/librecat/local/bin/plackup line 7
Compilation failed in require at 
/var/storage/librecat/local/lib/perl5/all.pm line 25, <DATA> line 1003.
/var/storage/librecat-ist/etc/librecat.initd: 51: 
/var/storage/librecat-ist/etc/librecat.initd: echo_success: not found
Started Librecat application.


Has anyone seen an issue like this before?


Thanks for any help,

Jonathan

IST Austria



More information about the librecat-dev mailing list