NFS Locking and WebLogic Server 11g (10.3.5)
By Chuck Speaks on Sep 25, 2011
Ok this is about to be an entry in a multi-part series. This happened to me while building a demo system for a partner on their own hardware and the resulting troubleshooting to get us back to our happy place.
NFS will sometimes lock every bit of your stack if you have a power interruption or shutdown the server without properly shutting down your software stack. The result will be NFS locks on applications such as WebLogic Server, Oracle Database, and the Oracle HTTP Server.
For now, let's talk about what had to happen to FREE WEBLOGIC!!!!!!!!!!!!!!
The situation: Cannot start Oracle WebLogic 10.3.5 Administrative Server via startWeblogic.sh
The error: java.io.IOException: Error from fcntl() for file locking, Resource temporarily unavailable.
The solution (thanks to the OTN forums and documentation research):
1. From your ...domains/[DOMAIN] directory (and below) find and remove all *.DAT files
- ex: find . -name *.DAT
2. Find and remove all lok files in a similar method
- ex: find . -name *.lok
3. If necessary use netstat -lntp to find any processes started and using your AdminServer port
4. Run startWebLogic.sh
It worked for me. Hope this helps someone else out there. To come soon: Overcoming the same situation in Oracle Database 126.96.36.199 and Oracle HTTP.
Oracle Platform Technology Solutions
firstname.lastname at oracle dot com