Open T0mmykn1fe opened 5 years ago
not sure why it would have worked for a while and then stopped, that isn't usually how these things work :(
do you still have the conf/customer.properties file there? Directory structure needs to be .tf files at the root, then a subdirectory conf containing a custom.properties file.
I should mention that the custom.properties file in the example here on github might not be what you want as it is actually DISABLING the ability of the ActiveGate to receive agent traffic. The genesis of this particular set of terraform files was a need to deploy 45 ActiveGates from 45 different Dynatrace accounts quickly to support a HOT day at our user conference. These AGs were being configured with parameters specifically to allow them to run our Cloud Foundry plugin. Your needs might be different but the Terraform script requires that the file be there no matter what...
Yes strange indeed, now i am being thrown a new error
that latest error message almost seems like it is in the guts of terraform, perhaps something with the aws terraform provider. What is your exact workflow here? You've mentioned you've deployed a couple activegates successfully so I'm curious where/how you are maintaining multiple state files or if you are using the terraform here that provides multiple active gates (especially since my example for deploying multiple AGs is likely something rarely encountered in the "real" world...)
Howdy,
Worked well after the first merge, I was able to deploy a few activegates, now however it thows an error, the token is valid, i even tied a fresh one, cant understand whats going wrong.
Heres the final log output before falure.......fingers crossed you can work your magic ;)
aws_instance.dynatraceactivegate (remote-exec): 2019-04-07 09:00:10 (4.16 MB/s) - '/tmp/activegate.sh' saved [255544734/255544734] aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Extracting parameters from lines 257 - 262... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 After parameter extraction from the PARAMETERS section: aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 PARAM_SERVER_VALUE=(https://ald13013.live.dynatrace.com:443/communication) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 PARAM_TENANT_VALUE=(ald13013) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 PARAM_TENANT_TOKEN_VALUE=(*) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 PARAM_PROXY_VALUE=() aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 PARAM_PUBLIC_SG=(UNSET) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Dynatrace ActiveGate installer version 1.163.196.20190301-100329, build date 01.03.2019 aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Detected init system: 'systemd' aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Checking for previous Ruxit Gateway installations, verifying target installation folder... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Checking for previous Dynatrace ActiveGate installations, verifying target installation folder... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Previous Dynatrace Gateway installation NOT detected as a running process. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 No information on previous installation folders found in /etc/init.d. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Verifying system compatibility... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Checking system security limits. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Creating user: dtuserag aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Checking access rights to folders... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Using custom Dynatrace Gateway user: dtuserag:dtuserag aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:10 Installing... aws_instance.dynatraceactivegate: Still creating... (2m10s elapsed) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:17 Installation unpacked successfully aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:17 Checking distribution in /opt/dynatrace/gateway_1836 aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:17 Distribution verified aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:17 All needed folders present. Continuing. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Adding launcheruserconfig.conf path to /opt/dynatrace/gateway/launcher/dynatracegateway.ini. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Updating property (/var/lib/dynatrace/gateway/config/config.properties:[collector]:seedServerUrl) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Adding tenantUUID to (/var/lib/dynatrace/gateway/config/instance.properties) with the value from TENANT. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Adding tenantToken to (/var/lib/dynatrace/gateway/config/instance.properties) with the value from TENANT_TOKEN. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Updating property (/var/lib/dynatrace/gateway/config/config.properties:[directories]:packagesDir) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Updating property (/var/lib/dynatrace/gateway/config/config.properties:[directories]:tenantDataDir) aws_instance.dynatraceactivegate: Still creating... (2m20s elapsed) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Updating property (/var/lib/dynatrace/gateway/config/custom.properties:[synthetic]:synthetic_enabled) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Updating property (/var/lib/dynatrace/gateway/config/custom.properties:[synthetic]:synthetic_browser_monitors_enabled) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Browser monitors module disabled aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Autobackup not found. No settings to preserve aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Checking access to folders... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:23 Starting Dynatrace Gateway... aws_instance.dynatraceactivegate: Still creating... (2m30s elapsed) aws_instance.dynatraceactivegate: Still creating... (2m40s elapsed) aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:44 Checking if Dynatrace Gateway is running ... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:44 Dynatrace Gateway is running. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:44 Successfully connected to server https://ald13013.live.dynatrace.com:443/communication aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:44 Starting Dynatrace ActiveGate AutoUpdater... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:49 Checking if Dynatrace ActiveGate AutoUpdater is running ... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:49 Dynatrace ActiveGate AutoUpdater is running. aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:49 Cleaning autobackup... aws_instance.dynatraceactivegate (remote-exec): 07/04 09:00:49 Installation finished successfully. aws_instance.dynatraceactivegate: Provisioning with 'file'...
Error: Error applying plan:
1 error(s) occurred: