Mongodb ошибка 1053

When I try to connect mongdb service i am getting error: ** Windows could not start the MongoDB service on Local Computer ** Error1053: the service did not respond to the start or control req...

When I try to connect mongdb service i am getting error:
**

Windows could not start the MongoDB service on Local Computer

**

Error1053: the service did not respond to the start or control request in a timely fashion

enter image description here

Mongodb installed path: C:MongoDB //mongod.cfg file inside the MongodB folder not in bin folder

mongod.cfg file:


systemLog:

    destination: file

    path: c:datalogmongod.log

storage:

    dbPath: c:datadb***

how do I resolve this error and run a mongodb service

Neil Lunn's user avatar

Neil Lunn

145k35 gold badges334 silver badges311 bronze badges

asked Nov 8, 2017 at 8:21

N15's user avatar

3

I had a similar problem with MongoDB 4. In auto generated config file, there is an extra configuration, that caused the problem.

#snmp:
mp:

When i deleted «mp:», i can finally start the server.

answered Sep 27, 2018 at 10:21

rale's user avatar

ralerale

3032 silver badges7 bronze badges

3

For me , this error was about mongod.cfg file , which I add security; authorization enabled.
But it should be colon after security not semicolon.

security:
  authorization: enabled

answered Mar 3, 2019 at 13:12

SayJeyHi's user avatar

SayJeyHiSayJeyHi

1,3973 gold badges18 silver badges38 bronze badges

In my case the error was caused by the server running out of space in the hard disk drive.

Clearing some space solved the problem for me.

answered Dec 17, 2020 at 9:59

JulioCT's user avatar

JulioCTJulioCT

9876 silver badges7 bronze badges

In my case, this failed:

security:
  authorization: 
    enabled

And this worked fine:

security:
  authorization: enabled

answered Apr 9, 2019 at 16:18

Tedi's user avatar

TediTedi

4161 gold badge5 silver badges14 bronze badges

Check if mongod.cfg is corrupted,
If you changed this confiuration file recently, try to undo the latest changes to see if this is the cause for the failure

I wonder why a simple error message cannot be printed in such a common failure

answered Dec 27, 2021 at 11:54

Nir's user avatar

NirNir

1,48015 silver badges24 bronze badges

For me the same error occurred when I edited the «mongod.cfg» file and added

#security:
  authorization: enabled

to #security

but the correct syntax is the following:

#security:
# authorization: enabled

I leave it here in case someone faces the same related issue.

answered Jan 17, 2022 at 13:40

el_noobito's user avatar

1

score:-1

I had same problem, below steps fixed it for me:

Search «services.msc»

Locate «MongoDB Server», right-click and select «Properties»

Access «LogOn» tab

Select «Local System account» radio button

Select Apply and then, OK

score:0

In my case, this failed:

security:
  authorization: 
    enabled

And this worked fine:

security:
  authorization: enabled

score:0

Check if mongod.cfg is corrupted,
If you changed this confiuration file recently, try to undo the latest changes to see if this is the cause for the failure

I wonder why a simple error message cannot be printed in such a common failure

score:0

For me the same error occurred when I edited the «mongod.cfg» file and added

#security:
  authorization: enabled

to #security

but the correct syntax is the following:

#security:
# authorization: enabled

I leave it here in case someone faces the same related issue.

score:1

In my case the error was caused by the server running out of space in the hard disk drive.

Clearing some space solved the problem for me.

score:2

For me , this error was about mongod.cfg file , which I add security; authorization enabled.
But it should be colon after security not semicolon.

security:
  authorization: enabled

score:19

I had a similar problem with MongoDB 4. In auto generated config file, there is an extra configuration, that caused the problem.

#snmp:
mp:

When i deleted «mp:», i can finally start the server.

