We have had this problem with Koha 3 on Ubuntu. After doing a great deal of research, it seems that Ubuntu (and probably other OS systems) treat directories in /var/run and /var/lock as temp directories and each time the machine reboots, the directories disappear on us.
Here is my script that I run, feel free to modify it for your installation. I can get it to run from a command line, and it works perfectly, but I have had problems running it as a cron job at startup. !/bin/sh sleep 20 cd /var/run mkdir koha chown koha koha chgrp koha koha cd /var/run/koha mkdir zebradb chown koha zebradb chgrp koha zebradb chmod 777 zebradb sleep 2 cd /var/lock mkdir koha chown koha koha chgrp koha koha cd /var/lock/koha mkdir zebradb chown koha zebradb chown koha zebradb cd /var/lock/koha/zebradb mkdir biblios chown koha biblios chgrp koha biblios chmod 777 biblios mkdir authorities chown koha authorities chgrp koha authorities chmod 777 authorities sleep 2 /usr/share/koha/bin/koha-zebra-ctl.sh stop /usr/share/koha/bin/koha-zebraqueue-ctl.sh stop /usr/share/koha/bin/koha-zebra-ctl.sh start /usr/share/koha/bin/koha-zebraqueue-ctl.sh start +-------------------------------------------+ John Chadwick, Ed.D. Information Technology Manager New Mexico State Library 1209 Camino Carlos Rey Santa Fe, NM 87507 505-476-9740 505-476-9761 (FAX) [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of custard Sent: Wednesday, February 13, 2008 5:20 AM To: [email protected] Subject: [Koha-devel] Zebra fails to bind two sockets Hi, Has anyone seen something like this, and is there a way around? $ sudo zebrasrv -f /etc/koha/koha-conf.xml Password: 21:13:44-13/02 [log] zebra_start 2.0.26 /etc/koha/zebradb/zebra-biblios.cfg 21:13:44-13/02 [log] zebra_start 2.0.26 /etc/koha/zebradb/zebra-authorities.cfg 21:13:44-13/02 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/bibliosocket id=1 21:13:44-13/02 [fatal] Failed to bind to unix:/var/run/koha/zebradb/bibliosocket [No such file or directory] 21:13:44-13/02 [server] Adding dynamic listener on unix:/var/run/koha/zebradb/authoritysocket id=2 21:13:44-13/02 [fatal] Failed to bind to unix:/var/run/koha/zebradb/authoritysocket [No such file or directory] 21:13:44-13/02 [server] Adding dynamic listener on tcp:@:9999 id=0 21:13:44-13/02 [server] Starting server zebrasrv pid=434 The command is taken from the INSTALL file for Koha 3, and it's on Darwin 9.2.0 (OsX 10.5.2) thanks, custard. -- View this message in context: http://www.nabble.com/Zebra-fails-to-bind-two-sockets-tp15456847p1545684 7.html Sent from the Koha - Dev mailing list archive at Nabble.com. _______________________________________________ Koha-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/koha-devel ______________________________________________________________________ This inbound email has been scanned by the MessageLabs Email Security System. ______________________________________________________________________ Confidentiality Notice: This e-mail, including all attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited unless specifically provided under the New Mexico Inspection of Public Records Act. If you are not the intended recipient, please contact the sender and destroy all copies of this message. -- This email has been scanned by the Sybari - Antigen Email System. _______________________________________________ Koha-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/koha-devel
