{"id":933,"date":"2023-05-07T14:08:10","date_gmt":"2023-05-07T08:08:10","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=933"},"modified":"2023-05-07T14:08:10","modified_gmt":"2023-05-07T08:08:10","slug":"server-error-ok-roundcube-cpanel-fix","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/server-error-ok-roundcube-cpanel-fix.html","title":{"rendered":"Server Error! (Ok) Roundcube Cpanel &#8211; Fix"},"content":{"rendered":"\n<p>When I tried to load my Roundcube today, found that it failed to load the inbox and instead had thrown the following error:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Server Error! (Ok)<\/pre>\n\n\n\n<p>Then, I tried searching the cpanel logs or the roundcube error log but found nothing. Then, I checked the Dovecot log located here:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/var\/log\/maillog<\/pre>\n\n\n\n<p>I found the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">May  7 13:57:49 network2 dovecot: imap(shawon@mellowhost.com)&lt;26343>&lt;cQG+qxX7MvdneMrv>: Error: Mailbox INBOX: mmap(size=351817308) failed with file \/home\/mellow\/mail\/mellowhost.com\/shawon\/dovecot.index.cache: Cannot allocate memory<\/pre>\n\n\n\n<p>This is happening because Dovecot caches the mail index in a file, once it tries to cache a lot of emails, it fails with a memory error. In those cases, you may remove the cache file and let Dovecot generate a new cache based on the latest mails. You may simply rm the file and see Roundcube is loading again:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">rm -f \/home\/mellow\/mail\/mellowhost.com\/shawon\/dovecot.index.cache<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I tried to load my Roundcube today, found that it failed to load the inbox and instead had thrown the following error: Then, I tried searching the cpanel logs or the roundcube error log but found nothing. Then, I checked the Dovecot log located here: I found the following: This is happening because Dovecot &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/server-error-ok-roundcube-cpanel-fix.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Server Error! (Ok) Roundcube Cpanel &#8211; Fix&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[46,715,714],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/933"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=933"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/933\/revisions"}],"predecessor-version":[{"id":934,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/933\/revisions\/934"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}