This may be helpful if you logged in and received the following message.
Cannot find instance ‘ICS_UserProfile::ICS-PROFILE-default-profile’
Quick and Dirty:
This means that somewhere along the way a user profile has been removed that is associated with the account that is being used to login with. This can also mean that the repository has been corrupted. To fix this, go to <SAM Home>/local/repos/icf and restore the last .rps file.
- Stop SAM and OI depending on which one you are unable to login to.
- Rename current <SAM>.rps or <OI>.rps located in <SAM Home>/smarts/bin/local/repos/icf to create a backup of the current rps.
- Find the latest .rps file and rename to the same name as the original.
- Start services and login.
Please note, you will lose any changes made since the .rps was last written. It is common that the old .rps will be several months old.
Restore the old .rps, extract the user profile information and then import back into the new .rps file.
- Restore an old known good copy of the SAM or OI repository .rps file from backup. Name the backup <SAM>-bak.rps or <OI>-bak.rps.
Run the following command to startup the <SAM>-RESTORE domain:
<SAM Home>/smarts/bin/sm_server -n <SAM>-RESTORE -c ics --output --ignore-restore-errors
- In a new command shell, run <SAM Home>/smarts/bin/brcontrol to make sure that the domain has started and is registered with the broker.
Export the config data from the <SAM>-RESTORE by running the following command:
<SAM Home>/smarts/bin/sm_config -s <SAM>-RESTORE export SAM-config-export.xml
This will create SAM-config-export.xml in the <SAM>/smarts/local/conf/icf directory.
Edit this file to extract only the user profile that you need to import, then save it as new_config_import.xml
Run the following command against the production SAM or OI domain to import the config:
<SAM Home>/smarts/bin/sm_config –s <production SAM or OI> import --force new_config_import.xml
A user logged in and got this error:
Cannot find instance ‘ICS_UserProfile::ICS-PROFILE-<username>-profile’
If you can still login with the Admin account, simply recreate the profile and instruct the user to login again.
Guarding your IT Experience!