Fatal Error Unable to create lock file: Bad file descriptor

Fatal Error Unable to create lock file: Bad file descriptor

2 posts / 0 new
Last post
bramoverstijns@hotmail.com's picture
bramoverstijns
Points: 0
Fatal Error Unable to create lock file: Bad file descriptor

I reinstalled Dev Desktop and everything seems to work fine; Apache & MySql start and my old projects are appearing in the interface.

When trying to preview a project, they all give a 500 Internal Server Error.
In the error logs I found the following line:

"Fatal Error Unable to create lock file: Bad file descriptor (9)"

Does anybody has similar / the same experience?

Status: 
Unresolved
james.lovato@swfwmd.state.fl.us's picture
james.lovato
Points: 0

I had the same issue crop up after I wanted to try out Dev Desktop. All the tools worked fine but when I tried to go back to my local files that I had created in my MAMP stack or pulled in from other sources I ran into problems. The projects ran fine but when I attempted to run drush/composer commands I got the following error:
"Fatal Error Unable to create lock file: Bad file descriptor (9)"

I was also having problems with Adobe programs crashing during startup.
I am using a Mac and so here is what I found for my case.

After spending over a day searching I was directed to this article:
http://www.macosxblog.com/how-to-fix-coretelephony-trace-file-error-on-mac/

The initial fixes outlined did not work but in the comments I found instructions that did the trick:

I can confirm that solution 2 works as long as System Protection is disabled. Here are the complete steps:
1. Reboot holding cmd-r to enter Recovery Mode
2. Open Utilities > Terminal and type csrutil disable
3. Type reboot and boot normally
4. Open Finder and view as columns (cmd-3)
5. Choose Go > Go to folder, enter /private and click Go
6. Right click or control-click on the /private folder and Get Info (cmd-i)
7. In Sharing and Permissions, system should be read & write, wheel should be read & write
8. Do the same for the tmp folder inside private, except this time also change everyone to read & write
9. Reboot holding cmd-r to enter Recovery Mode
10. Open Utilities > Terminal and type csrutil enable
11. Type reboot and boot normally

Hope they help!