[librecat-dev] broken pipe error from embargo cronjob

Patrick Hochstenbach Patrick.Hochstenbach at UGent.be
Tue Aug 28 15:30:24 CEST 2018


I’ve not yet seen this error. Can you change the contab script to check what is happening.

1) create a bash script : /tmp/myscript.sh

#!/bin/bash

bin/librecat publication embargo update | bin/librecat publication files - > /tmp/embargo.log 2>&1

2) In the librecat.crond script use this as an embargo script:

30 0 * * * librecat /opt/librecat/bin/exec.sh  /tmp/myscript.sh

Patrick


> On 28 Aug 2018, at 09:35, Jonathan NORRIS <jnorris at ist.ac.at> wrote:
> 
> Hey,
> 
> I am wondering if anyone has come across this error before. When the "Enforce embargos" cronjob runs I get this error:
> 
>         Warning: unable to close filehandle GEN2 properly: Broken pipe at /var/storage/librecat/lib/LibreCat/Cmd/publication.pm line 514.
> 
> It's failing apparently during 'bin/librecat publication embargo update' here: https://github.com/LibreCat/LibreCat/blob/master/lib/LibreCat/Cmd/publication.pm#L510
> 
> I can run the total command manually with no issues:  'bin/librecat publication embargo update | bin/librecat publication files -'
> 
> 
> Has anyone seen this error before?
> 
> Thanks,
> Jonathan
> _______________________________________________
> librecat-dev mailing list
> - send list mails to librecat-dev at lists.uni-bielefeld.de
> - to unsubscribe or change options, visit https://lists.uni-bielefeld.de/mailman2/cgi/unibi/listinfo/librecat-dev
> - project website: http://librecat.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.uni-bielefeld.de/mailman2/unibi/public/librecat-dev/attachments/20180828/55b02eae/attachment.asc>


More information about the librecat-dev mailing list