[Koha-bugs] [Bug 12025] New: Inventory tool fails with "Could not reads headers", or sometimes a timeout

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 2 14:19:11 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12025

            Bug ID: 12025
           Summary: Inventory tool fails with "Could not reads headers",
                    or sometimes a timeout
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P5 - low
         Component: Tools
          Assignee: gmcharlt at gmail.com
          Reporter: jason at esilibrary.com
        QA Contact: testopia at bugs.koha-community.org

Created attachment 26759
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26759&action=edit
sample file

This happens with small test files of one or two barcodes.

jason-temp at lumen:~$ od BARCODES.TXT
0000000 030063 033065 030463 030060 030060 030060 033062 031412
0000020 032460 031466 030061 030060 030060 031460 000064
0000035
jason-temp at lumen:~$ cat BARCODES.TXT
30563100000026
30563100000034jason-temp at lumen:~$

On the server side, it looks inventory.pl spins out of control, and is looping
on commands like this:

write(5, "s\0\0\0\3select authorised_value fro"..., 119) = 119
read(5, "\1\0\0\1\1h\0\0\2\3def\4salt\27marc_subfield"..., 16384) = 144
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(5, "Y\0\0\0\3select authorised_value, li"..., 93) = 93
read(5, "\1\0\0\1\3\\\0\0\2\3def\4salt\21authorised_va"..., 16384) = 337
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(5, "\1\0\0\0\16", 5)              = 5
read(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
write(5, "\1\0\0\0\16", 5)              = 5
read(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384) = 11
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)

This is with Koha 3.14.03.000, but Chris Cormack confirmed that it happens with
master, 3.14.1, and 3.14.5, but that it works fine on 3.12.12.  He tracked it
down to this commit for this bug:

0313856d9a1a9c0c002da0aead8c8516b51e1c11
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7684

There is an email thread discussing this on the Koha list:
http://lists.katipo.co.nz/public/koha/2014-March/039092.html
http://lists.katipo.co.nz/public/koha/2014-April/thread.html#39127

With the Chrome development tools, I also see the following errors when I first
load the interface:

Uncaught SyntaxError: Unexpected token ILLEGAL  inventory.pl:62
event.returnValue is deprecated. Please use the standard event.preventDefault()
instead.   jquery.js:3

Let me know if there's anything else I can do to help.  Thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list