Inaccessible Jenkins Server
_This message was extracted from a discussion that originally took place in Gruntwork Community Slack. Names and URLs have been removed where appropriate_ **From a customer** We've built Jenkins AMI using [terragrunt module](terraform-aws-service-catalog.git//modules/mgmt/jenkins) with ref `v0.44.7` using `packer`. When we try to create Jenkins server using terragrunt module, after creating LB and EC2 instance, health check was keep failing. Hence EC2 keep getting restarted. If we manually start the Jenkins server from the EC2 instance then it is working. But if reboot the instance then getting same problem i.e jenkins server not automatically starting up within the EC2 instance. The same behavior occurred both versions `terraform-aws-service-catalog.git//modules/mgmt/jenkins?ref=v0.34.1` and `terraform-aws-service-catalog.git//modules/mgmt/jenkins?ref=v0.44.7`. Any idea why Jenkins server not starting up automatically once EC2 instance is successfully launched?
**From a grunt** Ok after investigation, what person said is correct. The main issue here is that you have `ssh-grunt` configured for the server, but it looks like your environment is not setup to support it. Because the boot script fails to start up `ssh-grunt`, everything after that step fails, including mounting the data volume. The reason directly starting the jenkins service works is because the default location for the jenkins volume is `/var/lib`, which exists in the file system. When you call `run-jenkins`, you are configuring the jenkins data volume to be `/jenkins`, which does not exist by default - this materializes when the boot script runs [attach_volume](https://github.com/gruntwork-io/terraform-aws-service-catalog/blob/master/modules/mgmt/jenkins/user-data.sh#L40), which isn’t called if it halts when it tries to start `ssh-grunt`. You can workaround this by disabling `ssh-grunt`. This can be done by setting the following terraform input vars: ``` enable_ssh_grunt = false ssh_grunt_iam_group = "" ssh_grunt_iam_group_sudo = "" ```