Welcome to the Alteryx Knowledge Base
Knowledge Base / Server / Error: Embedded Mongo Service failed to start in a timely fashion, exiting when starting Altery...
Error: Embedded Mongo Service failed to start in a timely fashion, exiting when starting Alteryx Service
Created/Edited -
Summary
Description
Attempt to start Alteryx Service fails. The latest Service log file on the Controller node, typically located in "\ProgramData\Alteryx\Service", contains these error messages:
AlteryxService_LogStartupError: There was an error starting the Alteryx Service <Embedded Mongo Service failed to start in a timely fashion, exiting.>
Error <Mongo Daemon failed to bootstrap Mongo instance, target directory must be empty>
EmbeddedMongoManager_DoWork_CreateError: Failed to create Mongo service, error <AlteryxProcessManager::Start: Timed out in ConnectNamedPipe after 30000 milliseconds>
Environment
- Alteryx Server
- All
- Embedded MongoDB on the Controller
- Running the "AlteryxService test" command in Command Prompt shows that the start up process is failing at the embedded Mongo Service
Cause
Alteryx Server had an unclean shutdown.
Resolution
- On the Controller node, open Command Prompt as Administrator and navigate to the directory where the mongod.exe executable is located in the Server installation folder. For example:
cd "C:\Program Files\Alteryx\bin"
- Run the following command to start the embedded MongoDB service.
mongod.exe --dbpath [Current MongoDB Folder Path] --port 27018
- Confirm the MongoDB service started successfully by locating the line "waiting for connections on port 27018". Leave this Command Prompt window open until the last step.
- Connect to the AlteryxGallery database in MongoDB either using Robo 3T or a second Command Prompt window.
- Run the following command to remove all records from the "AlteryxGallery.locks" collection:
db.locks.remove({}) - Records in the "AlteryxGallery.locks" collection may automatically regenerate afterward. This is expected.
- Close the MongoDB session and start the Alteryx Service.
Additional Information
Was this article helpful?