mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-06 08:55:40 -05:00
[GH-ISSUE #717] Invalid digit found in string in KOMODO_PORT #3535
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 @JavertArdo on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/moghtech/komodo/issues/717
The problem appears when deploying Komodo Core in Kubernetes. When not specifying directly
KOMODO_PORTvalue (which should be 9120 by default), Pod crashes with following error:Here is the configuration:
The workaround is to explicitly define or somehow override
KOMODO_PORTto 9120.I didn't notice this issue using Podman Compose when not specifying the
KOMODO_PORT. If I understand the error correctly, instead of having only the number inKOMODO_PORTthe application appended prefixtcp://10.101.108.109:before parsing value?Version: komodo-core:1.18.4
@mbecker20 commented on GitHub (Aug 19, 2025):
I'm not sure where that Komodo port value is coming from, I don't see where it would be, unless you also give it a config file with this value
@JavertArdo commented on GitHub (Aug 20, 2025):
After digging a little bit I might have some suspicion that this value comes from different environment variable.
When we log into pod (the working one after applying workaround, since the previous is crashing while parsing config values) shell and print all mounted environment variables, I see some of them are auto mounted by Kubernetes.
And the format seems to be:
As we can see four of them are auto created by Kubernetes for Service defined for this Pod.
So, is it possible that Komodo is trying to get any env starting with
KOMODO_PORT. Since in faulty scenarioKOMODO_PORTis not explicitly defined we should have only four of them in Pod. So, Komodo get the shortest matching env starting withKOMODO_PORT? Which isKOMODO_PORT_9120_TCPand then parsing failed, since the value was not a digit.I believe Podman does not automount such env vars in container. Hence, the issue is observed only in Kubernetes in the same configuration.
@mbecker20 commented on GitHub (Aug 30, 2025):
I don't believe Komodo will parse
KOMODO_PORTfrom any other variable other thanKOMODO_PORTexactly. For example, I cannot reproduce this through passingKOMODO_PORT_9120_TCPon the environment.I am closing this issue as its kind of out of scope, but if you have any other comments I will see it.
@JavertArdo commented on GitHub (Aug 30, 2025):
Just to leave a comment for others. I agree with you that it is not Komodo issue, it is a Kubernetes way of env variables injection into Pods. The problem is due to naming collision of Komodo variables and created Kubernetes Service. I deployed some other app to test.
Now I am sure that Kubernetes created
KOMODO_PORTwith valuetcp://10.101.108.109:9120which caused an error during parsing. When explicitly definedKOMODO_PORTwith valid value (which overriden previous one) then there was no issue.@mbecker20, thank you for taking a look and your time.