Activities

February 2016
M T W T F S S
« Jan   Jul »
1234567
891011121314
15161718192021
22232425262728
29  

File exists: mod_lua: Failed to create shared memory segment on file /tmp/httpd_lua_shm

This is the one strange error I’m getting from one the staging server. When I’m trying to restart the web server , it’s always showing, pid exists. stopped. It’s a kind of weird incident. As far I know that there are some part of Apache module libraries /programs are loaded in memory and Apache service restart could help to release those program from memory.

[Mon Feb 01 05:23:38.098868 2016] [:emerg] [pid 30647] AH00020: Configuration Failed, exiting
[Mon Feb 01 05:25:16.270747 2016] [suexec:notice] [pid 30668] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 01 05:25:16.289871 2016] [auth_digest:notice] [pid 30669] AH01757: generating secret for digest authentication ...
[Mon Feb 01 05:25:16.290335 2016] [lua:error] [pid 30669] (17)File exists: mod_lua: Failed to create shared memory segment on file /tmp/httpd_lua_shm.30669

I tried to delete the listed files from /tmp location. Noting gonna work. Some while after Googling, it has come to know that reload command will did the trick. It’s worked like a charm. :-)

[root@sh-web02 ~]# service httpd reload
Reloading httpd:                                           [FAILED]
[root@sh-web02 ~]# service httpd status
httpd is stopped
[root@sh-web02 ~]# apachectl restart
httpd not running, trying to start
[root@sh-web02 ~]# service httpd status
httpd (pid  30708) is running...

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>