JIYIK CN >

Current Location:Home > Learning > NETWORK >

How to fix Response Status 0 Worker Process Exited on Signal 11 in Nginx

Author:JIYIK Last Updated:2025/03/17 Views:

Actually, let's clarify something first: HTTP does not have status code 0 (zero). The problem is that the nginx worker process died while handling the request, so the connection was broken, resulting in an error without any response data.

question

We have encountered this problem in various situations:

  • Github Webhooks : The webhook request was not completed successfully, and the response code is always 0
  • Piwik : We were unable to open the Piwik web control panel in Safari, nor were we able to add connection details on Android. Requests in both cases resulted in an error response with status 0.

Since we can't find any application errors in Strider and Piwik logs, the problem should be in the next layer: nginx.

We checked the nginx error log file and finally found a clue.

This is the default nginx error log file location on Ubuntu:/var/log/nginx/error.log

Error log file data:

2022/05/10 09:37:34 [alert] 7955#0: worker process 9835 exited on signal 11 (core dumped)  
2022/05/10 09:37:36 [alert] 7955#0: worker process 9853 exited on signal 11 (core dumped)  
2022/05/10 09:37:36 [alert] 7955#0: worker process 9855 exited on signal 11 (core dumped)  
2022/05/106 09:42:34 [alert] 7955#0: worker process 9857 exited on signal 11 (core dumped)  

If anyone is interested, we use nginx version 1.8.0 .


Workaround

To fix this problem, you need to modify the nginx configuration and add the following line in the http block.

The default location of the nginx configuration file on Ubuntu is /etc/nginx/nginx.conf

http {  
    …
    ssl_session_cache    shared:SSL:10m;
    …
}

Nginx uses multiple worker processes to handle the requests it receives. ssl_session_cache shared:SSL:10mMake nginx share session information between all worker processes. From now on, each worker process has session information available and will not stop executing requests due to lack of request data.

Don't forget to restart the nginx service.

$ sudo service nginx restart  

That's it. Our requests will flow through nginx to the application and vice versa without a problem!

For reprinting, please send an email to 1244347461@qq.com for approval. After obtaining the author's consent, kindly include the source as a link.

Article URL:

Related Articles

What multipart/form-data does in post Upload upload files

Publish Date:2025/03/18 Views:63 Category:NETWORK

Everyone has used the attribute enctype="multipart/form-data" when uploading files using a form. What is the role of multipart/form-data? Let's talk about this topic. First, let's look at a case Look at the first code   form action= "handl

About application/x-www-form-urlencoded

Publish Date:2025/03/18 Views:147 Category:NETWORK

As a data format of form, application/x-www-form-urlencoded has its own characteristics   form action= "handle.php" method= "post"    input type= "text" name= " uname"   class= " uname" /br /    input type= "text" name= "email" class=

My understanding of webservice is this

Publish Date:2025/03/18 Views:147 Category:NETWORK

Recently, I encountered such a project at work (temporarily named Project A). Project A itself was developed in PHP, but its data came from another project developed in Java (temporarily named Project B). Project A could not operate the dat

WSDL looks like this

Publish Date:2025/03/18 Views:190 Category:NETWORK

When I first started learning Webservice, I found that there were quite a lot of knowledge points involved, and each point could be a school of its own. Especially when I saw WSDL, I looked up information for a long time, but I was still a

Which technology do you choose to implement the web chat room?

Publish Date:2025/03/18 Views:61 Category:NETWORK

With the rise of HTML5 Websockets, web chat applications are becoming more and more popular. Recently, I am working on a mobile web application, the core function of which is to implement web chat on the mobile phone. Of course, the functio

Implementing a group chat room using socket.io

Publish Date:2025/03/18 Views:65 Category:NETWORK

This article will share with you an example of using socket.io to realize the function of group chat. If you want to use socket.io, you must use nodejs to implement the server, so we need to install socket.io in nodejs Install socket.io How

First contact with CGI

Publish Date:2025/03/18 Views:51 Category:NETWORK

Since I am a PHP programmer, I often have to build a PHP operating environment. The popular nginx+php environment is very popular, and the mode it adopts is the FastCGI method, so I spent some time to learn about FastCGI. CGI (Common Gatewa

Getting started with FastCGI

Publish Date:2025/03/18 Views:164 Category:NETWORK

In "First Contact with CGI", we mentioned the operating mechanisms of CGI and Server APIs, as well as their respective advantages and disadvantages. In this chapter, we will learn about FastCGI, which combines the advantages of CGI and Serv

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Recommended

Tags

Scan the Code
Easier Access Tutorial