[BUG] Issue in report creation
Discussed in https://github.com/orgs/utmstack/discussions/695
Originally posted by agauttam May 29, 2024 Getting the below error on webpdf container
08:47:04.473 INFO [LocalDistributor.newSession] - Session request received by the Distributor: [Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--headless, --no-sandbox], extensions: []}}] 08:47:06.104 INFO [LocalNode.newSession] - Session created by the Node. Id: 06580489d39ed5cb9422fd8fd8846d7b, Caps: Capabilities {acceptInsecureCerts: true, browserName: chrome-headless-shell, browserVersion: 124.0.6367.118, chrome: {chromedriverVersion: 124.0.6367.91 (51df0e5e17a8..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42901}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://10.0.1.16:4444/session..., se:cdpVersion: 124.0.6367.118, se:vnc: ws://10.0.1.16:4444/session..., se:vncEnabled: true, se:vncLocalAddress: ws://10.0.1.16:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 08:47:06.157 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 06580489d39ed5cb9422fd8fd8846d7b Caps: Capabilities {acceptInsecureCerts: true, browserName: chrome-headless-shell, browserVersion: 124.0.6367.118, chrome: {chromedriverVersion: 124.0.6367.91 (51df0e5e17a8..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42901}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://10.0.1.16:4444/session..., se:cdpVersion: 124.0.6367.118, se:vnc: ws://10.0.1.16:4444/session..., se:vncEnabled: true, se:vncLocalAddress: ws://10.0.1.16:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 2024-05-29 08:47:06.459 INFO 8 --- [ null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C 08:48:05.058 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "32d93188bb5dd46556e7be8520aefadc","eventTime": 1716972484901432166,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remote.http.Route$PredicatedRoute","http.host": "localhost:4444","http.method": "POST","http.request_content_length": "340","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession\u002f06580489d39ed5cb9422fd8fd8846d7b\u002fprint","http.user_agent": "selenium\u002f4.1.4 (java unix)"}}
2024-05-29 08:48:07.575 ERROR 8 --- [nio-8080-exec-7] c.u.w.service.PdfGenerationService : unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed (Session info: chrome-headless-shell=124.0.6367.118) Build info: version: '4.1.4', revision: '535d840ee2' System info: host: '5bd53e6fb2db', ip: '10.0.1.16', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-107-generic', java.version: '17.0.11' Driver info: org.openqa.selenium.remote.RemoteWebDriver Command: [06580489d39ed5cb9422fd8fd8846d7b, printPage {scale=1.0, orientation=portrait, margin=org.openqa.selenium.print.PageMargin@106069b2, page=org.openqa.selenium.print.PageSize@36d41067, shrinkToFit=true, background=false}] Capabilities {acceptInsecureCerts: true, browserName: chrome-headless-shell, browserVersion: 124.0.6367.118, chrome: {chromedriverVersion: 124.0.6367.91 (51df0e5e17a8..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:42901}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://10.0.1.16:4444/session..., se:cdpVersion: 124.0.6367.118, se:vnc: ws://10.0.1.16:4444/session..., se:vncEnabled: true, se:vncLocalAddress: ws://10.0.1.16:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 06580489d39ed5cb9422fd8fd8846d7b 08:48:08.836 INFO [LocalSessionMap.lambda$new$0] - Deleted session from local Session Map, Id: 06580489d39ed5cb9422fd8fd8846d7b 08:48:08.866 INFO [GridModel.release] - Releasing slot for session id 06580489d39ed5cb9422fd8fd8846d7b 08:48:08.876 INFO [SessionSlot.stop] - Stopping session 06580489d39ed5cb9422fd8fd8846d7b
my report giving out blank page using version 10.5.8
02:56:15.035 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 882f40604b435246f3846bc5c23e1b7c Caps: Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 128.0.6613.119, chrome: {chromedriverVersion: 128.0.6613.119 (6e439cfca4d..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:35273}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://10.0.1.17:4444/session..., se:cdpVersion: 128.0.6613.119, se:containerName: , se:noVncPort: 7900, se:vnc: ws://10.0.1.17:4444/session..., se:vncEnabled: true, se:vncLocalAddress: ws://10.0.1.17:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 2024-10-03 02:56:15.041 INFO 8 --- [ null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C 02:56:18.522 WARN [ThrottlingLogger.doLog] - Failed to export spans. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317 02:56:21.102 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: 882f40604b435246f3846bc5c23e1b7c 02:56:21.103 INFO [GridModel.release] - Releasing slot for session id 882f40604b435246f3846bc5c23e1b7c 02:56:21.103 INFO [SessionSlot.stop] - Stopping session 882f40604b435246f3846bc5c23e1b7c 02:56:23.527 WARN [ThrottlingLogger.doLog] - Failed to export spans. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317 02:56:30.464 INFO [LocalDistributor.newSession] - Session request received by the Distributor: [Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--headless, --no-sandbox], extensions: []}}] 02:56:30.935 INFO [LocalNode.newSession] - Session created by the Node. Id: e1e1739453e87ace2f414efe50098e1b, Caps: Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 128.0.6613.119, chrome: {chromedriverVersion: 128.0.6613.119 (6e439cfca4d..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:35685}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://10.0.1.17:4444/session..., se:cdpVersion: 128.0.6613.119, se:containerName: , se:noVncPort: 7900, se:vnc: ws://10.0.1.17:4444/session..., se:vncEnabled: true, se:vncLocalAddress: ws://10.0.1.17:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 02:56:30.941 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: e1e1739453e87ace2f414efe50098e1b Caps: Capabilities {acceptInsecureCerts: true, browserName: chrome, browserVersion: 128.0.6613.119, chrome: {chromedriverVersion: 128.0.6613.119 (6e439cfca4d..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:35685}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://10.0.1.17:4444/session..., se:cdpVersion: 128.0.6613.119, se:containerName: , se:noVncPort: 7900, se:vnc: ws://10.0.1.17:4444/session..., se:vncEnabled: true, se:vncLocalAddress: ws://10.0.1.17:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} 2024-10-03 02:56:30.947 INFO 8 --- [ null to remote] o.o.selenium.remote.ProtocolHandshake : Detected dialect: W3C 02:56:33.531 WARN [ThrottlingLogger.doLog] - Failed to export spans. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317 02:56:37.080 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: e1e1739453e87ace2f414efe50098e1b 02:56:37.081 INFO [GridModel.release] - Releasing slot for session id e1e1739453e87ace2f414efe50098e1b 02:56:37.082 INFO [SessionSlot.stop] - Stopping session e1e1739453e87ace2f414efe50098e1b 02:56:38.537 WARN [ThrottlingLogger.doLog] - Failed to export spans. Server responded with gRPC status code 2. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
The pdf export option was tested in our DEV environment and was validated in production, version 10.5.12. Please, upgrade to latest version.
Best regards
Hi Team,
Issue is resolved after upgrading to 10.7.2. It will be helpful if anyone can brief about any changes done for report printing.
it was not fixed till version 10.6.0
Regards, Arun