TestProject Forum

Docker agent fails with invalid session id

I have 1 test inside a job running in a docker container hosted on AWS.

**side note I have 10 total containers running either 1 or 2 tests inside the job. However one particular test fails 100% of the time with the following error. I cannot seem to figure out WHY? also this failure occurs on step 10 which seems weird.

All containers are set up exactly the same. So I really do not understand what is happening.
Below is the error.

invalid session id
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘bfee5e30186c’, ip: ‘172.18.0.3’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.4.0-1037-aws’, java.version: ‘13-ea’
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 88.0.4324.96, chrome: {chromedriverVersion: 88.0.4324.96 (68dba2d8a0b14…, userDataDir: /tmp/.com.google.Chrome.cqMCiZ}, goog:chromeOptions: {debuggerAddress: localhost:46501}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true, webdriver.remote.sessionid: 0244e2272e6135dafa952be1109…}
Session ID: 0244e2272e6135dafa952be1109827f1
invalid session id

Another side note, this runs 100% pass using headless chrome on “my agent”, and also running through browserstack using chrome.

Hello Marcel, try removing /dev/shm in your yaml file and give it another go.

Thank you @ran.tzur I will give that a try hopefully today. Will report back on results.

We got it figured out. It appears that the T2 micro instance through AWS was the issue (assuming it was too small) bumped it up to a T2 Large and test passed. We will go further and see if we can move down to T2 small and have it work. Thank you. Maybe this will help someone in the future.