mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[Bug] Building RegEx fails if container name contains variable #597
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dalewn on GitHub (Sep 23, 2025).
Hi,
creating a stack with variable in the container_name section of the compose file will throw an error as the regex cannot be built.
This error is only visible when looking at the logs. The UI itself will just show the stack state as 'DOWN'.
Error Message (only in the logs):
2025-09-23T14:15:00.697740Z WARN core::helpers::query: failed to construct container name matching regex for service mariadb-official: failed to construct valid regex from ^${NAME?error}-?[0-9]*$: regex parse error: ^${NAME?error}-?[0-9]*$ ^ error: repetition quantifier expects a valid decimalWhere the compose file looks sth like:
and the .env file that goes alongside contains:
To note: The stack itself was pre-existing and has not been started/deployed by Komodo as of now. I've seen another issue where this had fixed the problem. Still I would expect an error or info message in the UI.