# Running IT-Conductor Gateway from CLI

### Problem

If the IT-Conductor Gateway encounters a problem when starting from the IT-Conductor Gateway GUI, or when the service won't run with errors such as Error 1067 or Service Start Error, perform the troubleshooting guide discussed below.

![Figure 1: Error 1067 Message](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FjyS9mo5gyHIHqJiBuXpQ%2F329285654?alt=media)

![Figure 2: Service Start Error](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2F4B78JgSz4Tn2WBGMV95C%2FService%20Start%20Error.png?alt=media\&token=f5822b4f-19fb-4030-9406-a92a8956bf77)

### Troubleshooting <a href="#runningitcgatewayfromcommandline-solution" id="runningitcgatewayfromcommandline-solution"></a>

1. Make sure to check that the IT-Conductor Gateway can test connect successfully by launching IT-Conductor Gateway.

![Figure 3: Gateway Configuration (Windows)](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FFcQV8I46LS9OrFqmdbnG%2F329056270?alt=media)

![Figure 4: IT-Conductor Connection Test](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2FKPGQ2z9aIa1buneG2cId%2FTest%20Connection.png?alt=media\&token=7bb8fbd9-1b12-4374-9b68-585a4bd9225a)

2. If a successful connection was tested, run the IT-Conductor Gateway in manual command line mode to troubleshoot any error messages further.

* cd \<ITC Gateway Installation Directory> (e.g. cd C:\program files\it-conductor\agent)
* Start the gateway: **jre\bin\java -Xmx1000m -Ditconductor.diag=true -jar lib\Gateway.jar**
* Navigate to **Management > Resources > Gateways** and check the Gateway logs to verify if it runs successfully or is still with errors.
* Check **Heartbeat Age** which should be small (in seconds) if connected and working. If not, check the logs and [report the issue to the Support Team](https://docs.itconductor.com/references/support).

![Figure 5: Gateway Log Icon](https://377464071-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXhp08OmU8050PePmMgDt%2Fuploads%2Fqdh4qRDCnru3yE8QgwYn%2FRemote%20Gateways.png?alt=media\&token=77b4d841-36d5-4ca3-a9b3-48a5c13bfe0e)

### Related Information

* [IT-Conductor Gateway Setup for AWS](https://docs.itconductor.com/user-guide/setup/gateway-setup/aws)
* [IT-Conductor Gateway Setup for Linux x64](https://docs.itconductor.com/user-guide/setup/gateway-setup/it-conductor-gateway-setup-for-linux)
* [IT-Conductor Gateway Setup for Windows x64](https://docs.itconductor.com/user-guide/setup/gateway-setup/windows-x64)
