Sometimes, you will need to regenerate an agent if something goes wrong with the install. The following steps describe what you will need to do:
- Navigate to the Private Location of the Agent in question and click the 'Regenerate' button, as shown below:
- You will receive a prompt to continue, which you can complete by clicking 'OK'. You will then see another docker run command come up, similar to the one below:
- Copy this command and save in a safe place for later.
NOTE: Installing the agent inside Docker requires sufficient permissions (root access required).
NOTE: When installing an agent behind a corporate proxy, follow these additional steps
NOTE: When installing an agent that uses a CA certificate, follow these additional steps
NOTE: When installing an agent on a host with multiple network interfaces, follow these additional steps
- Log on to the agent machine, and run the following command:
$ sudo docker ps -aIf you see a response that lists a <bzm-crane-<shipId>> container, then continue to next step. If you do not see a <bzm-crane-<shipId>> container, skip to Step 4.
- Remove the container with the following command (the Container ID is found from the previous steps response):
$ sudo docker rm -f <Container_ID>
OPTIONAL: If you are having issues with the images for your installation, you will need to run the following command to remove the images:
Removes all Docker images
$ sudo docker rmi $(docker images -a -q)
Force removes all Docker images (in case of failure to delete)
$ sudo docker rmi -f $(docker images -a -q) (In case the images fail to delete)
Remove all BlazeMeter related images (in case of non-BlazeMeter images in Docker instance)
$ sudo docker rmi <Image ID of apm-image> <Image ID of blazemeter/proxy-recorder> <Image ID of taurus-cloud> <Image ID of blazemeter> <Image ID of blazemeter/crane> <Image ID of service-mock> <Image ID(s) of charmander-chrome> <Image ID(s) of charmander-firefox>
- Take the docker run command (with any extra pieces needed for a proxy and/or certificate bundle setup) and run the command with root access (use sudo).
- That's it! You have successfully regenerated the machine.