JetMongod Error "Authentication Failed" after mongo update

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/jetapps
 
If 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 --import
jetbackup5 --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
  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

Email Notifications Are Not Being Sent

JetBackup 5 uses Notification Integrations to send Notifications based on the configured...

What are the level of Alerts in JetBackup 5?

JetBackup 5 now has only 3 Alert levels compared to JetBackp 4. All 3 levels will appear on the...

JetBackup 5 process stops every 10 minutes

On Cloudlinux servers, it has been reported that the jetbackup5d process is constantly being...

Create Destination Error: This destination path is already owned by other destination

On JetBackup 5, you may notice the following error when creating a destination that uses the same...

What does Incremental Backup mean?

Incremental backups will only copy files that have changed or are new since the last full backup....