Apache httpd fails to start with "No space left on device" logged

Solution Verified - Updated -

Issue

  • Apache could not be started and failed with an error similar to one or more of the following:

    [emerg] No space left on device: Couldn't create accept lock (/etc/http/logs/accept.lock.7578)
    [crit]  No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed
    [emerg] No space left on device: Couldn't create accept lock
    [error] No space left on device: Cannot create SSLMutex Configuration Failed
    [crit] (28)No space left on device: mod_rewrite: Parent could not create RewriteLock file /etc/httpd/run/rhnccrewrite.lock
    
  • httpd will not start and shows 'Configuration Failed'

  • Apache will not start and the last line of error_log shows:

    Configuration Failed
    
  • Apache fails to start and service status shows:

    [root@host ~]# service httpd status
    httpd dead but subsys locked
    
  • Apache fails to start and service status shows:

    [root@host ~]# service httpd status
    httpd dead but pid file exists
    
  • httpd dies and could not be restarted by systemctl. While trying to start it failed with an error similar to one or more of the following:

    [core:notice] [pid 23014] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
    [mpm_prefork:notice] [pid 23014] AH00170: caught SIGWINCH, shutting down gracefully
    [core:emerg] [pid 26828] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex 
    AH00016: Configuration Failed
    

Environment

  • Red Hat Enterpise Linux 4
  • Red Hat Enterpise Linux 5
  • Red Hat Enterpise Linux 6
  • Red Hat Enterpise Linux 7
  • Apache httpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.