<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    I am having an issue with starting or stopping a queue using
    bin/librecat queue start/stop. <br>
    <br>
    If I try to start a queue I receive this message:<br>
    <br>
    <font color="#33cc00">/var/storage/librecat# bin/librecat queue
      start<br>
      Starting mailer...Can't use an undefined value as a subroutine
      reference at
      /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line 834.<br>
      OK<br>
      Starting datacite...Can't use an undefined value as a subroutine
      reference at
      /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line 834.<br>
      OK</font><br>
    <br>
    The status shows nothing started up:<br>
    <br>
    <font color="#33cc00">Server version: 1.0.6<br>
      Workers:<br>
      | fd | ip        | id | functions |<br>
      |----|-----------|----|-----------|<br>
      | 32 | 127.0.0.1 | -  |           |<br>
      Status:<br>
      | function | queued | busy | free | running |<br>
      |----------|--------|------|------|---------|<br>
      | datacite | 0      | 0    | 0    | 0       |<br>
      | mailer   | 0      | 0    | 0    | 0       |</font><br>
    <br>
    <br>
    I can starting them manually with the workers command like so:<br>
    <font color="#33cc00"><br>
      /var/storage/librecat# bin/librecat worker datacite start
      --workers 2 --supervise<br>
      LAUNCHED CHILD PROCESS: pid=7889
      log=logs/librecat-cmd-worker-datacite.supervisor.log<br>
      starting daemon: librecat-cmd-worker-datacite.1<br>
      LAUNCHED CHILD PROCESS: pid=7890
      log=logs/librecat-cmd-worker-datacite.1.log<br>
      starting daemon: librecat-cmd-worker-datacite.2<br>
      LAUNCHED CHILD PROCESS: pid=7891
      log=logs/librecat-cmd-worker-datacite.2.log</font><br>
    <br>
    The status says they are up:<br>
    <br>
    <font color="#33cc00">Server version: 1.0.6<br>
      Workers:<br>
      | fd | ip        | id | functions |<br>
      |----|-----------|----|-----------|<br>
      | 33 | 127.0.0.1 | -  | datacite  |<br>
      | 34 | 127.0.0.1 | -  |           |<br>
      | 32 | 127.0.0.1 | -  | datacite  |<br>
      Status:<br>
      | function | queued | busy | free | running |<br>
      |----------|--------|------|------|---------|<br>
      | datacite | 0      | 0    | 2    | 2       |<br>
      | mailer   | 0      | 0    | 0    | 0       |</font><br>
    <br>
    <br>
    Then I try to stop with the queue command:<br>
    <br>
    <font color="#33cc00">/var/storage/librecat# bin/librecat queue stop<br>
      Stopping datacite...Can't use an undefined value as a subroutine
      reference at
      /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line 834.<br>
      OK<br>
      Stopping mailer...Can't use an undefined value as a subroutine
      reference at
      /var/storage/librecat/local/lib/perl5/Proc/Launcher.pm line 834.<br>
      OK</font><br>
    <br>
    The status says they are still up:<br>
    <br>
    <font color="#33cc00">Server version: 1.0.6<br>
      Workers:<br>
      | fd | ip        | id | functions |<br>
      |----|-----------|----|-----------|<br>
      | 34 | 127.0.0.1 | -  |           |<br>
      | 33 | 127.0.0.1 | -  | datacite  |<br>
      | 32 | 127.0.0.1 | -  | datacite  |<br>
      Status:<br>
      | function | queued | busy | free | running |<br>
      |----------|--------|------|------|---------|<br>
      | datacite | 0      | 0    | 2    | 2       |<br>
      | mailer   | 0      | 0    | 0    | 0       |</font><br>
    <br>
    <br>
    <br>
    Here is where it is failing in Launcher.pm:<br>
    <br>
    <font color="#33cc00">sub read_log {<br>
          my ( $self, $subref ) = @_;<br>
      <br>
          my $name = $self->daemon_name;<br>
      <br>
          while ( my $line=$self->file_tail->read ) {<br>
              chomp $line;<br>
              $subref->( "$name: $line" );   <----------- line 834<br>
          }<br>
      <br>
          return 1;<br>
      }</font><br>
    <br>
    <br>
    <br>
    Has anyone seen this before or have any ideas as to why this is
    happening?<br>
    <br>
    <br>
    Thanks,<br>
    Jonathan Norris<br>
    IST Austria<br>
    <br>
    <br>
  </body>
</html>