0

I found on my server (ubuntu 16.04) that there is almost no free space and it requires to be cleaned up. I started to find out which directory or path has taken more space and I can clean them up. After finishing it up, an issue was occurred and I got error while running some console command. For example when I run php -v I get this error:

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

I cannot also run apt-get update.

How can I recover the server at this point?

Hamid Ghorashi
  • 138
  • 1
  • 5
  • Mayve too many files open? Since your not wrote if its a VM or physical Server you may try https://www.google.com/amp/s/anandarajpandey.com/2016/02/18/solved-fatal-error-unable-to-create-lock-file-bad-file-descriptor-9/amp/ However you should really post more Information about your issue – djdomi Jun 04 '19 at 21:10
  • Which directories did you clean up? – oxr463 Jun 05 '19 at 16:39
  • 1
    I found the problem. the directory /tmp was removed. I just recreated the directory. – Hamid Ghorashi Jun 05 '19 at 19:29

0 Answers0