{"id":14306,"date":"2025-10-11T05:59:53","date_gmt":"2025-10-11T11:59:53","guid":{"rendered":"https:\/\/www.supportpro.com\/blog\/?p=14306"},"modified":"2025-10-11T05:59:56","modified_gmt":"2025-10-11T11:59:56","slug":"why-jetbackup-backup-jobs-fail-and-how-to-troubleshoot-them","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/why-jetbackup-backup-jobs-fail-and-how-to-troubleshoot-them\/","title":{"rendered":"Why JetBackup backup jobs fail and how to troubleshoot them"},"content":{"rendered":"\n<p>If you\u2019ve ever worked with <strong>JetBackup 5<\/strong>, you\u2019ve probably seen at least one error that makes your heart sink. For me, one of the trickiest was this MongoDB connection issue:<\/p>\n\n\n\n<p>Fatal error: Uncaught MongoDB\\Driver\\Exception\\ConnectionTimeoutException:\u00a0<br>No suitable servers found (serverSelectionTryOnce` set):\u00a0<br>[connection refused calling hello on &#8216;localhost:27217&#8217;]<\/p>\n\n\n\n<p>Looks ugly, right? But here\u2019s the truth: it\u2019s basically JetBackup saying, <em>\u201cHey, I tried to talk to MongoDB on port 27217, but it wouldn\u2019t answer.\u201d<\/em>  I\u2019ve run into this a few times, and the good news is \u2014 there are clear steps you can take to sort it out. Let me walk you through how I usually troubleshoot it.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Start with the Obvious: Are the Services Running?<\/strong><\/h2>\n\n\n\n<p>Most of the time, this error pops up because JetBackup or MongoDB just isn\u2019t running. Check them with:<\/p>\n\n\n\n<p>service jetmongod status<\/p>\n\n\n\n<p>service jetbackup5d status<\/p>\n\n\n\n<p>One quick warning: if a backup or reindex job is running, restarting services will stop them. So, if the job is important, wait until it finishes. If everything starts fine, reload the JetBackup GUI. Sometimes, that\u2019s all it takes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Disk Space Can Be the Culprit<\/strong><\/h2>\n\n\n\n<p>MongoDB is picky about storage. If your server\u2019s out of space, it won\u2019t run. Run this command:<\/p>\n\n\n\n<p>df -h<\/p>\n\n\n\n<p>If you see a partition at 100%, clean up some files. Logs and temp files usually eat a lot of space. Once you\u2019ve freed up some room, restart:<\/p>\n\n\n\n<p>service jetmongod restart &nbsp; # give it ~10 seconds<\/p>\n\n\n\n<p>service jetbackup5d restart<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Socket File &amp; Permissions<\/strong><\/h2>\n\n\n\n<p>MongoDB relies on a socket file \u2014 you\u2019ll find it at \/tmp\/mongodb-27217.sock. It needs to belong to mongod:mongod.<\/p>\n\n\n\n<p>Also check the \/tmp folder itself:<\/p>\n\n\n\n<p>ls -ld \/tmp<\/p>\n\n\n\n<p>It should show drwxrwxrwt (that \u201ct\u201d at the end means sticky bit, aka permissions set to 1777).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The \/etc\/hosts Gotcha (IPv6 vs IPv4)<\/strong><\/h2>\n\n\n\n<p>This one has caught me before. Sometimes MongoDB fails because localhost points to IPv6 instead of IPv4.<\/p>\n\n\n\n<p>Open \/etc\/hosts and look for something like this:<\/p>\n\n\n\n<p><code>::1 \u00a0 localhost localhost.localdomain localhost6 localhost6.localdomain6<\/code><\/p>\n\n\n\n<p>If that\u2019s the only localhost entry, you\u2019ll run into issues. Add the IPv4 line back:<\/p>\n\n\n\n<p><code>127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4<\/code><\/p>\n\n\n\n<p><code>::1 \u00a0 \u00a0 \u00a0 localhost localhost.localdomain localhost6 localhost6.localdomain6<\/code><\/p>\n\n\n\n<p>Save, restart JetBackup, and you\u2019re good.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Check Port 27217<\/strong><\/h2>\n\n\n\n<p>JetBackup talks to MongoDB on port <strong>27217<\/strong>. Make sure nothing\u2019s blocking it:<\/p>\n\n\n\n<p><code>nc -v localhost 27217<\/code><\/p>\n\n\n\n<p>If you see \u201cConnected,\u201d you\u2019re fine. If you see \u201cConnection refused,\u201d the port\u2019s blocked or MongoDB isn\u2019t listening \u2014 time to dig deeper (or get your sysadmin involved).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>When All Else Fails: Look at the Logs<\/strong><\/h2>\n\n\n\n<p>Logs don\u2019t lie. Check:<\/p>\n\n\n\n<p><code>cat \/usr\/local\/jetapps\/var\/log\/mongod\/mongod.log<\/code><\/p>\n\n\n\n<p>If you spot corruption errors or MongoDB refusing to start properly, the install might be broken. At this point, you\u2019ll probably need to reinstall JetBackup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Reinstalling JetBackup 5 (Last Resort)<\/strong><\/h2>\n\n\n\n<p>Before wiping it out, <strong>save your config exports<\/strong> so you don\u2019t lose everything:<\/p>\n\n\n\n<p><code>cp \/usr\/local\/jetapps\/usr\/jetbackup\/dailybackup \/root\/jetbackup<\/code><\/p>\n\n\n\n<p>Then remove the packages (for CentOS\/CloudLinux\/AlmaLinux\/Rocky):<\/p>\n\n\n\n<p>yum remove jetbackup5-base jetbackup5-directadmin jetmongod<\/p>\n\n\n\n<p>Reinstall with:<\/p>\n\n\n\n<p><code>jetapps --install jetbackup5-directadmin stable<\/code><\/p>\n\n\n\n<p>Finally, import your config:<\/p>\n\n\n\n<p><code>jetbackup --import \/root\/jetbackup\/jetbackup5_export_000000.tar.gz<\/code><\/p>\n\n\n\n<p><em>(Replace the filename with your actual export.)<\/em><\/p>\n\n\n\n<p>You\u2019ll also need to reindex your destinations:<\/p>\n\n\n\n<p><code>for id in $(jetbackup5api -F listDestinations | grep '_id: ' | awk '{print $2}'); do\u00a0<\/code><\/p>\n\n\n\n<p><code>\u00a0\u00a0\u00a0\u00a0jetbackup5api -F reindexDestination -D \"_id=$id\" ;\u00a0<\/code><\/p>\n\n\n\n<p>done<\/p>\n\n\n\n<p>It takes a few minutes, but once that\u2019s done, JetBackup should be back in business.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Wrapping It Up<\/strong><\/h2>\n\n\n\n<p>So, what looks like a scary MongoDB connection error usually boils down to a few common issues: services not running, disk space full, wrong localhost config, or port problems. And in the rare case MongoDB is truly corrupted, reinstalling JetBackup fixes it.<\/p>\n\n\n\n<p>The key is to start simple and work your way down the list. Nine times out of ten, you won\u2019t need to reinstall. But it\u2019s good to know that option is there if nothing else works. And here\u2019s the real takeaway: don\u2019t let that giant wall of error text freak you out. With <a href=\"https:\/\/www.supportpro.com\/softwareinstallation.php\" title=\"\">SupportPRO<\/a>&#8216;s help, you can get JetBackup talking to MongoDB again and your backups running smoothly.<\/p>\n\n\n\n<div class=\"wp-block-media-text alignwide has-media-on-the-right is-stacked-on-mobile is-vertically-aligned-center has-white-background-color has-background\"><div class=\"wp-block-media-text__content\">\n<p class=\"has-large-font-size\">Facing issues? <\/p>\n\n\n\n<p class=\"has-large-font-size\">Our technical support<br>engineers can solve it. <\/p>\n\n\n\n<!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3350a795-db50-482f-9911-301930d1b1be\"><span class=\"hs-cta-node hs-cta-3350a795-db50-482f-9911-301930d1b1be\" id=\"hs-cta-3350a795-db50-482f-9911-301930d1b1be\"><!--[if lte IE 8]><div id=\"hs-cta-ie-element\"><\/div><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\" ><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\"  alt=\"Contact Us today!\"\/><\/a><\/span><script charset=\"utf-8\" src=\"https:\/\/js.hscta.net\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta.load(2725694, '3350a795-db50-482f-9911-301930d1b1be', {\"useNewLoader\":\"true\",\"region\":\"na1\"}); <\/script><\/span><!-- end HubSpot Call-to-Action Code -->\n<\/div><figure class=\"wp-block-media-text__media\"><img fetchpriority=\"high\" decoding=\"async\" width=\"904\" height=\"931\" src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" alt=\"guy server checkup\" class=\"wp-image-12943 size-full\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you\u2019ve ever worked with JetBackup 5, you\u2019ve probably seen at least one error that makes your heart sink. For me, one of the trickiest was this MongoDB connection issue:&hellip;<\/p>\n","protected":false},"author":4,"featured_media":14882,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[369,358],"tags":[],"class_list":["post-14306","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jetbackup","category-recovery-backup"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/14306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=14306"}],"version-history":[{"count":3,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/14306\/revisions"}],"predecessor-version":[{"id":14883,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/14306\/revisions\/14883"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/14882"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=14306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=14306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=14306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}