In some server environments, we've seen upgrades to jetmongod fail due to using the IPv6 localhost during mongorestore. First, verify that it was a mongo upgrade that caused the issue by checking the update logs.
grep -Rni mongo /usr/local/jetapps/var/log/jetappsIf you see the error:
/usr/local/jetapps/var/log/jetapps/20251231.000005_21151.log:178:Enter password for mongo user:
/usr/local/jetapps/var/log/jetapps/20251231.000005_21151.log:179:2025-12-31T00:02:04.442-0600 error connecting to host: failed to connect to mongodb://localhost:27217/:
server selection error: server selection timeout, current topology: { Type: Single, Servers: [{ Addr: localhost:27217, Type: Unknown, Last error: connection() error occurred during connection handshake: dial tcp [::1]:27217: connect: connection refused }, ] }
/usr/local/jetapps/var/log/jetapps/20251231.000005_21151.log:186:MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27217
Then, the upgrade and restore process failed and reinstallation is recommended.
1. Make a copy of the
/usr/local/jetapps/usr/jetbackup5/dailyexports directory to a location OUTSIDE of /usr/local/jetapps. This is important because those files will be deleted once JB5 is removed in Step 2.This command will create a directory "JBConfigExports" and then copy all the previous exports to that directory.
mkdir -p /root/JBConfigExports ; cp -rav /usr/local/jetapps/usr/jetbackup5/dailyexports/* /root/JBConfigExports/
2. Remove JetBackup 5 packages, including jetmongod. Enter "y" (yes) when prompted.
CentOS/CloudLinux/AlmaLinux/Rocky Linux 7, 8, 9, 10 Only:
yum remove jetbackup5-base jetbackup5-{PANEL} jetmongod
Debian/Ubuntu Only:
apt autoremove jetbackup5-base jetbackup5-{PANEL} jetmongod
3. Install the packages using the JetApps install script
jetapps --install jetbackup5-{PANEL} release
4. Import the JB Config Daily exports you made using
jetbackup5 --importjetbackup5 --import /PATH/TO/EXPORT.tar.gz -v
5. Now, reindex ALL destinations that were previously created in JB5. You can use this command to reindex all destinations if you have multiple:
for id in $(jetbackup5api -F listDestinations | grep '_id: ' | awk '{print $2}'); do jetbackup5api -F reindexDestination -D "_id=$id" ; done

