You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While setting up some automations for Stack creation, I've run into a bug where a Stack cannot be created if it includes the stack.env file via something like:
env_file: [stack.env]
This is completely fine if added after creation.
For context on what I'm doing: I'm moving existing Stacks to an automated create/update workflow backed by a repo of compose files. I started hitting this with basically all of them, either moved or new (based on my templating).
Expected Behavior
Stack be created successfully and the stack.env should refer to any Env variables included on creation.
Actual Behavior
Unable to create the Stack due to the error:
failed to deploy a stack: Failed to load /data/compose/{stack_id}/.../containers/stack.env: open /data/compose/{stack_id}/.../containers/stack.env: no such file or directory
lgo
changed the title
Cannot create a stack if the compose file has env_file: [stack.env]
Cannot create Stack if the compose file has env_file: [stack.env]Apr 28, 2024
Before you start please confirm the following.
Problem Description
While setting up some automations for Stack creation, I've run into a bug where a Stack cannot be created if it includes the
stack.env
file via something like:This is completely fine if added after creation.
For context on what I'm doing: I'm moving existing Stacks to an automated create/update workflow backed by a repo of compose files. I started hitting this with basically all of them, either moved or new (based on my templating).
Expected Behavior
Stack be created successfully and the
stack.env
should refer to anyEnv
variables included on creation.Actual Behavior
Unable to create the Stack due to the error:
Steps to Reproduce
Portainer logs or screenshots
No response
Portainer version
2.19.5
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker 24.0.7
OS and Architecture
Debian, AMD64
Browser
No response
What command did you use to deploy Portainer?
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: