We are in the process of rolling out the Discovery Agent 3.2.0 in our environment through an RMM software. The Discovery Agent program/service installs correctly, runs scans on schedule and creates agent scan .dat files, but we are unable to set the agent token by running the Discovery_Agent.exe with the "-token" switch from the RMM tool. We receive the following error:
Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.
So far we have tried:
Has anyone else run into this issue when rolling out Discovery Agent 3.2.0?
Hi @Nick Bryant
Welcome to the Atlassian Community!
Regarding the issue with setting the agent token for the Discovery Agent 3.2.0 using the "-token" switch, the error message you're encountering suggests a problem with how the service interacts with Windows Services. It appears that the service isn't recognizing the command line execution as a valid method to start the service.
Since you've already tried running the command with various user permissions, manually installing the service using installutil.exe, changing the running account of the service, and even updating the agent, it seems like you've covered most of the standard troubleshooting steps.
Some additional steps you might consider are:
Check the command syntax: ensure the syntax of the command you're using is correct according to the Discovery Agent's documentation.
Review logs: Check the Discovery Agent and Windows Event logs for any additional information or errors that might provide more context.
Create a ticket with Atlassian Support If the issue persists, reaching out to the Atlassian's support team may be beneficial. They might have encountered similar issues with other clients and could offer a solution. Please create a ticket at https://support.atlassian.com.
Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.
Regards,
Eugenio
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.