-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Session [(null externalkey)] not available and is not among the last 1000 terminated sessions. #7677
Comments
What happens if you run the appium tests locally without using Grid? |
They will run fine. |
Is there any solution yet for this? |
Nope still have not figured it out |
@ericomurtez nothing looks off in the Appium logs. Session is created and no commands come in from the client. You may need to increase your grid-level timeout. 45 seconds is often not enough time for an Appium session to start. |
Thanks @jlipps, appreciate you looking. |
For anybody stuck on this, I downgraded to selenium 2.53.1 and downgraded my appium Lib to 8.0 and it worked. |
facing the same issue after switching on selenium 3.0.1 After 2 days debugging I found this: some timeouts are changed from ms into seconds, so double check those timeouts. concretely, my problem was in browserTimeout, timeout and newSessionWaitTimeout. |
Still getting the same issue on the latest docker hub images (version 3.3.0). My docker-compose.yml file looks like:
Adding specific tags to it fixes the issue:
|
Looks indeed like a grid-level timeout issue based on @mstankovic86's findings. |
|
Reproduced with Grid + IE: |
I have same problem with latest version of selenium 3.9.0 with Grid environment |
same issue with selenium version 3.11 and 3.12 anyone having solution to this problem? |
Yes i have the same issue with selenium 3.12 but it is working in selenium 3.6 |
I have experienced the same issue with Selenium 3.141.59. Downgraded to 3.6 and it works now. Why is this issue closed? It is not working for newer versions than 3.6 so imho it needs to be fixed. Please open this issue again |
The problem
This was working for me and I updated everything on the environment and now I cannot run a test successfully.
Every time I start a test, the chrome (or safari) will start on the device then the test will fail with error. This only happens when I run a test through the grid, if I point straight to node there are no issues. I can also run desktop browser tests through same node, so I dont think it is a grid issues.
Seems to me that the session is being created but as soon as that happens, the grid loses the session and gives error, but the node is waiting for the grid to send it commands.
Session [(null externalkey)] not available and is not among the last 1000 terminated sessions.
Active sessions are[ext. key 7376a1ec-40b9-4d9d-9860-138ca24a3b3a] (org.openqa.grid.common.exception.GridException) (Selenium::WebDriver::Error::UnknownError)
The node and grid continue for 30 seconds until the session times out.
Grid gives message after timeout
WARN - session ext. key 7376a1ec-40b9-4d9d-9860-138ca24a3b3a has TIMED OUT due to client inactivity and will be released.
Environment
Latest version of everything.
Appium logs
https://gist.github.com/ericomurtez/b521115568036d25cb5e9941ca5016b3
Grid logs.
14:27:19.283 INFO - Launching Selenium Grid hub
2017-01-10 14:27:20.159:INFO::main: Logging initialized @1069ms
14:27:20.177 INFO - Will listen on 4444
14:27:20.245 INFO - Will listen on 4444
2017-01-10 14:27:20.252:INFO:osjs.Server:main: jetty-9.2.z-SNAPSHOT
2017-01-10 14:27:20.289:INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler@32eebfca{/,null,AVAILABLE}
2017-01-10 14:27:20.335:INFO:osjs.ServerConnector:main: Started ServerConnector@6ec8211c{HTTP/1.1}{0.0.0.0:4444}
2017-01-10 14:27:20.336:INFO:osjs.Server:main: Started @1246ms
14:27:20.337 INFO - Nodes should register to http://192.168.56.1:4444/grid/register/
14:27:20.337 INFO - Selenium Grid hub is up and running
14:27:34.779 INFO - Got a request to create a new session: Capabilities [{rotatable=false, nativeEvents=false, newCommandTimeout=300, platformVersion=6.0, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, platformName=android, version=, deviceName=0715f7c4c56a0b36, platform=ANY, cssSelectorsEnabled=true}]
14:27:35.340 INFO - Registered a node http://localhost:4801
14:27:43.314 INFO - Got a request to create a new session: Capabilities [{rotatable=false, nativeEvents=false, newCommandTimeout=300, platformVersion=6.0, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, platformName=android, version=, deviceName=0715f7c4c56a0b36, platform=ANY, cssSelectorsEnabled=true}]
14:27:43.316 INFO - Available nodes: [http://localhost:4801]
14:27:43.316 INFO - Trying to create a new session on node http://localhost:4801
14:27:43.316 INFO - Trying to create a new session on test slot {browserName=chrome, maxInstances=1, version=6.0, deviceName=0715f7c4c56a0b36, platform=ANDROID}
14:28:29.400 WARN - session ext. key 9c446ca2-3d59-4e26-ab23-285fb48b3353 has TIMED OUT due to client inactivity and will be released.
The text was updated successfully, but these errors were encountered: