mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
unknown flag: --format while deploying a stack and periphery volumes question related to .env files been written to docker volume by default #163
Reference in New Issue
Block a user
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 @stamonty on GitHub (Dec 21, 2024).
First of all I would like to thank you for the great software!
I was able to to successfully migrate a couple of stacks from Portainer to Komodo exept Immich.
On compose build step I got

unknown flag: --format:Haven't seen
config --format jsonwhile deploying other stacks.I assume second
--env-filewas mistakenly added.Also I've tried to reuse Komodo demo immich stack configuration. Got exactly the same error.
Peripheral agent is deployed as docker container.
BTW,
environment written to "/etc/komodo/stacks/immich/.env"No actual file was created. Is it expected behavior? Same goes for other stacks, though deployment went successful.
Docmost stack deployment for comparison

Just let me know if I could help to track the issue by providing any additional information needed.
@mbecker20 commented on GitHub (Dec 21, 2024):
It looks like and additional env file is not being passed. the command has:
--env-file .env --env-file config --format json.Maybe you added an additional env file, but left it blank? If this isn't it, please share you resource TOML.
@stamonty commented on GitHub (Dec 21, 2024):
Many thanks!
It is exactly what've happened!
Assume it would be better not to save an empty envs or at least ignore them while deploying.
Issue was so trivial but I was completely sure that an empty state wasn't saved that didn't bother to double checked.
@stamonty commented on GitHub (Dec 21, 2024):
Also, if possible, could you please elaborate on that.
@mbecker20 commented on GitHub (Dec 21, 2024):
Can you check
ls -aand see if you see it? Its possible you just don't see it because usually paths starting with.are hidden.@stamonty commented on GitHub (Dec 21, 2024):
Sure, here it goes:
No env for immich stack
Same for Docmost (even directory was not created)
Docker engine runs with root privileges (https://docs.docker.com/engine/install/ubuntu/ - standard install)
@mbecker20 commented on GitHub (Dec 21, 2024):
Its strange to not see the compose file in there either. I am assuming you mount
/etc/komodo/stacks:/etc/komodo/stacksto Periphery container? This should be correct.Could you share:
@stamonty commented on GitHub (Dec 21, 2024):
How Periphery agent starts:
docker compose -p komodo -f komodo.yaml --env-file komodo.env up -dBoth files are located outside /etc
komodo.yaml
komodo.env
PERIPHERY_PASSKEYS=PERIPHERY CONTAINER LOG
@stamonty commented on GitHub (Dec 21, 2024):
Docmost stack:
@mbecker20 commented on GitHub (Dec 21, 2024):
Remember Periphery is running in docker container, with file system seperation. See this part on the Periphery service:
So you are actually putting the files in Docker volume. The compose / .env are being written in there.
If you want to face less complication from this, you can consider running Periphery in systemd, as I do: https://github.com/mbecker20/komodo/discussions/220
If you must run Periphery in container, and are willing to take on the additional complications, make sure to read this post: https://github.com/mbecker20/komodo/discussions/180
@stamonty commented on GitHub (Dec 22, 2024):
Exactly! My mistake, I've misread the config. Thanks for the links provided, very useful. No more questions for now, closing the issue.