Skip to content

[🐛 Bug]: Video failed to record #2739

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

Open
MJB222398 opened this issue Mar 27, 2025 · 1 comment
Open

[🐛 Bug]: Video failed to record #2739

MJB222398 opened this issue Mar 27, 2025 · 1 comment

Comments

@MJB222398
Copy link

MJB222398 commented Mar 27, 2025

What happened?

I have a docker selenium grid with a Hub, and four each of Chrome, Edge, Firefox nodes, and then a separate video container for all of these 12 nodes. A new video is recorded for each driver session and the name of the video file is just the session ID. I just had one video fail to record on a Chrome node, its like it didn't even try to record - I see no logs indicating a failure to start recording or anything. I don't have any reproduction steps as its a very intermittent issue (only seen it a handful of times ever). But my assumption from looking at the log timestamps is that the video container was recording session A, session A was then stopped, session B (the problematic one) then was created but for some reason teh video container hadn't stopped recording session A yet and so presumably that is why it could not record session B.

Edit
Just looked at the video for the previous session (b7078f5f2cca90dca71420efd15777c3) and indeed at the end of that video I see it close the browser and open a new one for the session that failed to record (5f11f65c5e44218aba7a365cc70c8dcd). So this very much appears to be the problem.

Command used to start Selenium Grid with Docker (or Kubernetes)

N/A

Relevant log output

The session that wasn't recorded was 5f11f65c5e44218aba7a365cc70c8dcd and it was on a Chrome node.

Here are the logs from the node for the session in question:

15:05:54.709 INFO [SessionSlot.stop] - Stopping session b7078f5f2cca90dca71420efd15777c3
15:05:55.136 INFO [LocalNode.newSession] - Session created by the Node. Id: 5f11f65c5e44218aba7a365cc70c8dcd, Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 134.0.6998.165, chrome: {chromedriverVersion: 134.0.6998.165 (fd886e2cb29..., userDataDir: /home/seluser/selenium/profile}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42769}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://localhost:4444/session..., se:cdpVersion: 134.0.6998.165, se:containerName: chrome-node-2, se:gridWebSocketUrl: ws://localhost:26481/sessio..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:4444/session..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
15:05:55.167 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://localhost:26481/session/5f11f65c5e44218aba7a365cc70c8dcd
15:05:56.420 INFO [LocalNode.stopTimedOutSession] - Session id 5f11f65c5e44218aba7a365cc70c8dcd is stopping on demand...
15:05:56.420 INFO [SessionSlot.stop] - Stopping session 5f11f65c5e44218aba7a365cc70c8dcd
15:06:04.763 INFO [LocalNode.newSession] - Session created by the Node. Id: 306197cec414365906c33b79c63b26c2, Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 134.0.6998.165, chrome: {chromedriverVersion: 134.0.6998.165 (fd886e2cb29..., userDataDir: /home/seluser/selenium/profile}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:40405}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://localhost:4444/session..., se:cdpVersion: 134.0.6998.165, se:containerName: chrome-node-2, se:gridWebSocketUrl: ws://localhost:12795/sessio..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:4444/session..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}

Here are the logs from the video container:

2025-03-26 15:05:53,683 [video.recorder] - Video recording in progress
2025-03-26 15:05:54,702 [video.recorder] - Video recording in progress
2025-03-26 15:05:56,089 [video.recorder] - Video recording stopped
2025-03-26 15:06:05,623 [video.recorder] - Session: 306197cec414365906c33b79c63b26c2 is created
2025-03-26 15:06:06,639 [endpoint.checks] - Endpoint http://localhost:4444/graphql is not available - status code: 000
2025-03-26 15:06:06,640 [video.recorder] - Start recording: true, video file name: 306197cec414365906c33b79c63b26c2.mp4
2025-03-26 15:06:06,641 [video.recorder] - Starting to record video

And here are the logs from the Hub:

