[librecat-dev] queue failing to start or stop
Jonathan NORRIS
jnorris at ist.ac.at
Tue Dec 18 13:07:49 CET 2018
Hello,
I am having an issue with starting or stopping a queue using
bin/librecat queue start/stop.
If I try to start a queue I receive this message:
/var/storage/librecat# bin/librecat queue start
Starting mailer...Can't use an undefined value as a subroutine reference
at /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line 834.
OK
Starting datacite...Can't use an undefined value as a subroutine
reference at /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line
834.
OK
The status shows nothing started up:
Server version: 1.0.6
Workers:
| fd | ip | id | functions |
|----|-----------|----|-----------|
| 32 | 127.0.0.1 | - | |
Status:
| function | queued | busy | free | running |
|----------|--------|------|------|---------|
| datacite | 0 | 0 | 0 | 0 |
| mailer | 0 | 0 | 0 | 0 |
I can starting them manually with the workers command like so:
/var/storage/librecat# bin/librecat worker datacite start --workers 2
--supervise
LAUNCHED CHILD PROCESS: pid=7889
log=logs/librecat-cmd-worker-datacite.supervisor.log
starting daemon: librecat-cmd-worker-datacite.1
LAUNCHED CHILD PROCESS: pid=7890 log=logs/librecat-cmd-worker-datacite.1.log
starting daemon: librecat-cmd-worker-datacite.2
LAUNCHED CHILD PROCESS: pid=7891 log=logs/librecat-cmd-worker-datacite.2.log
The status says they are up:
Server version: 1.0.6
Workers:
| fd | ip | id | functions |
|----|-----------|----|-----------|
| 33 | 127.0.0.1 | - | datacite |
| 34 | 127.0.0.1 | - | |
| 32 | 127.0.0.1 | - | datacite |
Status:
| function | queued | busy | free | running |
|----------|--------|------|------|---------|
| datacite | 0 | 0 | 2 | 2 |
| mailer | 0 | 0 | 0 | 0 |
Then I try to stop with the queue command:
/var/storage/librecat# bin/librecat queue stop
Stopping datacite...Can't use an undefined value as a subroutine
reference at /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line
834.
OK
Stopping mailer...Can't use an undefined value as a subroutine reference
at /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line 834.
OK
The status says they are still up:
Server version: 1.0.6
Workers:
| fd | ip | id | functions |
|----|-----------|----|-----------|
| 34 | 127.0.0.1 | - | |
| 33 | 127.0.0.1 | - | datacite |
| 32 | 127.0.0.1 | - | datacite |
Status:
| function | queued | busy | free | running |
|----------|--------|------|------|---------|
| datacite | 0 | 0 | 2 | 2 |
| mailer | 0 | 0 | 0 | 0 |
Here is where it is failing in Launcher.pm:
sub read_log {
my ( $self, $subref ) = @_;
my $name = $self->daemon_name;
while ( my $line=$self->file_tail->read ) {
chomp $line;
$subref->( "$name: $line" ); <----------- line 834
}
return 1;
}
Has anyone seen this before or have any ideas as to why this is happening?
Thanks,
Jonathan Norris
IST Austria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20181218/1533e03f/attachment.html>
More information about the librecat-dev
mailing list