Thursday, May 28, 2009

There was an error while opening the file store file

I was getting this error, for no reason since the file would belong to the same Unix user that started the MS. Deleting the persistent store file solved the issue. This with Weblogic 9.2.


May 28, 2009 3:00:20 PM CEST Notice WebLogicServer BEA-000365 Server state changed to STARTING
May 28, 2009 3:00:20 PM CEST Info WorkManager BEA-002900 Initializing self-tuning thread pool
May 28, 2009 3:00:20 PM CEST Notice Log Management BEA-170019 The server log file /data/domains64bit_261/tst/acme/acme_alsb_tst/servers/acme_alsb_tst_server_1/logs/acme_alsb_tst_server_1.log is opened. All server side log events will be written to this file.
May 28, 2009 3:00:22 PM CEST Notice Security BEA-090082 Security initializing using security realm myrealm.
May 28, 2009 3:00:23 PM CEST Error Store BEA-280061 The persistent store "_WLS_acme_alsb_tst_server_1" could not be deployed: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file "_WLS_acme_ALSB_TST_SERVER_1000000.DAT"
weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error while opening the file store file "_WLS_acme_ALSB_TST_SERVER_1000000.DAT"
at weblogic.store.io.file.Heap.open(Heap.java:166)
at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:353)
at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:135)
at weblogic.store.admin.FileAdminHandler.activate(FileAdminHandler.java:171)
Truncated. see log file for complete stacktrace
java.io.IOException: [Store:280021]There was an error while opening the file store file "_WLS_acme_ALSB_TST_SERVER_1000000.DAT"
at weblogic.store.io.file.StoreDir.throwIOException(StoreDir.java:213)
at weblogic.store.io.file.StoreDir.open(StoreDir.java:103)
at weblogic.store.io.file.Heap.open(Heap.java:164)
at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:353)
Truncated. see log file for complete stacktrace
java.io.IOException: Error from open(), Permission denied, errno=13
at weblogic.store.io.file.direct.DirectIONative.open(Native Method)
at weblogic.store.io.file.direct.DirectFileChannel. init (DirectFileChannel.java:51)
at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:138)
at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:107)
at weblogic.store.io.file.StoreFile.open(StoreFile.java:142)
Truncated. see log file for complete stacktrace

May 28, 2009 3:00:23 PM CEST Critical WebLogicServer BEA-000362 Server failed. Reason:

There are 1 nested errors:

weblogic.management.DeploymentException:
at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:138)
at weblogic.store.admin.FileAdminHandler.activate(FileAdminHandler.java:171)
at weblogic.store.admin.DefaultStoreService.start(DefaultStoreService.java:60)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Caused by: java.io.IOException: Error from open(), Permission denied, errno=13
at weblogic.store.io.file.direct.DirectIONative.open(Native Method)
at weblogic.store.io.file.direct.DirectFileChannel. init (DirectFileChannel.java:51)
at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:138)
at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:107)
at weblogic.store.io.file.StoreFile.open(StoreFile.java:142)
at weblogic.store.io.file.StoreDir.open(StoreDir.java:95)
at weblogic.store.io.file.Heap.open(Heap.java:164)
at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:85)
at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:353)
at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:135)
... 5 more


May 28, 2009 3:00:23 PM CEST Notice WebLogicServer BEA-000365 Server state changed to FAILED
May 28, 2009 3:00:23 PM CEST Error WebLogicServer BEA-000383 A critical service failed. The server will shut itself down

In another case, there was already an instance of WLS running and locking that file.... killing it solved the issue.

1 comment:

Ansuman Dhal said...

please delete respective directory inside the /servers/adminServer/data/store/diagnostics and store/default.

Restart the server, it will work.