Why unlock_entity.sh script fails with "./dbfunctions.sh: No such file or directory"?

Solution Unverified - Updated -

Issue

  • Trying to unlock a locked vm and its images in RHEV-3.1 using unlock_entity.sh script fails with below error message.
# /usr/share/ovirt-engine/dbscripts/unlock_entity.sh -t vm -i dev1.dev -d
engine -u postgres -r
/usr/share/ovirt-engine/dbscripts/unlock_entity.sh: line 3: ./dbfunctions.sh: No such file or directory
/usr/share/ovirt-engine/dbscripts/unlock_entity.sh: line 4: ./dbcustomfunctions.sh: No such file or directory
/usr/share/ovirt-engine/dbscripts/unlock_entity.sh: line 7: set_defaults: command not found
Caution, this operation may lead to data corruption and should be used with care. Please contact support prior to running this command
Are you sure you want to proceed? [y/n]
y
/usr/share/ovirt-engine/dbscripts/unlock_entity.sh: line 65: unlock_entity: command not found

Environment

  • Red Hat Enterprise Virtualization v3.1

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