CTO @ Salah.Software
System Information:
- Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-194-generic x86_64)
- Nginx version: nginx/1.18.0
Initially, the Nginx was with a passenger server for Ruby on Rails support but later on the RoR get a separate droplet and from the initial server removed the passenger server.
Now I am getting an error continually like the one below
[alert] 2136#2136: worker process 19673 exited on signal 6 (core dumped)
[alert] 2136#2136: shared memory zone “memstore” was locked by 19673 ter process /usr/sbin/nginx -g daemon on; master_process on;: /build/nginx-1.18.0/debian/modules/nchan/src/store/memory/memstore.c:708: nchan_store_init_worker: Assertion `procslot_found == 1’ failed.
but here on GitHub link I have found a discussion about that like dpkg -l | grep nchan but getting nothing even the root & user’s account getting nothing, and since last more than a month getting Nginx server down again & again, over google I have fond nothing can help me out that.
Now, it’s my only headache because thousands of visitors everyday & getting a bad reputation due to the issue.
Can anyone help me out with that, please?
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The error message you’re encountering suggests an issue related to the Nchan module in Nginx. It seems like the Nchan module is trying to initialize a shared memory zone called “memstore,” and it’s encountering a problem with it.
This issue might be related to the fact that you initially had Passenger for Ruby on Rails support and then removed it.
You can try the following steps:
Check Nginx Configuration Files: Ensure that there are no remnants of the Passenger configuration in your Nginx configuration files. Specifically, look for any references to Passenger and remove them. You may have configuration files in /etc/nginx/conf.d/ or /etc/nginx/sites-enabled/. Make sure your Nginx configuration is clean and does not reference Passenger anymore.
Check for Nchan Module: Since the error message mentions the Nchan module, make sure you have uninstalled the Nchan module properly if it’s no longer needed. You can check whether it’s installed using nginx -V to list the compiled-in modules. If it’s still compiled into Nginx, you may need to recompile Nginx without the Nchan module.
Check Nginx Logs: Review the Nginx error logs (usually located in /var/log/nginx/error.log) for more detailed error messages. This might provide more information about what’s causing the crash.
Update Nginx: Consider updating Nginx to the latest version. Ubuntu 16.04 may have an older version of Nginx, and updating it might resolve some known issues. However, be cautious with this step, as updating Nginx may require changes to your configuration files.
Check for Resource Issues: Ensure that your server has enough resources (CPU, memory, disk space). Resource limitations can sometimes cause unexpected crashes.
Check for Third-party Modules: If you’re using third-party modules or extensions with Nginx, make sure they are compatible with your Nginx version and that they are correctly configured.
Consider Using a More Recent Ubuntu Version: Ubuntu 16.04 LTS reached its end of life in April 2021. Consider upgrading to a more recent LTS version (e.g., Ubuntu 20.04 LTS) to benefit from security updates and improved software compatibility.
Monitor Your Server: Implement server monitoring and automated alerting to detect and respond to server issues more proactively. Tools like Nagios, Zabbix, or Prometheus can help with this.
Consider Professional Support: If you continue to experience issues and are unable to resolve them, it may be worthwhile to seek professional support, especially given the importance of your server for your website’s reputation.
Remember to backup your Nginx configuration files before making any changes, and proceed with caution, especially if your server is in a production environment.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.