{"id":102,"date":"2013-02-05T19:02:15","date_gmt":"2013-02-05T19:02:15","guid":{"rendered":"http:\/\/iain.rauch.co.uk\/blog\/?p=102"},"modified":"2014-12-30T09:38:02","modified_gmt":"2014-12-30T09:38:02","slug":"ubuntu-12-10-upgrade-broke-afp","status":"publish","type":"post","link":"https:\/\/iain.rauch.co.uk\/blog\/2013-02\/ubuntu-12-10-upgrade-broke-afp\/","title":{"rendered":"Ubuntu 12.10 Upgrade Broke AFP"},"content":{"rendered":"<p>Recently I upgraded one of my servers from Ubutnu Server 11.10 to 12.10 (via 12.04). Unfortunteatley, this broke AFP.<\/p>\n<p>When connecting, I got the error &#8220;<strong>Something wrong with the volume\u2019s CNID DB<\/strong>&#8220;.<\/p>\n<p>I&#8217;m pretty sure I&#8217;ve had this error before, but the standard fix of \u00a0deleting\u00a0.AppleDB didn&#8217;t work.<\/p>\n<p>After reading a few more up-to-date tutorials and verifying my configurations, I finally sussed it.<\/p>\n<p>[code lang=&#8221;bash&#8221;]root@burns:\/home\/iain# dbd<br \/>\ndbd: error while loading shared libraries: libdb-4.8.so: cannot open shared object file: No such file or directory[\/code]<\/p>\n<p>So I checked to see if I had this anywhere.<\/p>\n<p>[code lang=&#8221;bash&#8221;]root@burns:\/home\/iain# locate libdb-4.8[\/code]<\/p>\n<p>No results.<\/p>\n<p>[code lang=&#8221;bash&#8221;]root@burns:\/home\/iain# locate libdb<br \/>\n&#8230;<br \/>\n\/var\/cache\/apt\/archives\/libdb4.8_4.8.30-11ubuntu1_amd64.deb<br \/>\n&#8230;[\/code]<\/p>\n<p>That was handy, so I installed it.<\/p>\n<p>[code lang=&#8221;bash&#8221;]root@burns:\/home\/iain# dpkg -i \/var\/cache\/apt\/archives\/libdb4.8_4.8.30-11ubuntu1_amd64.deb<br \/>\nSelecting previously unselected package libdb4.8:amd64.<br \/>\n(Reading database &#8230; 196079 files and directories currently installed.)<br \/>\nUnpacking libdb4.8:amd64 (from &#8230;\/libdb4.8_4.8.30-11ubuntu1_amd64.deb) &#8230;<br \/>\nSetting up libdb4.8:amd64 (4.8.30-11ubuntu1) &#8230;<br \/>\nProcessing triggers for libc-bin &#8230;<br \/>\nldconfig deferred processing now taking place[\/code]<\/p>\n<p>And dbd started working.<\/p>\n<p>[code lang=&#8221;bash&#8221;]root@burns:\/home\/iain# dbd<br \/>\nUsage: dbd [-e|-t|-v|-x] -d [-i] | -s [-c|-n]| -r [-c|-f] | -u<\/p>\n<p>&#8230;[\/code]<\/p>\n<p>After deleting .AppleDB for good measure and restarting Netatalk, all was well.<\/p>\n<p>I have no idea why this was missing, or whether it is the correct fix but it seems to work without side effects. If you don&#8217;t have the .deb, I guess this would also work:<\/p>\n<p>[code lang=&#8221;bash&#8221;]apt-get install libdb4.8[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I upgraded one of my servers from Ubutnu Server 11.10 to 12.10 (via 12.04). Unfortunteatley, this broke AFP. When connecting, I got the error &#8220;Something wrong with the volume\u2019s CNID DB&#8220;. I&#8217;m pretty sure I&#8217;ve had this error before, &hellip; <a href=\"https:\/\/iain.rauch.co.uk\/blog\/2013-02\/ubuntu-12-10-upgrade-broke-afp\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":3,"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/posts\/102\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iain.rauch.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}