-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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]: Unable to override session timeout and other configuration parameters using toml file #2559
Comments
@mcichonqa, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
In Node entrypoint, there is a config
And by default it is 300, so it always pass CLI option, which takes higher precedence than TOML config - SE_NODE_SESSION_TIMEOUT= |
Okay, so default CLI options have higher precedence and specific toml parameters are ignored always in that cases. I have to mix my configuration between docker yaml and toml. Is it ok? Thanks for explanation! |
Yes, in YAML set env var |
What happened?
Hi, at start I would like to say its only a question. I wanted to use for hub and node's several configuration files as config.toml, but some sections didn't read well and Im confused about that. Could you explain how can I override session timeout and others parameters?
In my chrome-config.toml I have short configuration and I want to override session timeout parameter. I know default value is 300, but I don't understand, why my session timeout with value like 60 is not used from my toml file?
Now im only able to override session timeout and some parameters using environment in docker compose yaml like SE_NODE_SESSION_TIMEOUT=60 or just SE_OPTS=--session-timeout 60.
Is it possible to set session-timeout inside toml file below [node] section? I would like to have all parameters in toml file not in environment section inside docker yaml.
I have also problems with other sections like [logging]. Any parameters from this section is not applied and in console I see something like "Appending Selenium option: --log-level INFO", but my toml file includes log-level = "FINE".
It looks like my toml file is used 50% parameters only and some parameters are not recognized.
These parameters are recognized and applied:
detect-drivers = true
max-sessions = 1
all below [[node.driver-configuration]] works
This is my toml file
[events]
publish = "tcp://selenium-hub:4442"
subscribe = "tcp://selenium-hub:4443"
[logging]
log-level = "FINE"
[node]
session-timeout = 60
detect-drivers = true
max-sessions = 1
[[node.driver-configuration]]
display-name = "Chrome"
stereotype = '{ "browserName": "chrome", "browserVersion": "131", "platformName": "LINUX" }'
webdriver-executable = "/opt/selenium/chromedriver-131.0.6778.204"
[[node.driver-configuration]]
display-name = "Edge"
stereotype = '{ "browserName": "MicrosoftEdge", "browserVersion": "131", "platformName": "windows" }'
webdriver-executable = "/opt/selenium/msedgedriver-131.0.2903.112"
Thanks in advance.
Command used to start Selenium Grid with Docker (or Kubernetes)
Relevant log output
Operating System
WSL2 Ubuntu-22.04
Docker Selenium version (image tag)
4.27.0
Selenium Grid chart version (chart version)
No response
The text was updated successfully, but these errors were encountered: