Z39.50 Import errors in staff client

Bug #1271559 reported by Tony Bandy on 2014-01-22
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Evergreen
Medium
Unassigned

Bug Description

When using the Z39.50 import function in the Evergreen staff client (2.4.2), our libraries have reported various errors when attempting to search for records from external sites. There seems to be no rhyme or reason on the errors, but sometimes unchecking all of the resources and then adding them back one at a time helps to alleviate issue (?) When this happens, the error window appears in the client with language similar to this:

Network or server failure. Please check your Internet connection...and choose Retry Network. If you need to enter Offline Mode, choose Ignore Errors in this and subsequent dialogs. If you believe this error is due to a bug in Evergreen and not network problems, please contact your help desk or friendly Evergreen administrators, and give them this information:
method=open-ils.search.z3950.search_class

We're currently running Evergreen 2.42 on a hosted instance of Debian.

Liam Whalen (whalen-ld) wrote :

Sitka received a similar report from one of our libraries. Our network admin tracked the problem down, and I have a patch waiting to be tested.

You can see my commit here:

http://git.sitka.bclibraries.ca/gitweb/?p=sitka/evergreen.git;a=shortlog;h=refs/heads/user/lwhalen/RT18218_z3950_timeout

From what I can see, the problem results from an empty result set being returned when a server times out and the Perl code trying to call a function on an undefined variable.

I have not signed off on it yet because it has not been tested.

Liam Whalen (whalen-ld) on 2014-01-22
Changed in evergreen:
assignee: nobody → Liam Whalen (whalen-ld)
Ben Shum (bshum) on 2014-02-16
Changed in evergreen:
status: New → In Progress
importance: Undecided → Medium
Liam Whalen (whalen-ld) wrote :

That commit is targeted at 2.4. I will integrate it with master and retag as pullrequest when that is done.

tags: removed: pullrequest
Jason Etheridge (phasefx) wrote :

I've been seeing similar symptoms in 2.6.3 and tried Liam's patch, but it did not help.

Network or server failure. Please check your Internet connection to catalog.sparkpa.org and choose Retry Network. If you need to enter Offline Mode, choose Ignore Errors in this and subsequent dialogs. If you believe this error is due to a bug in Evergreen and not network problems, please contact your help desk or friendly Evergreen administrators, and give them this information:
method=open-ils.search.z3950.search_class
params=["authtokenscrubbed",{"service_array":["accesspa","bpl","EGIN","loc"],"username_array":["","","",""],"password_array":["","","",""],"limit":3,"offset":0,"search":{"isbn":"9780547858197"},"service":["accesspa","bpl","EGIN","loc"],"username":["","","",""],"password":["","","",""]}]
THROWN:
{"fileName":"oils://remote/js/dojo/dojo/dojo.js","lineNumber":31}
STATUS:

So, the same query can work some times and not at others. Log activity is nearly identical between the two, but here's the part that changes:

WORKING QUERY:
z3950: connecting to server lx2.loc.gov:210:LCDB as
z3950: query => @attr 1=7 @attr 4=6 @attr 5=1 "9780547858197" z3950: search [@attr 1=7 @attr 4=6 @attr 5=1 "9780547858197" ] took 0 seconds
z3950: using record format 'F' and transmission format 'usmarc'
z3950: 'bpl' search returned 1 hits
z3950: fetching record 0
z3950: using record format 'F' and transmission format 'usmarc'
z3950: 'EGIN' search returned 0 hits
z3950: using record format 'F' and transmission format 'usmarc'
z3950: 'accesspa' search returned 1 hits
z3950: fetching record 0
z3950: using record format 'FI' and transmission format 'usmarc'
z3950: 'loc' search returned 1 hits
z3950: fetching record 0
Message processing duration: 6.254

BROKEN QUERY:
z3950: connecting to server lx2.loc.gov:210:LCDB as
z3950: query => @attr 1=7 @attr 4=6 @attr 5=1 "9780547858197"
z3950: search [@attr 1=7 @attr 4=6 @attr 5=1 "9780547858197" ] took 0 seconds
z3950: using record format 'F' and transmission format 'usmarc'
z3950: 'bpl' search returned 1 hits
z3950: fetching record 0
z3950: using record format 'F' and transmission format 'usmarc'
z3950: 'accesspa' search returned 1 hits
z3950: fetching record 0
z3950: using record format 'FI' and transmission format 'usmarc'
z3950: 'loc' search returned 1 hits
z3950: fetching record 0
z3950: using record format 'F' and transmission format 'usmarc'
z3950: 'EGIN' search returned 0 hits
Message processing duration: 30.335

That seems to match the criteria Liam mentioned, time out with an empty result set.

Liam Whalen (whalen-ld) on 2015-04-08
Changed in evergreen:
assignee: Liam Whalen (whalen-ld) → nobody
Linda Jansova (skolkova-s) wrote :

It seems that the error persists in 2.12.4 (a more detailed description has been sent to open-ils-general mailing list: http://libmail.georgialibraries.org/pipermail/open-ils-general/2017-August/014097.html)...

Jane Sandberg (sandbej) on 2018-06-08
tags: added: z3950
Linda Jansova (skolkova-s) wrote :

The error mentioned on 2017-08-18 proved to be of a different origin and has been sorted out via ejabbered configuration - changing max_stanza_size (as described in bug https://bugs.launchpad.net/evergreen/+bug/1713324).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers