Skip to content

Conversation

Copy link

Copilot AI commented Nov 20, 2025

The docker-compose migration introduced three critical templating issues that would prevent InfluxDB from starting or configuring correctly.

Fixed:

  • Environment variable typo: INFLUXDB_DATA_CACHE_MAX_MEMORY_SYZEINFLUXDB_DATA_CACHE_MAX_MEMORY_SIZE
  • Quote escaping in all InfluxDB CLI commands (users, databases, retention policies)
  • Retention policy name using hardcoded oneweek instead of configured {{ influxdb_retention_policy.policy_name }}

Example of quote fix:

# Before - malformed quotes cause syntax errors
influx -execute "CREATE USER "{{ item.username }}" WITH PASSWORD '"{{ item.password }}"'"

# After - properly escaped
influx -execute "CREATE USER \"{{ item.username }}\" WITH PASSWORD '{{ item.password }}'"

Known limitations (not addressed):

  • influxdb_https_enabled expects string "true" not boolean
  • User permissions rely on list index ordering
  • Grafana permissions hardcode database list vs using influxdb_databases
  • Commands lack idempotency (will fail on reruns)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 20, 2025
Copilot AI changed the title [WIP] Migrate influxdb to docker-compose for easier container management Fix templating errors in InfluxDB configuration commands Nov 20, 2025
Copilot AI requested a review from gsaudade99 November 20, 2025 10:36
Copilot finished work on behalf of gsaudade99 November 20, 2025 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants