-
-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Hardcoded http port does not play nice with changing the bound port #599
Comments
In lots of places https://github.com/search?q=repo%3AAnalogJ%2Fscrutiny+8080+AND+NOT+path%3A*.md&type=code Annoying bug would be trivial to patch, no time to do myself rn unfortunately. |
hm, can you help me understand the issue here? That file is only used when running the collector in Docker. In which case you shouldn't need to update the port (instead just bind the external port to a different number |
Oh sweet I'm crazy, it works! Sorry, I had tried this some months ago and changing the port in my docker compose wasn't successful, and I assumed this was the same issue without testing. Sorry about that! Lovely software, thanks a ton for making this! |
great! closing :) |
Not sure why my bug report was hijacked and closed here. I don't use direct host networking running docker files (my default bridge is disabled) and instead assign an individual bridge subnet and separate IP addresses for each container. This allows for greater network isolation on a server running many docker images. The suggestion to simply bind the port doesn't work in my case, which is why I filed the bug report. Given this docker-compose.yaml:
Any port binding to the ip will fail:
So I change the IP address in the configuration file, which works fine, except for the startup script uses a hard coded value, rather than reading it from the config file. I'm simply requesting that the startup script reads the port from the config file rather than be hard coded. |
Describe the bug
A startup script uses a hard coded port to run the collector service once on startup:
https://github.com/AnalogJ/scrutiny/blob/master/rootfs/etc/services.d/collector-once/run#L10
This does not play nice with changing the port in the config file:
https://github.com/AnalogJ/scrutiny/blob/master/example.scrutiny.yaml#L21
And causes an endless wait state:
Expected behavior
Changing the port in the config file is picked up by the startup script. Maybe an ENV parameter will cover this? Or the startup script can be disabled? Or multiple ports can be defined? Or...?
Screenshots
N/A
Log Files
N/A
The text was updated successfully, but these errors were encountered: