[Koha] Error when staging MARC records for import

Pedro Amorim pjamorim91 at gmail.com
Sun Nov 1 02:21:26 NZDT 2015


Hello,

I have been banging my head with this problem for the past couple of days
now and I have no idea what might be causing it.

When I upload the .mrc file with the records to import all goes fine but
when I press "Stage for import" it stays at 0% for a while, then fills the
logs with errors (see below) and after that it goes to "manage staged
records" as if everything went fine. It lists how many records were staged
and 0 errors found.

However, my imported records don't seem right:
- The "citation" column is null for every record;
- Some MARC fields don't seem to have been imported;

I'm not sure if the problem is with the .mrc file or my Koha installation,
or both.

I've been focusing on the "binmode() on closed filehandle STDOUT" message,
changing permissions in files, changing owners, changing the file
permission before uploading it, but nothing.

Error stack:
[Sat Oct 31 13:06:24 2015] [error] [client 10.11.5.52] [Sat Oct 31 13:06:24
2015] stage-marc-import.pl: binmode() on closed filehandle STDOUT at
/usr/share/koha/lib/C4/Templates.pm line 122., referer:
http://10.13.54.70:8086/cgi-bin/koha/tools/stage-marc-import.pl
[Sat Oct 31 13:06:24 2015] [error] [client 10.11.5.52] [Sat Oct 31 13:06:24
2015] stage-marc-import.pl: Filehandle STDOUT reopened as FH only for input
at /usr/lib/perl5/Template/Provider.pm line 965., referer:
http://10.13.54.70:8086/cgi-bin/koha/tools/stage-marc-import.pl

Thanks,

Pedro Amorim


More information about the Koha mailing list