Help save net neutrality! Learn more.
Close

#27 Failed to create mutex on FreeBSD

3.x
open
nobody
None
5
2017-08-29
2013-06-05
No

[emerg] mod_qos(004): failed to create mutex (ACT)(/var/tmp/J555388024.mod_qos): File exists

The file did not exist the permission on /var/tmp/ are 777 root:wheel

Discussion

  • Pascal Buchbinder

    I've never used mod_qos/Apache on FreeBSD... but maybe you want to specify another directory using the "QS_SemMemFile " directive?

     
  • Maximilian Errath

    I'm facing the same error message with apache 2.4.27/mod_qos 11.36 on FreeBSD 11.1. After a graceful restart (the problem seems to appear only on graceful restarts), apache dies with

    [:emerg] [pid 64800:tid 34397577216] mod_qos(004): failed to create mutex (ACT)(/var/tmp/J7691644.mod_qos): File exists

    The following truss (= strace-equivalent on FreeBSD) output may be helpful:

    64796 100240: openat(AT_FDCWD,"/usr/local/libexec/apache24/mod_qos.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 4 (0x4)
    64796 100240: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC,0600) = 25 (0x19)
    64796 100240: chown("/var/tmp/J7691644.mod_qos",80,-1) = 0 (0x0)
    64796 100240: unlink("/var/tmp/J7691644.mod_qos") = 0 (0x0)
    64796 100240: openat(AT_FDCWD,"/usr/local/libexec/apache24/mod_qos.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 9 (0x9)
    64800 100252: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC,0600) = 25 (0x19)
    64800 100252: chown("/var/tmp/J7691644.mod_qos",80,-1) = 0 (0x0)
    64805 100237: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CLOEXEC,00) = 28 (0x1c)
    64806 100255: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CLOEXEC,00) = 28 (0x1c)
    64808 100709: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CLOEXEC,00) = 28 (0x1c)
    64807 100141: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CLOEXEC,00) = 28 (0x1c)
    64800 100252: openat(AT_FDCWD,"/usr/local/libexec/apache24/mod_qos.so",O_RDONLY|O_CLOEXEC|O_VERIFY,00) = 9 (0x9)
    64800 100252: openat(AT_FDCWD,"/var/tmp/J7691644.mod_qos",O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC,0600) ERR#17 'File exists'
    64800 100252: unlink("/var/tmp/J7691644.mod_qos") = 0 (0x0)
    

    The first column contains the PID, the second column the thread id.

     

Log in to post a comment.