Running "foreman-maintain upgrade run --target-version 6.4” fails with “rm: cannot remove ‘/var/log/mongodb’: Device or resource busy”

Solution Verified - Updated -

Issue

Running foreman-maintain upgrade run --target-version 6.4 returns the below error:

Upgrade Step: remove_legacy_mongo...
yum remove -y mongodb-2* mongodb-server-2* > /dev/null 2>&1 finished successfully!
rm: cannot remove ‘/var/log/mongodb’: Device or resource busy
rm -rf /etc/mongod.conf /var/log/mongodb failed! Check the output for error!
Upgrade step remove_legacy_mongo failed. Check logs for more information.

Environment

Satellite 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content