Unable to backup profile in WebSphere Application Server

Unable to backup profile in WebSphere Application Server


Problem – Unable to backup profile in WebSphere Application Server

Error

/opt/WebSphere7/profiles/Dmgr01/bin> ./manageprofiles.sh -backupProfile -profileName AppSrv01 -backupFile /opt/backup_profiles/AppSrv01_backup.zip
[1] 58019
/opt/WebSphere7/profiles/Dmgr01/bin> Profile AppSrv01 is currently in use: Retry the command later. If there are no other processes are operating on the profile, then the profile might be corrupt. Run the validateAndUpdateRegistry command and create the profile again.
INSTCONFFAILED: Cannot backup profile: For more information, consult /opt/WebSphere7/logs/manageprofiles/AppSrv01_backupProfile.log.

Initially i tried to backupProfile through shell by running the above command but it got timeout. When i tried to run the same command for profile backup it was throwing the above error. As per the research it seems like due to timeout it might have started a process that has locked out an XML file or the process might have got killed and a zombie process was created that is holding a file lock.

Resolution

Tried the below update to the profileRegistry.xml file. Change the value of isAReservationTicket=”true” to isAReservationTicket=”false” and ran the above command for profile backup

File – <appServerRoot>/properties/profileRegistry.xml
Before –
<?xml version=”1.0″ encoding=”UTF-8″?>
<profiles>
    <profile isAReservationTicket=”false” isDefault=”true” name=”Dmgr01″ path=”/opt/WebSphere7/profiles/Dmgr01″ template=”/opt/WebSphere7/profileTemplates/management”/>
    <profile isAReservationTicket=”true” isDefault=”false” name=”AppSrv01″ path=”/opt/WebSphere7/profiles/AppSrv01″ template=”/opt/WebSphere7/profileTemplates/default”/>
</profiles>
After –
<?xml version=”1.0″ encoding=”UTF-8″?>
<profiles>
    <profile isAReservationTicket=”false” isDefault=”true” name=”Dmgr01″ path=”/opt/WebSphere7/profiles/Dmgr01″ template=”/opt/WebSphere7/profileTemplates/management”/>
    <profile isAReservationTicket=”false” isDefault=”false” name=”AppSrv01″ path=”/opt/WebSphere7/profiles/AppSrv01″ template=”/opt/WebSphere7/profileTemplates/default”/>
</profiles>
Re-run the Backup Profile command
/opt/WebSphere7/profiles/Dmgr01/bin> ./manageprofiles.sh -backupProfile -profileName AppSrv01 -backupFile /opt/backup_profiles/AppSrv01_backup.zip
INSTCONFSUCCESS: Success: The profile backup operation was successful.

Hope you enjoyed reading this article. Thank you.

1 COMMENT

comments user
Raphael

Thank you. It helped me!