Error: “Cannot Register” or "Is your device already registered?" when Downloading the Vanta Agent

  • Updated

This is a guide on how to fix a device that is having trouble registering the agent, and is seeing either "Is your device already registered?" or"Cannot Register" as an error message. 

Prerequisites

  • When installing the device through the agent installer, you are seeing the error message "Is your device already registered?" or "Cannot Register" in the browser pop-up 

 

Procedure

1. Locate the company's Vanta Key, This can be provided to you by your admin:

    • Vanta Admin can locate the key within Vanta using the following steps: 
      • Navigate to the Computers Page
      • Click on the Unmonitored Tab
      • Click on View Setup Instructions
      • Click on Option 3: MDM and Vanta Agent
      • Look for the phrase VANTA_KEY

2. Run the reset command from the Vanta-cli:

  • Mac -
    • Open terminal (easiest way is cmd + space bar & search for 'terminal')
    • Type sudo /usr/local/vanta/vanta-cli reset
    • Hit 'Return'. It may ask you for a password (use the password you have to download apps or to open your computer)

  • Windows -
    • Search for cmd.exe in the search bar. Right-click and select “run as administrator.”
    • Type C:\PROGRA~1\Vanta\vanta-cli reset and hit 'Return'

  • Linux -
    • Search for cmd.exe in the search bar. Right-click and select “run as administrator.”
    • Typesudo /var/vanta/vanta-cli resest and hit 'Return'

3. Run the below command prompt in your terminal, replacing "VANTA_KEY" with the key from step 1, and "YOUR_EMAIL" with the email for the device's primary user

  • Mac -
    • Open terminal (easiest way is cmd + space bar & search for 'terminal')
    • Type sudo /usr/local/vanta/vanta-cli register --secret="VANTA_KEY" --email="YOUR_EMAIL"  and hit 'Return'. 
      • For example:
        sudo /usr/local/vanta/vanta-cli register --secret="1232131231asdasd" --email="abc@defg.com"

  • Windows - 
    • Search for cmd.exe in the search bar. Right-click and select “run as administrator.”
    • Type C:\PROGRA~1\Vanta\vanta-cli register --secret="VANTA_KEY" --email="YOUR_EMAIL" and hit 'Return'

      • For example:
        C:\PROGRA~1\Vanta\vanta-cli register --secret="1232131231asdasd" --email="abc@defg.com"
  • Linux -
    • Open terminal
    • Typesudo /var/vanta/vanta-cli  register --secret="VANTA_KEY" --email="YOUR_EMAIL"  and hit 'Return'. 
      • For example:
        sudo /var/vanta/vanta-cli register --secret="1232131231asdasd" --email="abc@defg.com"

Additional Resources

  • For more Vanta agent-related articles, please visit Vanta Agent section.