Related Query

  • 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully
  • Express JS node framework did not respond to post() request
  • Store the fields to mongodb which are not passed in the request body as null or empty(collection is defined using mongoose schema)
  • Node.js POST request has data but in mongoDB I see only the id not the data
  • Nodejs server does not respond to the client get request
  • Using the Express.js app.post request is not working
  • Mongodb find is not working with the Objectid
  • The words my bot is told are not remembered in the database. I am using MongoDB atlas for my bot’s database, and my bot uses discord.js
  • Cookies was not sent when the request come from front-end
  • Using mongoose, how to add object propety to an object stored in mongodb that is not included in the schema?
  • Mongoose/Node.js : The positional operator did not find the match needed from the query
  • Redirect to login page if the user is not authentificated using NextJS and ExpressJS as a backend with axios for binding and MongoDB
  • App is not connecting to the mongodb Atlas
  • Can not invoke the firebase cloud function where I have 3rd party api request
  • MongoDB watch randomly crashes (Cursor session id is not the same as the operation context’s session id)
  • How to request data from mongodb (mongoose) from subdocument within the interval «from» and «to»?
  • mongodb nodejs lookup does not get data from the foreign table
  • Cross-Origin Request Blocked (Reason: CORS request did not succeed) when sending http reqeust from angular 8 to Express.js backend docker containers
  • Failed at the app@1.0.0 start script This is probably not a problem with npm. There is likely additional logging output above
  • Postman Post request to NodeJS server does not give me the files properties
  • MongoDB Regex not return the proper result
  • Sequelize many to many relationship does not show the result on GET request
  • Mongodb query does not the show the expect result
  • Why DynamoDB did not reject when ConsumedCapacity exceeding the Provisioned Throughput?
  • The selector » did not match any elements
  • I cannot send data to the server and i can’t and I also did not receive data from the server
  • How to make a request to Node.js server not fail when previewing Angular app on a different device on the same network?
  • Not passing Data from service method to the mongoose get route to query for data using Angular IO
  • Documents do not expire after the set time in MongoDB using Mongoose
  • When I did res.json (newschema), the properties are not displayed anymore on Postman

More Query from same tag

  • Collection.find() for array inside object
  • Just store any data from an object to a table, regardless of what structure it has?
  • How can I use a property in a model in Loopback 4 (strongloop) and hide it in the /explorer (Ej: Autogenerated ID)
  • Sequelize as a function in express JS always return isFulfilled and isRejected false
  • Mongoose get current data even it’s not valid with the model
  • How to make webpack-dev-server serve my index.html
  • Retrieve a document query with Email firebase firestore
  • Mongoose find documents by child criteria
  • what’s «?t=» in the socketIO url
  • Keep count of read for each month in array of object
  • Nuxt fatal error «cannot find module ‘dir-glob'»
  • JWT signature is invalid when using private key
  • Clean interface that supports Callbacks, Promises and async/await
  • unexpected recursion in restler call (node/js)
  • Handling errors in Promise.all — promise rejection + type error
  • Create / Add lifecylce configuration for individual object
  • How to resolve the «Plaid API: Unable to fetch link_token» error
  • Converting the Buffer to readable JSON format in Node.js
  • Error Message : Unable to find element with xpath in phantomsJS
  • Node.js Stream, is drain working in this code
  • How to download json file to cloud storage on app engine node.js standard environment
  • Lodash group array by key
  • How to add multiple calendar events using Microsoft graph
  • NodeJS POST Form always return 404
  • Property ‘message’ does not exist on type ‘ErrorRequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>’.ts(2339)?
  • forEach not running inside lambda function
  • Unable to decrypt the xor-base64 text
  • How to solve npm run build 137 error? Already have set 10gb
  • how to create rest api using redmine with nodejs?
  • Should I store a very long array in back-end or front-end?

Обновлено 17.01.2023

user error logoДобрый день! Уважаемые читатели и гости, крупного IT ресурса Pyatilistnik.org. В прошлый раз мы с вами разобрали проблему с кодом 43 и сбоем запроса дескриптора, сегодня хочу вам показать еще один неприятный момент, который я встретил на Windows Server 2012 R2, но он встречается и на других платформах. Смысл глюка в том, что у вас появляется ошибка запуска службы код 1053, или еще может быть формулировка, что служба не ответила на запрос. Это не позволяет вашему приложению запуститься и работать, мы рассмотрим основные причины подобного поведения и устраним их.

Как выглядит ошибка 1053 служба не ответила на запрос

Небольшая предыстория. Я продолжаю процесс виртуализации старого парка физических серверов, для этого я использую утилиту P2V VMware vCenter Converter Standalone 6.2. Все шло как обычно, я накатил утилиту и попытался ее запустить, у меня долго не появлялось окно программы. Через некоторое время у меня возникла на экране ошибка:

Vmware vCenter Converter Standalone Server is installed but not running. When VMware vCenter Converter Standalone Server is not running, you will not be able to connect to local server. Do you want to start it now?

Vmware vCenter Converter Standalone Server is installed but not running

В сообщении сообщается, что служба конвертера не запущена, хотите ли вы ее запустить, я выбираю конечно да. Через секунд 30 появляется второе окно вот с таким текстом:

Unable to start VMware vCenter Converter Standalone Server. You will not be able to connect to local server.

Нам говорят, что служба конвертера не может быть запущена. В оснастке «Службы», вы можете наблюдать три службы VMware vCenter Converter.

