{"id":913,"date":"2010-01-20T18:02:07","date_gmt":"2010-01-20T23:02:07","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=913"},"modified":"2011-04-06T19:15:21","modified_gmt":"2011-04-07T00:15:21","slug":"add-strace-to-your-linux-swiss-army-knife","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2010\/add-strace-to-your-linux-swiss-army-knife\/","title":{"rendered":"Add strace to your linux swiss army knife"},"content":{"rendered":"<p>My Cyrus IMAP mail server is my very own 20-headed hydra. \u00a0 It&#8217;s mostly well-behaved, but once in a while I have to jump back in the ring with the bitch and wrestle her back into submission. This is not fun, and if you can structure your life in such a way as to avoid it, I would highly recommend it.<\/p>\n<p>The authentication started failing when I went to check my email.\u00a0 Because I know what a monster the thing is, I put off fixing it for a couple weeks &#8211; I just didn&#8217;t have 5 hours for the dive back into the internals.\u00a0 Eventually I really needed some email, so I jumped in.<\/p>\n<ul>\n<li>rebuilt cyrus-imap and cyrus-sasl, no luck<\/li>\n<li>suspected that sasl was to blame, saslpasswd2 (the tool to manage email account passwords) reported failure<\/li>\n<li>played with every authentication setting of sasl, no luck<\/li>\n<li>errors were minimal, I monitored logs and googled for the errors I got with no luck<\/li>\n<li>FINALLY someone with a similar error was told to try strace, as follows:\n<pre><code>strace -o sasl-out.txt -f sasldblistusers2<\/code><\/pre>\n<p>Awesome!  It shows all kinds of system calls made by the executable, including reads and writes and logs.  And that showed failure during a seek inside my sasldb file.\u00a0 Holy occam&#8217;s razor, batman!  Wiped the file and recreated it, and everything is all happy again.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>My Cyrus IMAP mail server is my very own 20-headed hydra. \u00a0 It&#8217;s mostly well-behaved, but once in a while I have to jump back in the ring with the bitch and wrestle her back into submission. This is not fun, and if you can structure your life in such a way as to avoid [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[10],"tags":[77],"class_list":["post-913","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","tag-strace"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-eJ","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=913"}],"version-history":[{"count":8,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/913\/revisions"}],"predecessor-version":[{"id":1138,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/913\/revisions\/1138"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}