Hi everyone,
I’m using InfluxDB 2 OSS for a work project and have it installed in a docker container. Everything went fine until I started working with templates.
I can import templates in the web interface (Settings → Templates) and I can export my modified templates to a file (into a bind mount in docker) BUT i cant reimport the exported template from file into a fresh container. Attempting to do so fails with: “aborted application of template” although I’m also getting the following info from the database:
ts=2021-11-02T12:31:32.257567Z lvl=info msg=“template dry run successful” log_id=0X_9DdCW000 service=pkger num_buckets=2 num_checks=4 num_dashboards=1 num_endpoints=1 num_labels=1 num_label_mappings=1 num_rules=1 took=206.087ms
Command I’m using:
docker exec influxdb2 influx apply -o MyOrg -f /templates/template.yml
I’ve also tried appending my admin token to the command with a -t and --token but without any luck.
Any help would be appreciated,
a frustrated intern