Welcome to the Alteryx Knowledge Base

Error: Embedded Mongo Service failed to start in a timely fashion, exiting when starting Alteryx Service
user

Created/Edited - 11/17/2026 by Kenneth Low | Alteryx

Summary
When Alteryx Service fails to start, the error "Embedded Mongo Service failed to start in a timely fashion, exiting" may be seen in the Service logs and the LastStartUpError.txt file. The resolution is to clear the AlteryxGallery.locks collection in MongoDB.
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

 

  1. 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"
  2. Run the following command to start the embedded MongoDB service.
    mongod.exe --dbpath [Current MongoDB Folder Path] --port 27018
  3. 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.
  4. Connect to the AlteryxGallery database in MongoDB either using Robo 3T  or a second Command Prompt window.
  5. Run the following command to remove all records from the "AlteryxGallery.locks" collection:
    db.locks.remove({})
  6. Records in the "AlteryxGallery.locks" collection may automatically regenerate afterward. This is expected.
  7. Close the MongoDB session and start the Alteryx Service.
Additional Information
Was this article helpful?