mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-16 01:59:56 -05:00
Komodo uses old value of env-variable instead of current #631
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 @OddMagnet on GitHub (Oct 17, 2025).
I've recently updated one of my services and had to create a new API key for it, so while updating the image I also changed the variable in the
.envfile.I pushed the changes to my GitTea instance, the Webhook triggered, Komodo pulled the repo and updated the services.
The service correctly uses the new image version, but it still uses the old value for the
.envvariableThe
.envshows the correct value in the UI as well when looking at it viaWith
docker inspect service | grep keyI can also see that it uses the old valueWhen I manually start the service again (from the host system) via
It uses the current value of the
.envfile.I also tried destroying the stack (afaik that's equivalent to a
docker compose down) and then redeploy, but it keeps using the old value for the.envvariable@OddMagnet commented on GitHub (Oct 18, 2025):
Some more debugging I did:
After that the correct value was used.
I'm not sure why the variable's old value was set in the periphery containers environment.
What causes that / how do I avoid causing it again in the future?
@mbecker20 commented on GitHub (Oct 18, 2025):
There shouldnt be any place where Periphery sets its container env vars, they should be set by docker. I'm not sure why this env var was set inside container
@OddMagnet commented on GitHub (Oct 19, 2025):
I just tried to destroy and recreate the stack via Komodo's UI, the old value got set again.
Not sure where it's coming from.
Even when I destroy via UI, unset the variable in the periphery container and create again, it uses the old value.
When I execute the
docker compose ... up -d(copied from what the UI shows when clicking 'Deploy Stack') command inside the periphery container, it uses the correct value@OddMagnet commented on GitHub (Oct 27, 2025):
I think I figured it out. Komodo itself seemed to get the value from an old env file (initially I had the value in a "global" env file, since multiple services were using it).
I updated the file to remove the value, but didn't
docker compose upKomodo again, so it was still captured by Komodo