Erro upgrade to mongo4.4

Realizei o upgrade do mongodb de um ambiente de replica da versão 4.2 para versão 4.4 porem toda vez que reinicio o servidor a pasta mongodb é excluida…

Saberia informar se é um bug da versao 4.4 ou se tem alguma solução

Hello :wave: @Tatiana_Jandira,

Welcome to the MongoDB Community forums :sparkles:

I upgraded mongodb from a replica environment from 
version 4.2 to version 4.4 but every time I restart 
the server the mongodb folder is deleted.

I would know if it is a bug in 
version 4.4 or if there is a solution

I believe this is the English translation of your question above.

Could you kindly share the operating system you are currently using?

Additionally, can you provide me with details regarding the steps you are taking to upgrade MongoDB? Also, I would appreciate it if you could specify the exact version of MongoDB you are currently using, which is 4.2.x, and the specific sub-version to which you are upgrading, which is 4.4.x.

Best,
Kushagra

Thanks for the return. I managed to get around the problem.
To solve it I had to create the mongodb/mongod.pid directory in another location and change the path in /etc/mongod.conf.
After restarting the MongoDB service it worked.

But the installation procedure was as follows:

Current MongoDB Version: 4.2.18 running on Amazon Linux. Aim to upgrade to 6.0

I updated using the mongoDB documentation: https://www.mongodb.com/docs/manual/release-notes/4.4-upgrade-replica-set/

After I upgraded to 4.4, whenever I restarted the server the mongodb/mongod.pid directory was deleted.

To solve it I had to create the mongodb/mongod.pid directory in another location and change the path in /etc/mongod.conf.
After restarting the MongoDB service it worked.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.