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-tp15456847p15456847.ht... Sent from the Koha - Dev mailing list archive at Nabble.com.
custard <custard@westnet.com.au> wrote:
21:13:44-13/02 [fatal] Failed to bind to unix:/var/run/koha/zebradb/bibliosocket [No such file or directory]
Yes and /var/run/koha/zebradb didn't exist. mkdir'ing it and chmod'ing it appropriately was the way around. Does it help? -- MJ Ray http://mjr.towers.org.uk/email.html tel:+44-844-4437-237 - Webmaster-developer, statistician, sysadmin, online shop builder, consumer and workers co-operative member http://www.ttllp.co.uk/ - Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/
Yes, it certianly seems to. Thanks. custard. MJ Ray-2 wrote:
custard <custard@westnet.com.au> wrote:
21:13:44-13/02 [fatal] Failed to bind to unix:/var/run/koha/zebradb/bibliosocket [No such file or directory]
Yes and /var/run/koha/zebradb didn't exist. mkdir'ing it and chmod'ing it appropriately was the way around. Does it help?
-- View this message in context: http://www.nabble.com/Zebra-fails-to-bind-two-sockets-tp15456847p15458924.ht... Sent from the Koha - Dev mailing list archive at Nabble.com.
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) John.Chadwick@state.nm.us -----Original Message----- From: koha-devel-bounces+john.chadwick=state.nm.us@nongnu.org [mailto:koha-devel-bounces+john.chadwick=state.nm.us@nongnu.org] On Behalf Of custard Sent: Wednesday, February 13, 2008 5:20 AM To: koha-devel@nongnu.org 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 Koha-devel@nongnu.org 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.
Hi, On 2/13/08, Chadwick, John, DCA <john.chadwick@state.nm.us> wrote:
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.
Yes, as I just found on closer inspection of the FHS documentation [1], files in /var/run are supposed to be deleted or truncated at boot. Debian Etch clears files but leaves the subdirectories in place, but Ubuntu and other systems that either mount /var/run as a tempfs or are are aggressive about clearing /var/run get rid of the subdirectories at boot. Consequently, I will patch koha-zebra-ctl.sh to create the subdirectories under /var/run if needed. [1] http://www.pathname.com/fhs/pub/fhs-2.3.html#VARRUNRUNTIMEVARIABLEDATA Regards, Galen -- Galen Charlton Koha Application Developer LibLime galen.charlton@liblime.com p: 1-888-564-2457 x709
participants (4)
-
Chadwick, John, DCA -
custard -
Galen Charlton -
MJ Ray