Reputation: 170
When I try to federate Websphere node with Deployment Manager i get error during creation:
<record>
<date>2020-05-15T08:24:01</date>
<millis>1589523841283</millis>
<sequence>438</sequence>
<logger>com.ibm.ws.profile.validators.DirectoryValidator</logger>
<level>SEVERE</level>
<class>com.ibm.ws.profile.validators.DirectoryValidator</class>
<method>isValidDir</method>
<thread>1</thread>
<message>The -profilePath '/opt/IBM/WAS8/profiles/AppSrv01' already exists, and is not empty</message>
</record>
<record>
<date>2020-05-15T08:24:01</date>
<millis>1589523841286</millis>
<sequence>439</sequence>
<logger>com.ibm.ws.profile.validators.DirectoryValidator</logger>
<level>SEVERE</level>
<class>com.ibm.ws.profile.validators.DirectoryValidator</class>
<method>runValidator</method>
<thread>1</thread>
<message>The profile path is not valid.</message>
</record>
<record>
<date>2020-05-15T08:24:01</date>
<millis>1589523841286</millis>
<sequence>440</sequence>
<logger>com.ibm.wsspi.profile.validators.GenericValidator</logger>
<level>SEVERE</level>
<class>com.ibm.wsspi.profile.validators.GenericValidator</class>
<method>getErrorOutput</method>
<thread>1</thread>
<message>Returning error message:The profile path is not valid.</message>
</record>
Command to create profile:
/opt/IBM/WAS8/bin/manageprofiles.sh -create -profileName AppSrv01 -profilePath /opt/IBM/WAS8/profiles/AppSrv01 -templatePath /opt/IBM/WAS8/profileTemplates/managed -dmgrHost dmgrhost -dmgrPort 8879 -dmgrAdminUserName myuser -dmgrAdminPassword 'mypassword' -federateLater false -hostName mynodehostname
This node is fresh and I'm pretty sure the folder is empty before command execution.
Upvotes: 0
Views: 1109
Reputation: 480
I suggest that you install again dmgr.
/!\ be careful.
So Clean up :
/opt/IBM/WAS8/AppServer/bin/manageprofiles.sh -deleteAll
rm -Rf /opt/IBM/WAS8/AppServer/profiles/*
Then install again dmgr then AppServer
Upvotes: 0
Reputation: 102
You have to Remove temp and cache using cleanCache.sh and osgi located in bin folder. Then run again the profile tool.
Upvotes: 0