[Koha] yaz client error : [109] Database unavailable -- v2 addinfo 'Default'

Mathieu Saby mathieu.saby at univ-rennes2.fr
Mon Nov 12 06:10:20 NZDT 2012


Hello
I can't use yaz-client on a test VM (Koha master, running on Ubuntu12.04).
I have not used yaz-client for months, so maybe I am doing something 
wrong, or something is missing in my install...
Could somebody give me some piece of advice ?

Koha is installed in dev-mode, on a fresh install (made today).
Marc flavor : unimarc
Zebra is working (rebuildzebra -b -x -reset  + ./bin/koha-zebra-ctl.sh), 
and I can search my records in OPAC and staff interface

yaz-client is connecting, but when I try to use scan or f command I have 
got this error : "[109] Database unavailable -- v2 addinfo 'Default'"

Regards,
M. Saby
Rennes 2 University

Here is what I see when I run yaz-client :

msaby at msaby-VirtualBox:~/koha/kohamaster$ yaz-client -u msaby/msaby 
unix:/home/msaby/koha/kohamaster/var/run/zebradb/bibliosocket
Authentication set to Open (msaby/msaby)
Connecting...OK.
Sent initrequest.
Connection accepted by v3 target.
ID     : 81
Name   : Zebra Information Server/GFS/YAZ
Version: 4.2.18 cc3abee6f861d0166bef5333b1fc72fbdc8bd94c
Options: search present delSet triggerResourceCtrl scan sort 
extendedServices namedResultSets
Elapsed: 0.027603
Z> f @attr 1=4 universalis
Sent searchRequest.
Received SearchResponse.
Search was a bloomin' failure.
Number of hits: 0, setno 1
Result Set Status: none
records returned: 0
Diagnostic message(s) from database:
     [109] Database unavailable -- v2 addinfo 'Default'
Elapsed: 0.000641
Z> scan fre
query: fre
Received ScanResponse
0 entries
Scan returned code 6
Diagnostic message(s) from database:
     [109] Database unavailable -- v2 addinfo 'Default'

Z> list_all
Connected to         : 
unix:/home/msaby/koha/kohamaster/var/run/zebradb/bibliosocket
auto_reconnect       : off
auto_wait            : on
Authentication       : psOpen
     Open string      : msaby/msaby
Bases                : Default
CCL file             : default.bib
CQL file             : /usr/local/share/yaz/etc/pqf.properties
Query type           : prefix (RPN sent to server)
Named Result Sets    : on
ssub/lslb/mspn       : 0/1/0
Format               : usmarc
Schema               : not set
Elements             :
APDU log             : off
Record log           : off
Other Info:

==========================

All files on my Koha directory are owned by "msaby:koha"  (in the 
begining it was "msaby:msaby", but I made a chown because I thought it 
could be the origin of the problem)
user msaby belongs to koha group
uid=1000(msaby) gid=1000(msaby) 
groupes=1000(msaby),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),109(lpadmin),124(sambashare),1002(koha)

result of "$ env " just before calling yaz-client :
USER=msaby
PWD=/home/msaby/koha/kohamaster
KOHA_CONF=/home/msaby/koha/kohamaster/etc/koha-conf.xml
PERL5LIB=/home/msaby/koha/kohamaster
__KOHA_GROUP__=koha
__KOHA_USER__=msaby

etc/zebradb/etc/passwd contains 1 line :
"msaby:msaby"

koha-conf.xml contains :
<listen id="biblioserver" 
 >unix:/home/msaby/koha/kohamaster/var/run/zebradb/bibliosocket</listen>
<directory>/home/msaby/koha/kohamaster/var/lib/zebradb/biblios</directory>
<config>/home/msaby/koha/kohamaster/etc/zebradb/zebra-biblios.cfg</config>
<cql2rpn>/home/msaby/koha/kohamaster/etc/zebradb/pqf.properties</cql2rpn>
           <serverInfo>
             <host>localhost</host>
             <port>9998</port>
             <database>biblios</database>
<serverinfo id="biblioserver">
<ccl2rpn>/home/msaby/koha/kohamaster/etc/zebradb/ccl.properties</ccl2rpn>
         <user>msaby</user>
         <password>msaby</password>




-- 
Mathieu Saby
Service d'Informatique Documentaire
Service Commun de Documentation
Université Rennes 2
Téléphone : 02 99 14 12 65
Courriel : mathieu.saby at univ-rennes2.fr



More information about the Koha mailing list