• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

How to fix MongoDB Error Code – 91 – ShutdownInProgress

January 2, 2024

How to Fix MongoDB Error Code – 91 – ShutdownInProgress

MongoDB is a popular open-source NoSQL database that offers high performance, scalability, and flexibility. However, like any software, it can encounter errors that need to be resolved. One such error is MongoDB Error Code – 91 – ShutdownInProgress. In this article, we will explore the causes of this error and provide step-by-step instructions on how to fix it.

Understanding MongoDB Error Code – 91 – ShutdownInProgress

When you encounter MongoDB Error Code – 91 – ShutdownInProgress, it means that the database server is in the process of shutting down. This error occurs when you try to perform an operation on the database while it is in the shutdown process. MongoDB initiates a graceful shutdown by stopping all incoming requests and waiting for existing operations to complete before shutting down completely.

However, if you try to perform an operation during this shutdown process, you will receive the Error Code – 91. It is important to understand that this error is not a critical issue and can be resolved by following a few simple steps.

Fixing MongoDB Error Code – 91 – ShutdownInProgress

Here are the steps to fix MongoDB Error Code – 91 – ShutdownInProgress:

Step 1: Check the Status of the MongoDB Server

The first step is to check the status of the MongoDB server. Open a command prompt or terminal and run the following command:

mongo

This command will open the MongoDB shell. Once you are in the shell, run the following command to check the server status:

db.adminCommand({ serverStatus: 1 })

If the server is in the shutdown process, you will see the following output:

{ "ok" : 0, "errmsg" : "shutdown in progress", "code" : 91 }

Step 2: Wait for the Shutdown Process to Complete

If you see the “shutdown in progress” message, it means that the MongoDB server is still shutting down. In this case, you need to wait for the shutdown process to complete before performing any operations on the database.

Depending on the size of your database and the number of active operations, the shutdown process may take some time. It is important to be patient and let the process finish on its own.

Step 3: Retry the Operation

Once the shutdown process is complete, you can retry the operation that triggered the Error Code – 91. The operation should now execute without any issues.

Summary

In this article, we discussed MongoDB Error Code – 91 – ShutdownInProgress and provided step-by-step instructions on how to fix it. Remember, this error occurs when you try to perform an operation on the database while it is in the shutdown process. By following the steps outlined in this article, you can resolve this error and continue using MongoDB seamlessly.

If you are looking for reliable and high-performance VPS hosting solutions, consider Server.HK. With our top-notch VPS hosting services, you can ensure the smooth operation of your MongoDB databases and other applications.

Recent Posts

  • CentOS Server Performance Tuning: Optimization Techniques for 2026
  • How to Configure SELinux in CentOS Without Breaking Your System (CentOS Stream 9/10 – 2026)
  • Managing Users and Permissions in CentOS Stream: Best Practices (CentOS Stream 9/10 – 2026)
  • How to Set Up Nginx on CentOS Stream for High-Performance Web Hosting
  • CentOS Stream Explained: Key Differences from CentOS Linux

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot