Welcome to the Alteryx Knowledge Base
Error: Alteryx Service fails to start after Server shutdown
Created/Edited -
Description
Issue
No suitable servers found: `serverSelectionTimeoutMS` expired: [connection refused calling ismaster on 'localhost:27018']: generic server error" code:
There was an error starting the Alteryx Service <Embedded Mongo Service failed to start in a timely fashion, exiting.>
The Alteryx Service start up errors can be found in the following locations on the Server machine:
- The LastStartUpError.txt file in "C:\ProgramData\Alteryx\Service"
- The latest Service log file in "\ProgramData\Alteryx\Service". Look for the latest entry with "AlteryxService_LogStartupError"
Environment
- All versions
- Embedded MongoDB
Cause
Resolution
Diagnosis
Check if the mongod.lock file is > 0KB in size.
- Identify where the MongoDB is installed from the Alteryx System Settings under Controller > Persistence > Data Folder
- Navigate to that folder in Windows File Explorer
- Confirm the size of mongod.lock
If the mongod.lock file is > 0kb in size, see Solution A below.
If the mongod.lock file is = 0kb in size, see Solution B below.
Solution A
If the mongod.lock file does have data inside (1KB usually), we recommend you first backup your persistence database before proceeding. Alternatively, in step 1 below, rename the file instead of deleting it if you do not have a backup.
- Delete/rename the mongod.lock file
- For example, rename mongod.lock to mongod.old
- Right-click on a blank space in the window and select New > Text Document
- Alternatively, if you do not have this option you can create a new text file in Notepad and save the file into this directory. If you run into issues saving into this directory directly, you can save the file to your Desktop and then move it into the folder where MongoDB is installed.
- Name the document mongod.lock
Note: Make sure that File Extensions are visible, otherwise this file will actually be mongod.lock.txt
- Open a Windows Command Prompt and navigate to the Alteryx bin directory:
cd "[Drive:]\Program files\Alteryx\bin"
- Start the MongoDB just to make sure everything is clean:
mongod --dbpath [MongoDB folder path] --auth --port 27018
- With an unclean shutdown, it may take a few minutes to reallocate the data. Look for a line that says "Waiting for connections on port 27018". When it appears, hit CTRL+C on your keyboard to shut down the service.
- Start the AlteryxService. This can be done via either option:
- Command Prompt with:
sc start AlteryxService
- From the Services window
Solution B
- Open a Windows Command Prompt and navigate to the Alteryx bin directory, e.g.:
cd "[Drive:]\Program files\Alteryx\bin"
- Run the AlteryxService in test mode to identify the actual error
AlteryxService test
- If you are unable to easily identify what is causing the error, you can open a Support case on MyAlteryx and attach the Service and Server UI (Gallery) logs that match the time that the error happened to the case. For more information on where to find the logs, see Configure and Use Server Logs .
Additional Information
Was this article helpful?