Koha public Z39.50 server bug. Work to do in koha-conf.xml
Hi to all, last month different peoplae wrote about an error on how-to put on-line a public z39.50 server. The error (in the log of the zebrasrv) was: zebrasrv(1) [request] Init ERROR 1 ID:81 Name:YAZ Version:3.0.45 62f4f43aa7b97890d7c4bf776e3749f25b2e1c5a I think To have found the source of the error. See the first lines of koha-conf.xml with a public z39.50 server: [...] <listen id="biblioserver"
unix:/home/koha/koha-dev/var/run/zebradb/bibliosocket</listen> <listen id="authorityserver" unix:/home/koha/koha-dev/var/run/zebradb/authoritysocket</listen> <!-- public server runs on tcp --> <listen id="publicserver" >tcp:@:9999</listen> [...] you have the error.
But if you change the lines in this way: <!-- <listen id="biblioserver"
unix:/home/koha/koha-dev/var/run/zebradb/bibliosocket</listen> --> <listen id="authorityserver" unix:/home/koha/koha-dev/var/run/zebradb/authoritysocket</listen> <!-- public server runs on tcp --> <listen id="biblioserver" >tcp:@:9999</listen>
the z39.50 public server now works (on biblios database). But why ? I think it work because in the rest of koha-conf.xml only two server are setup, biblioserver and authorityserver. The server publicserver doesn't exist. So the error that we see with yaz-client means: "You are asking of an on-existing server. This is a permanent error. This what I have found. I don't know what is better to do now. I don't what Zebra conf is needed to have in the local servers on unix socket and only one server on public tcp port. Bye
In your setup, you have removed the biblioserver and replaced it with what was the publicserver. It is fine to use a TCP port for any of the zebra servers, though this exposes the service to possible outside connections and may represent security and performance risks. That is why zebra defaults to using sockets: they are faster, and more secure. You should try to get things running with the stock configuration, leaving the biblioserver as normal and the publicserver enabled. In particular, you should shutdown all zebrasrv processes then make sure this file is removed: /home/koha/koha-dev/var/run/zebradb/bibliosocket Then restart zebrasrv as the correct user and test again with yaz-client localhost:9999 -- Joe Atzberger LibLime - Open Source Library Solutions
participants (2)
-
Joe Atzberger -
tajoli