15:05:54.712 INFO [GridModel.release] - Releasing slot for session id b7078f5f2cca90dca71420efd15777c3
15:05:54.712 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: b7078f5f2cca90dca71420efd15777c3
15:05:54.715 INFO [LocalDistributor.newSession] - Session request received by the Distributor: 
 [Capabilities {browserName: chrome, goog:chromeOptions: {args: [--disable-features=Insecure..., --user-data-dir=/home/selus..., --profile-directory=Default]}, webSocketUrl: true}]
15:05:55.141 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 5f11f65c5e44218aba7a365cc70c8dcd 
 Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 134.0.6998.165, chrome: {chromedriverVersion: 134.0.6998.165 (fd886e2cb29..., userDataDir: /home/seluser/selenium/profile}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42769}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: {}, se:cdp: ws://localhost:4444/session..., se:cdpVersion: 134.0.6998.165, se:containerName: chrome-node-2, se:gridWebSocketUrl: ws://localhost:26481/sessio..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:4444/session..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
15:05:55.272 INFO [GridModel.release] - Releasing slot for session id b99b56c3-9664-43b1-8015-b157f4752b00
15:05:55.272 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: b99b56c3-9664-43b1-8015-b157f4752b00
15:05:55.726 INFO [GridModel.release] - Releasing slot for session id 37eb1830002b17bf59a26999b4685172
15:05:55.726 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: 37eb1830002b17bf59a26999b4685172
15:05:55.924 INFO [GridModel.release] - Releasing slot for session id 2f6fa6b090e60316d0f043936c45404a
15:05:55.924 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: 2f6fa6b090e60316d0f043936c45404a
15:05:56.070 INFO [LocalDistributor.newSession] - Session request received by the Distributor: 
 [Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--user-data-dir=/home/selus..., --profile-directory=Default]}, webSocketUrl: true}]
15:05:56.422 INFO [GridModel.release] - Releasing slot for session id 5f11f65c5e44218aba7a365cc70c8dcd
15:05:56.422 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: 5f11f65c5e44218aba7a365cc70c8dcd
15:05:56.579 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 53ad4e02b6df547fd7727293cd5fc4be 
 Caps: Capabilities {acceptInsecureCerts: false, browserName: MicrosoftEdge, browserVersion: 134.0.3124.83, fedcm:accounts: true, ms:edgeOptions: {debuggerAddress: localhost:36351}, msedge: {msedgedriverVersion: 134.0.3124.83 (b4ff70c9d7db..., userDataDir: /home/seluser/selenium/profile}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: {}, se:cdp: ws://localhost:4444/session..., se:cdpVersion: 134.0.3124.83, se:containerName: edge-node-1, se:gridWebSocketUrl: ws://localhost:28320/sessio..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:4444/session..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
15:05:56.776 INFO [LocalDistributor.newSession] - Session request received by the Distributor: 
 [Capabilities {browserName: MicrosoftEdge, ms:edgeOptions: {args: [--user-data-dir=/home/selus..., --profile-directory=Default]}, webSocketUrl: true}]
15:05:57.250 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 3ec9c3bc59a3fa8f34e9c12bf8df62fd 
 Caps: Capabilities {acceptInsecureCerts: false, browserName: MicrosoftEdge, browserVersion: 134.0.3124.83, fedcm:accounts: true, ms:edgeOptions: {debuggerAddress: localhost:34963}, msedge: {msedgedriverVersion: 134.0.3124.83 (b4ff70c9d7db..., userDataDir: /home/seluser/selenium/profile}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: {}, se:cdp: ws://localhost:4444/session..., se:cdpVersion: 134.0.3124.83, se:containerName: edge-node-2, se:gridWebSocketUrl: ws://localhost:5945/session..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webSocketUrl: ws://localhost:4444/session..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
15:05:57.864 INFO [LocalDistributor.newSession] - Session request received by the Distributor: 
 [Capabilities {browserName: firefox, moz:firefoxOptions: {args: [-profile, home/seluser/.mozilla/firef...], prefs: {remote.active-protocols: 3}}, webSocketUrl: true}]

Operating System

Ubuntu 20.04

Docker Selenium version (image tag)

4.30.0-20250323 and ffmpeg-7.1.1.1.1-20250323

Selenium Grid chart version (chart version)

No response

Copy link

@MJB222398, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant