{"id":124,"date":"2008-09-25T11:16:42","date_gmt":"2008-09-25T17:16:42","guid":{"rendered":"http:\/\/vostorga.org\/?p=124"},"modified":"2008-09-25T11:16:42","modified_gmt":"2008-09-25T17:16:42","slug":"curioso-bug-en-avahi-0622","status":"publish","type":"post","link":"https:\/\/vostorga.org\/?p=124","title":{"rendered":"Curioso bug en avahi 0.6.22"},"content":{"rendered":"<p><em>Una brev\u00edsima introducci\u00f3n a avahi<\/em><\/p>\n<p><a title=\"Sitio del proyecto avahi\" href=\"http:\/\/avahi.org\/\" target=\"_blank\">Avahi<\/a> es una implementaci\u00f3n del concepto &#8220;exploraci\u00f3n de la red para descubrir servicios&#8221;, en otras palabras del est\u00e1ndar <a title=\"Definici\u00f3n en Wikipedia del Estandar Zeroconf\" href=\"http:\/\/en.wikipedia.org\/wiki\/Zeroconf\" target=\"_blank\">Zeroconf <\/a>,  utilizado por ejemplo para descubrir impresoras de red, compartidos de win2, servidores ftp, hosts,  mas que todo en LANs.<\/p>\n<p>Avahi no es exclusivo de GNU\/Linux, sino que hay implementaciones en otros sistemas operativos, por ejemplo el famoso<a title=\"Definicion en wikipedia de Bonjour\" href=\"http:\/\/en.wikipedia.org\/wiki\/Bonjour_(software)\" target=\"_blank\"> Bonjour<\/a> de OS X.<\/p>\n<p><em>El bug<\/em><\/p>\n<p>Recientemente revisando rutinariamente los logs me fij\u00e9 en lo siguiente:<\/p>\n<p>&#8230;<\/p>\n<h6>Sep 24 08:38:57 phoenix ath_pci: wifi0: Atheros 5424\/2424: mem=0xf2000000, irq=16<br \/>\nSep 24 14:38:57 phoenix avahi-daemon[11671]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.11.70.<br \/>\nSep 24 14:38:57 phoenix avahi-daemon[11671]: New relevant interface wlan0.IPv4 for mDNS.<br \/>\nSep 24 14:38:57 phoenix avahi-daemon[11671]: Registering new address record for 192.168.11.70 on wlan0.IPv4.<br \/>\nSep 24 08:41:48 phoenix acpid: received event &#8220;ac_adapter ACAD 00000080 00000001&#8221;<br \/>\nSep 24 08:41:48 phoenix acpid: notifying client 6097[106:1009]<\/h6>\n<p>&#8230;<\/p>\n<p>Como se puede notar la fecha reportada en el syslog en las l\u00edneas correspondientes a avahi se muestran incorrectamente e investigando esto se debe a que avahi corre en un chroot y no maneja bien la configuraci\u00f3n de zonas horarias; la soluci\u00f3n para que se muestre correctamente es copiar el archivo tz en el directorio \/etc\/avahi<\/p>\n<p># mkdir \/etc\/avahi\/etc<\/p>\n<p>#cp \/etc\/localtime \/etc\/avahi\/etc\/<\/p>\n<p>Reiniciamos el servicio y listo.<\/p>\n<p>Hay un ticket sobre lo anterior en <a href=\"http:\/\/avahi.org\/ticket\/221\" target=\"_blank\">http:\/\/avahi.org\/ticket\/221<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Una brev\u00edsima introducci\u00f3n a avahi Avahi es una implementaci\u00f3n del concepto &#8220;exploraci\u00f3n de la red para descubrir servicios&#8221;, en otras palabras del est\u00e1ndar Zeroconf , utilizado por ejemplo para descubrir impresoras de red, compartidos de win2, servidores ftp, hosts, mas que todo en LANs. Avahi no es exclusivo de GNU\/Linux, sino que hay implementaciones en [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[66,67,207],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-linux","tag-avahi","tag-fecha","tag-linux"],"_links":{"self":[{"href":"https:\/\/vostorga.org\/index.php?rest_route=\/wp\/v2\/posts\/124"}],"collection":[{"href":"https:\/\/vostorga.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vostorga.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vostorga.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vostorga.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":8,"href":"https:\/\/vostorga.org\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/vostorga.org\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/vostorga.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vostorga.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vostorga.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}