{"id":1399,"date":"2022-08-20T14:07:03","date_gmt":"2022-08-20T19:07:03","guid":{"rendered":"http:\/\/zewwy.ca\/?p=1399"},"modified":"2022-08-22T12:04:36","modified_gmt":"2022-08-22T17:04:36","slug":"mailbox-offline-exception","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2022\/08\/20\/mailbox-offline-exception\/","title":{"rendered":"Mailbox Offline Exception"},"content":{"rendered":"<p>Since I need some email from an address I use, I figured I&#8217;d have some fun and spin up the ol&#8217; Exchange server.<\/p>\n<p>To my surprise when I attempted to login to OWA (since the front ends were loading just fine) after authentication I would be greeted with &#8220;Microsoft.Exchange.Data.Storage.MailboxOfflineException&#8221;.<\/p>\n<p>My initial googlings didn&#8217;t provide much of good results.<\/p>\n<p>I went to the server and did the usual check services and such, and noticed the root cause. Low Disk Space. I figured extending the logical volume and a reboot would suffice&#8230; nope. Problem persisted.<\/p>\n<p>I decided to run the MS Exchange health checker: <a href=\"https:\/\/aka.ms\/ExchangeHealthChecker\">https:\/\/aka.ms\/ExchangeHealthChecker<\/a><\/p>\n<p>even after getting everything green in the health checker, the problem persisted.<\/p>\n<p>A bit more google fooing and I was able to track down someone with a <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/6b1d116f-61c9-47d9-b18d-131df0ddacb0\/unable-to-connect-owa?forum=exchangesvrclients\">similar problem on TechNet<\/a> with some useful guidance to use eseutil.exe to check the database.<\/p>\n<p>The database indeed return &#8220;Dirty Shutdown&#8221;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/LAWQhzk.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/LAWQhzk.jpg\" alt=\"\" width=\"1221\" height=\"496\" \/><\/a><\/p>\n<p>ran the repair commands. *Note* you should try to use \/r before using \/p if it works you don&#8217;t need to use \/p as it&#8217;s a hard recovery and data loss could ensure from it. I didn&#8217;t care as it&#8217;s use lab data.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/co335V8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/co335V8.jpg\" alt=\"\" width=\"1211\" height=\"660\" \/><\/a><\/p>\n<p>K checking again it return &#8220;Clean Shutdown&#8221; everything I&#8217;ve read says it should be able to be mounted now. Failed to Mount&#8230;.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/IKB00tn.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/IKB00tn.jpg\" alt=\"\" width=\"637\" height=\"489\" \/><\/a><\/p>\n<p>As a last ditch effort, I try to Google some more if I missed something else. I found this <a href=\"https:\/\/www.stellarinfo.com\/blog\/resolve-unable-to-mount-database-hr0x80004005-ec1108-error\/\">nice post by Eric Simson<\/a><\/p>\n<p>Step 1: Backup the Database (my case don&#8217;t care)<br \/>\nStep 2: Check Storage<br \/>\n(Was the cause, extended volume to 190GB used out of 250GB)<br \/>\nStep 3: Restart Exchange Services (Yeap, ran health checker)<br \/>\nStep 4: Check Database State (Yeap fixed it)<br \/>\nStep 5: Repair Exchange Database (Yeap fixed it)<\/p>\n<p>Yet even after reboot and using PowerShell AND using accept data loss&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/ZEoWpSY.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/ZEoWpSY.png\" alt=\"\" width=\"1271\" height=\"275\" \/><\/a><\/p>\n<p>I was about to give up when I had one final idea, I realized that since \/p does a hard recovery of the DB even if the log files are lost, and the log files take up a lot of space&#8230;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/NJQzeYW.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/NJQzeYW.png\" alt=\"\" width=\"916\" height=\"418\" \/><\/a><\/p>\n<p>At this point I had well over 50% free space on the server. I ran the repair DB command again just to be safe.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/5kW4BIr.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/5kW4BIr.png\" alt=\"\" width=\"670\" height=\"33\" \/><\/a><\/p>\n<p>wait.. what .. no error&#8230;. guess I was only at 24% free space, and that wouldn&#8217;t cut it, I don&#8217;t get why considering the -AcceptDataloss was defined.<\/p>\n<p>Go to log in to OWA&#8230;. Ehhhh!!! There&#8217;s my emails!<\/p>\n<p>Hope this helps someone.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since I need some email from an address I use, I figured I&#8217;d have some fun and spin up the ol&#8217; Exchange server. To my surprise when I attempted to login to OWA (since the front ends were loading just fine) after authentication I would be greeted with &#8220;Microsoft.Exchange.Data.Storage.MailboxOfflineException&#8221;. My initial googlings didn&#8217;t provide much &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2022\/08\/20\/mailbox-offline-exception\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mailbox Offline Exception&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[36,8],"tags":[],"class_list":["post-1399","post","type-post","status-publish","format-standard","hentry","category-exchange","category-server-administration"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=1399"}],"version-history":[{"count":2,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1399\/revisions"}],"predecessor-version":[{"id":1402,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1399\/revisions\/1402"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}