Fatal Error Unable to create lock file: Bad file descriptor after ispconfig upgrade

Discussion in 'ISPConfig 3 Priority Support' started by ronee, Aug 4, 2019.

  1. ronee

    ronee Member HowtoForge Supporter

    Running debian8, after an OS update (not upgrade) and ispconfig upgrade the server works all right but ispconfig interface does not, the only error found in any log is the one in the subject line, in /var/log/apache2/error.log, no other errors found, on port 8080 the response is below
    We run many servers with ispconfig and this is the first time we've run into this issue. Much appreciate any input.

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you run a newer default PHP version on that server than the one that ships with Debian 8?
     
  3. ronee

    ronee Member HowtoForge Supporter

    Hi Till, no we are using the default php version on that server, 5.6. thanks
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please try this:

    chmod 1777 /tmp

    and then restart apache.
     
  5. ronee

    ronee Member HowtoForge Supporter

    tried that unfortunately did not resolve, I also noticed that the permissions before and after that chmod command on /tmp was the same:
    drwxrwxrwt 9 root root 4096 Aug 5 01:19 tmp

    Any other suggestions?

    thanks
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    The harddisk is not full? Maybe you run out of file descriptors?
     
  7. ronee

    ronee Member HowtoForge Supporter

    no, hard disk is not full, root parition is at 78% and inode usage is at 21%, any other ideas?

    Interestingly configured php websites are still working, only ispconfig is affected - I tried putting a phpinfo php file in the ispconfig web directory and it doesn't launch either.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    And there are really no other error messages in the apache error.log file?
     
  9. ronee

    ronee Member HowtoForge Supporter

    have scoured various logs and not found anything other than this which is logged on every attempt to access the ispconfig interface (the log is /var/log/apache2/error.log:
    Mon Aug 5 03:16:50 2019 (12552): Fatal Error Unable to create lock file: Bad file descriptor (9)
    [Mon Aug 05 03:16:50.436185 2019] [fcgid:warn] [pid 8914] (104)Connection reset by peer: [client 75.83.248.252:35924] mod_fcgid: error reading data from FastCGI server
    [Mon Aug 05 03:16:50.436260 2019] [core:error] [pid 8914] [client 75.83.248.252:35924] End of script output before headers: index.php
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    As you have other servers, I would recommend comnparing the relevant config files one by one:

    1) The ispconfig vhost file.
    2) the fcgi starter file, check if it exists in the path mentioned in the ispconfig vhost and compare it with another server.
    3) check that the php binary in the fcgi starter file exists and that you cane excute the php binary on the shell without an error.

    The following page is in german but you might be able to read it using google translate, the procedure he used might help you to track down what the reason for the error is:

    https://www.unixe.de/fatal-error-unable-to-create-lock-file-bad-file-descriptor-9/
     

Share This Page