5
votes

When I try to start a weblogic server (which runs on another server) from my local machine I am getting below error. I can stop this weblogic server without any problem but I couldn't start. There are username and password fields in boot.properties file but I don't know what are they. Is there any idea?

<Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. 
Reason: weblogic.security.SecurityInitializationException: 
Authentication denied: Boot identity not valid; 
The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:960)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:148)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
3

3 Answers

5
votes

just delete file which is ManagedServerDir/data/ldap & restart domain yourdomain/bin ./startWeblogic.sh

3
votes

You can save username and password in your boot.properties file.

In production mode, the boot.properties file doesn’t exist. Need to create this file in

$DOMAIN_HOME/servers/AdminServer/security

I think you need check this path and this properties. May be the password or username is incorrect.

Here is link which show how to create and find this propreties.

If it doesn't find or can't rewrite it, you can start the server without the boot.properties file:

java -Dweblogic.management.username=username-Dweblogic.management.password=password -Dweblogic.system.StoreBootIdentity=true -Dweblogic.Name=myAdminServer weblogic.Server

This script, I find in this page.


Edit:

Now I found some usefull tips in another forum.

  1. edit the boot.properties file, use plain text username and password instead of encrypted like:
    Username: weblogic password: Weblogic1
    After start the server from command line, it will encrypt again automitically.
  2. remove the ManagedServerDir/data/ldap directory completely.
  3. Always keep backup of files before removing it.
  4. Now try to start the server from the command prompt and provide the username/password used to login to the Admin Console.

And found this tip from weblogictips user of same forum:

I think before try these tips that you should check your the authentication provider for the domain. If it is external then you may need to reset the password from external ldap.

Also move the ldap dir and boot.properties files if locally present.

Only difference in case the server is started through the Admin Console / WLST is that you have to move the nodemanager dir also present is the doamin_home/servers/ms1/data/nodemanager


I hope these tips are help to you. If not please try delete username and password (don't necessary to delete username= in file) in all boot.properties file and start from beginning...

0
votes

i got this error when I accidentally changed the username and password in boot.properties and it took me a while to figure out the cause. it has the encrypted user name and password which is for the security purpose and to reset it I had to remove the encrypted user name and password and enter the correct one in the same pattern which that file expects. But still weblogic startup was failing and the reason was the due to LDAP connection which it was making with the wrong credentials which i entered before so i deleted the 'data' folder from the servers folder along with tmp, cache and security. It worked as the ldap was created with the new weblogic credentials.

Keep backup when u are doing any changes in the servers directory to revert back in case if the workaround is not helping.