Unable to start VMware vCenter Converter Standalone Server. You will not be able to connect to local server

Пробую запустить службу приложения в ручном режиме, через правый клик, но выскакивает предупреждение:

Windows could not start the VMware vCenter Converter Standalone Worker service on Local Computer. Error 1053: The service did not respond tj the start or control request in a timely fashion.

Error 1053 The service did not respond to the start

В русском варианте, это выглядит вот так:

Не удалось запустить службу (Имя службы) на локальном компьютере.

Ошибка 1053: служба не ответила на запрос запуска или управления своевременно.

Ошибка 1053 при запуске службы Apple Mobile

Список служб и программ, где вы можете увидеть ошибку 1053

Давайте я вам приведу список с примерами, где вы можете увидеть ответ службы. что она не ответила

  • VMware vCenter Converter Standalone 6.2
  • Apple Mobile Device Service (ITunes)
  • QEMU Guest Agent
  • В момент установки драйверов Рутокен
  • Skype
  • Служба DNS

Ошибка 1053. Не удалось запустить DNS

  • Служба MSSQL
  • SharePoint
  • 4game-service

Как видите разброс проблем очень большой и разнообразный, то же самое касается и операционных систем, вы это легко увидите и на клиентских Windows 7 или Windows 10, так и на серверных Windows Server 2012 R2 и выше.

Как исправить ошибку 1053

Давайте я вам покажу, как я исправлял код ошибки 1053, в случае с утилитой Vmware vCenter Converter Standalone, но описанная методика подойдет и для других служб и программ.

  • Первым делом вы должны зайти в оснастку службы, сделать это очень просто, для этого нажмите одновременно две клавиши Win и R, у вас вызовется окно «Выполнить», в нем напишите слово services.msc, это такое системное название данной оснастки, подробный список команд вызова оснасток смотрите по ссылке.

открываем окно выполнить чтобы решить ошибку 1053

У вас откроется оснастка со всеми службами, которые есть в операционной системе. Вы находите нужную, которая в вашем случае выдавала сообщение «не запускается служба ошибка 1053», и пробуете ее стартануть в ручном режиме. Для этого вы щелкаете по ней правой кнопкой мыши и из контекстного меню выбираете пункт «Запустить». В некоторых случаях, это может помочь, как ни странно, но это был не мой случай.

Перезапуск службы при ошибке 1053

Видим, что получили все тужу ошибку, не отчаиваемся, так как все только начинается. Через то же контекстное меню, выбираем пункт «Свойства». Тут ситуация может быть такой. Некоторые сервисы, вот хоть убей но не могут функционировать без других, и вот пока другие не запущены, они так же будут простаивать, и в следствии этого вы можете видеть сообщение с кодом 1053. Такая связка называется зависимость. Посмотреть есть она у вашей сбойной службы или нет, можно на соответствующей вкладке «Зависимости». В моем случае, чтобы работала утилита Vmware vCenter Converter Standalone, нужно чтобы работал сервис «Рабочая станция», который как видите состоит из трех компонентов.

Поиск зависимых служб при исправлении ошибки 1053

Закрываем данное окно и в списке сервисов, ищем нужную нам зависимую, напоминаю у меня, это сервис «Рабочая станция». У меня как видите она оказалась запущенной, если у вас зависимая служба выключена, то пробуйте ее запустить и когда она заработает, пробуйте стартануть основную.

Запуск зависимых служб 1053

  • Если вам фокус с зависимыми сервисами не помог и вы все так же как и я получаете сообщение «служба не ответила своевременно», пробуем проверить настройки DNS. Такое бывает, что некоторые программы для своей работы должны подключиться к рабочей станции или серверу по имени, и если это не получается, то вы оказываетесь в такой ситуации. Открываем настройки TCP/IPv4 и проверяем ваши данные по IP-адресу и DNS серверу, как туда попасть смотрите по ссылке слева. У меня адрес был настроен статически (вручную), если у вас автоматическая в большинстве случаев у пользователей там автоматическая настройка, которая прилетает от DHCP службы, расположенной на другом сервере или сетевом оборудовании, например, в домашних компьютерах, это WIFi или обычный роутер.

У себя я заметил, что первый из DNS серверов, какой-то странный не знакомый мне, видимо кто-то ранее его прописал. Пробую проверить его сетевую доступность, через команду ping и заодно узнать его имя.

ping -a ip адрес вашего dns

У меня он не отвечал, я так же попробовал разрезолвить имя данного сервера, где я получал ошибку, его ip-адрес в моем примере заканчивается на 157, имя определилось, значит второй DNS сервер, все обрабатывал корректно, первый я поправил. Если у вас доменный компьютер, то убедитесь, чтобы имена разрешались, через IP. Идем искать решение дальше.

Error 1053 The service did not respond to the start-2

  • Я продолжил изучать данный вопрос и наткнулся на одно обсуждение по моей утилите Vmware vCenter Converter Standalone (https://docs.vmware.com/en/vCenter-Converter-Standalone/6.2/rn/conv_sa_62_rel_notes.html), там описывалась ситуация, что из-за того, что DNS имя не может разрешиться в течении 30 секунд, то вы можете получать ошибку службы 1053. Там предлагалось изменить стандартное значение идущее в операционной системе Windows на другое, увеличив интервал проверки.

Открываем редактор реестра Windows и переходим в ветку:

HKEY_LOCAL_MACHINESystemCurrentControlSetControl

Тут необходимо создать параметр DWORD32 с именем ServicesPipeTimeout и дать ему числовое значение в секундах,

создание ключа реестра ServicesPipeTimeout

например пять минут, это 3000.

После создания ключа реестра вам необходимо, ОБЯЗАТЕЛЬНО ПЕРЕЗАГРУЗИТЬСЯ.

ошибка 1053 служба не ответила своевременно-02

В 90% случаев у вас ошибка 1053 служба не ответила своевременно, пройдет. Еще видел ситуацию, что после перезагрузки, те службы что идут с отложенным запуском, могут запускаться немного дольше обычного, иногда их даже приходится стартовать вручную, но зато они работают. Мне лично, этот метод помог с Vmware vCenter Converter Standalone.

Дополнительные методы исправления ошибки 1053

К сожалению трюк с ключом реестра срабатывает не всегда и не со всем софтом, в 10% случаев вы все будите видеть предупреждение «сервис не ответил своевременно на запрос», тут я приведу некий чек-лист который позволит вам устранить причину.

  • В ряде случаев многие программы в своем коде имеют код, который работает с библиотеками net framework, и если на вашем компьютере они повреждены, то может появляться код 1053, в таких случаях делаем вот что:
  1. Открываем командную строку от имени администратора и пробуем проверить ваши системные файлы на предмет повреждения, данный метод, ток же будет актуален, если у вас ошибка 1053 возникает на системных служебных, например DNS или Сервер. В командной строке введите команду sfc /scannow. Обязательно дождитесь выполнения данной команды, если она вам не помогла, то есть ее продолжение в виде утилиты: Dism /Online /Cleanup-Image /ScanHealth. Затем, дождавшись завершения работы предыдущей команды, выполните команду: Dism /Online /Cleanup-Image /RestoreHealth.методы исправления ошибки 1053
  2. Если данный метод вам не помог, то можно попытаться удалить net framework, а затем его переустановить его. Как это проделывается, смотрите по ссылкам слева.
  3. Еще одним методом исправления ошибка 1053 в wWindows 10, является установка всех свежих обновлений системы, для других версий аналогично
  4. Еще одним из источников проблем, может выступать поврежденность реестра и его замусоренность, в таких случаях, вам его нужно очистить и оптимизировать, могу вам посоветовать утилиты ccleaner и PrivaZer.
  5. Редкий случай, но то же возможный, и это проблема с оборудованием. В момент, когда ваш жесткий диск или SSD находятся в предсмертном состоянии, они перестают справляться с обычной нагрузкой и попросту тормозят, создавая тем самым огромные очереди к диску. В следствии чего, операционная система просто не способна запустить нужную службу, так как диск не справляется с этим, и как следствие вы видите, что сервис своевременно не ответил на запрос. Обязательно проверьте дисковые очереди и состояние здоровья ваших дисков.
  6. Бывает еще ситуации, когда разные программы конфликтуют друг с другом, мешая запускаться конкуренту. В таких случаях необходимо смотреть логи и журналы «Система» и «Приложения»
  7. Если ошибка возникает у стороннего софта, например, Skype, iTunes, то обязательно убедитесь, что вы используете последнюю версию данного программного обеспечения. Если нет, то удалите старую версию, почистите реестр утилитой cccleaner, перезагрузите компьютер и заново установите свежую версию утилиты. С iTunes видел да же такой момент, что приходилось скачивать exe файл с последним релизом, разархивировать его с помощью 7-zip в папку, где получался набор MSI пакетов, потом все это устанавливалось последовательно, Предпоследним ставился пакет AppleSoftwareUpdate и после него ужеiTunes64. Потом перезагружался, в итоге удавалось исправить ошибку 1053.исправить ошибку 1053
  8. Как вариант еще можно рассмотреть вирусную атаку, загрузите вашу систему в безопасном режиме, без использования сетевых драйверов и каким-нибудь диском Live-CD от Касперского или dr. Web, проведите сканирование вашей системы на вирусы.
  9. Если у вас служба не ответила на запрос у QEMU Guest Agent, то вам необходимо установить драйвер vioserial (https://docs.fedoraproject.org/en-US/quick-docs/creating-windows-virtual-machines-using-virtio-drivers/index.html)

Ошибка 1053 в техэксперт из-за нехватки дискового пространства (Обновление 17.01.2023)

Недавно поступила заявка от техподдержки, что перестал работать сервер ИС Техэксперт: 6 поколение. Выглядело это вот так:

Windows could not start ИС Техэксперт: 6 поколение. Интернет 6.4-7555_109709 service on Local Computer. Error 1053: The service did not respond to the start or control request in a timele fashion

Error 1053 ИС Техэксперт 6 поколение

В результате служба не могла запуститься, в виду отсутствия дискового пространства на диске.

Нехватка места у техэксперта 6

Надеюсь, что я вам слегка помог в устранении предупреждения с кодом 1053 и вам удалось запустить необходимую службу. С вами был Иван Семин, автор и создатель портала Pyatilistnik.org.

Last Update:2017-01-13
Source: Internet

Author: User

Install MongoDB

Go to http://www.mongodb.org/to find the Windows 32-bit installation program, which is actually a green program. This document uses mongodb-win32-i386-1.6.0.zip as an example.

Configure to run MongoDB

Decompress the downloaded mongodb compressed package to the target Directory, such as D:/mongodb. Open the cmd command line and enter:

The code is as follows:

D:/mongodb/bin> mongod.exe-dbpath d:/mongodb/db

There is no db folder in the d:/mongodb Directory. You need to create one by yourself. At this time, the mongod process runs and then open a cmd window and enter:

The code is as follows:

D:/mongodb/bin/cmd.exe

Go to mongodb command mode

The code is as follows:

MongoDB Shell Version: 1.6.0
Connection to (databaseName)
> Show dbs
Admin
Local

You can check the database status in advance. By default, there are two databases: admin and local.

>

The code is as follows:

Use testdb; open the database. If not, create one immediately.
> Db. Py. save ({a: 10}); save a message to the collection PC. If there is no collection, create one immediately.

> Db. Py. find (); retrieve all records
{«_ Id»: ObjectId («4c469967dd6f000000001637 & Prime;),» a «: 10}

> Show collections; show all collection names

System. indexes;

System usage

Help is a help command. You can run it at any time to view the command prompt.

Configure the MongDB service

To avoid starting MongoDB every time you open the cmd window, you can register it as a service. The cmd command is:

The code is as follows:

D:/mongodb/bin/mongod.exe-dbpath d:/mongodb/db-logpath d:/mongodb/log-install

Although this command can be registered with the windows service, but I encountered a problem that could not be started, the prompt: «Error 1053, the service did not respond to the startup or control request in time «. When I was depressed, I thought of calling bat batch processing with a VBS file to hide the cmd command running in the background.

First, create the bat file:

The code is as follows:
Mongo-start.bat content d:/mongodb/bin/mongod.exe-dbpath = d:/mongodb/db-logpath = d:/mongodb/log
Mongo-stop.bat content taskkill/f/t/im cmdd.exe

Create a vbs file:

The code is as follows:

Mongo-start.vbs:
Set ws = CreateObject («Wscript. Shell «)
Ws. run «cmd/c d:/mongodb/mongo-start.bat», vbhide

Mongo-stop.vbs:
Set ws = CreateObject («Wscript. Shell «)
Ws. run «cmd/c d:/mongodb/mongo-stop.bat», vbhide

In this way, you can call the vbs file to start and stop MongoDB and run it in the background.

MongoDB installation error 1053 solved

Download Windows installation package mongodb-win32-i386-2.4.0.zip: http://www.mongodb.org/downloads

Decompress the package to disk D:/mongoDB, and create two folders in mongoDB: data and logs, because you need to specify the data storage

Logs directory, which is not automatically created.

Then run the CMD command line to install mongoDB to the system service:

The code is as follows:

> D:/mongoDB/bin/mongod.exe — bind_ip 127.0.0.1 — logpath D:/mongodb/logs/mongodb. log — logappend — dbpath «D:/mongodb/data» — directoryperdb — serviceName MongoDB — install

Start:> net start MongoDB

Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Moneyman как изменить номер телефона
  • Lightroom как изменить язык
  • Mom implementation невозможно загрузить как исправить
  • Life is strange true colors вылетает fatal error
  • Mod compiler people playground error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии