Skyvern-AI / skyvern

Automate browser-based workflows with LLMs and Computer Vision
https://www.skyvern.com
GNU Affero General Public License v3.0
5.76k stars 418 forks source link

Unknown error while creating browser #733

Open sameerimperium opened 2 weeks ago

sameerimperium commented 2 weeks ago

Hey I ran the skyvern app through docker and when I create a new task, I get this error on the task run: "Reasoning: unexpected SkyvernException(UnknownErrorWhileCreatingBrowserContext)\n". To give you a bit of context I am running this on windows with wsl install and I have set docker to use ubuntu which is installed through wsl. I would be pasting the error logs down below in a new comment.

sameerimperium commented 2 weeks ago

skyvern-ui-1 | Running at http://localhost:8080 skyvern-1 | 2024-08-26T10:58:41.458525Z [info ] Created new task proxy_location=RESIDENTIAL task_id=tsk_296295711174591590 url=https://www.geico.com skyvern-1 | 2024-08-26T10:58:41.458676Z [info ] Executing task using background task executor task_id=tsk_296295711174591590 skyvern-1 | 2024-08-26T10:58:41.539799Z [info ] Creating browser state for task task_id=tsk_296295711174591590
skyvern-1 | /usr/local/lib/python3.11/site-packages/structlog/_base.py:167: UserWarning: Remove format_exc_info from your processor chain if you want pretty exceptions. skyvern-1 | event_dict = proc(self._logger, method_name, event_dict) skyvern-1 | 2024-08-26T10:58:43.577237Z [error ] Got an unexpected exception in step, fail the task step_id=stp_296295711174591592 task_id=tsk_296295711174591590
skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/app/skyvern/webeye/browser_factory.py", line 111, in create_browser_context skyvern-1 | browser_context, browser_artifacts, cleanup_func = await creator(playwright, kwargs)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/app/skyvern/webeye/browser_factory.py", line 162, in _create_headful_chromium skyvern-1 | browser_context = await playwright.chromium.launch_persistent_context(
browser_args)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 14394, in launch_persistent_context
skyvern-1 | await self._impl_obj.launch_persistent_context( skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 159, in launch_persistent_context
skyvern-1 | from_channel(await self._channel.send("launchPersistentContext", params)),
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send skyvern-1 | return await self._connection.wrap_api_call(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
skyvern-1 | raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
skyvern-1 | playwright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed skyvern-1 | Browser logs:
skyvern-1 | skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_34vsun25 --remote-debugging-pipe about:blank skyvern-1 | pid=125 skyvern-1 | [pid=125][err] [125:144:0826/105843.028381:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=125][err] [125:147:0826/105843.277994:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory skyvern-1 | [pid=125][err] [125:147:0826/105843.278224:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=125][err] [125:144:0826/105843.292881:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293077:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293125:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293195:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293252:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [0826/105843.495234:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1 | [pid=125][err] [0826/105843.495346:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | Call log: skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_34vsun25 --remote-debugging-pipe about:blank skyvern-1 | - pid=125 skyvern-1 | - [pid=125][err] [125:144:0826/105843.028381:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=125][err] [125:147:0826/105843.277994:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=125][err] [125:147:0826/105843.278224:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=125][err] [125:144:0826/105843.292881:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [125:144:0826/105843.293077:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [125:144:0826/105843.293125:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [125:144:0826/105843.293195:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [125:144:0826/105843.293252:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [0826/105843.495234:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1 | - [pid=125][err] [0826/105843.495346:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | skyvern-1 |
skyvern-1 | The above exception was the direct cause of the following exception: skyvern-1 | skyvern-1 | Traceback (most recent call last):
skyvern-1 | File "/app/skyvern/forge/agent.py", line 260, in execute_step
skyvern-1 | ) = await self._initialize_execution_state(task, step, workflow_run) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/app/skyvern/forge/agent.py", line 861, in _initialize_execution_state skyvern-1 | browser_state = await app.BROWSER_MANAGER.get_or_create_for_task(task)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/app/skyvern/webeye/browser_manager.py", line 63, in get_or_create_for_task
skyvern-1 | browser_state = await self._create_browser_state(task.proxy_location, task.url, task.task_id) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/app/skyvern/webeye/browser_manager.py", line 35, in _create_browser_state skyvern-1 | ) = await BrowserContextFactory.create_browser_context(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/app/skyvern/webeye/browser_factory.py", line 118, in create_browser_context
skyvern-1 | raise UnknownErrorWhileCreatingBrowserContext(browser_type, e) from e
skyvern-1 | skyvern.exceptions.UnknownErrorWhileCreatingBrowserContext: Unknown error while creating browser context for chromium-headful. Exception type: <class 'playwright._impl._errors.TargetClosedError'> Exception message: BrowserType.launch_persistent_context: Target page, context or browser has been closed skyvern-1 | Browser logs: skyvern-1 | skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_34vsun25 --remote-debugging-pipe about:blank skyvern-1 | pid=125 skyvern-1 | [pid=125][err] [125:144:0826/105843.028381:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=125][err] [125:147:0826/105843.277994:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=125][err] [125:147:0826/105843.278224:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory skyvern-1 | [pid=125][err] [125:144:0826/105843.292881:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293077:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293125:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293195:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [125:144:0826/105843.293252:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=125][err] [0826/105843.495234:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1 | [pid=125][err] [0826/105843.495346:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | Call log: skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_34vsun25 --remote-debugging-pipe about:blank skyvern-1 | - pid=125 skyvern-1 | - [pid=125][err] [125:144:0826/105843.028381:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=125][err] [125:147:0826/105843.277994:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=125][err] [125:147:0826/105843.278224:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=125][err] [125:144:0826/105843.292881:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") skyvern-1 | - [pid=125][err] [125:144:0826/105843.293077:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [125:144:0826/105843.293125:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") skyvern-1 | - [pid=125][err] [125:144:0826/105843.293195:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [125:144:0826/105843.293252:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=125][err] [0826/105843.495234:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1 | - [pid=125][err] [0826/105843.495346:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | skyvern-1 | 2024-08-26T10:58:43.579348Z [info ] Updating step in db diff={'status': {'old': <StepStatus.created: 'created'>, 'new': <StepStatus.failed: 'failed'>}} step_id=stp_296295711174591592 task_id=tsk_296295711174591590 skyvern-1 | 2024-08-26T10:58:43.611301Z [info ] Updating task in db diff={'status': {'old': <TaskStatus.running: 'running'>, 'new': <TaskStatus.failed: 'failed'>}, 'failure_reason': {'old': None, 'new': 'unexpected SkyvernException(UnknownErrorWhileCreatingBrowserContext)'}} task_id=tsk_296295711174591590 skyvern-1 | 2024-08-26T10:58:43.640455Z [info ] Creating browser state for task task_id=tsk_296295711174591590 skyvern-1 | 2024-08-26T10:58:45.848808Z [error ] Unexpected error in agent server. skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/app/skyvern/webeye/browser_factory.py", line 111, in create_browser_context
skyvern-1 | browser_context, browser_artifacts, cleanup_func = await creator(playwright, kwargs) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/app/skyvern/webeye/browser_factory.py", line 162, in _create_headful_chromium skyvern-1 | browser_context = await playwright.chromium.launch_persistent_context(
browser_args)
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 14394, in launch_persistent_context
skyvern-1 | await self._impl_obj.launch_persistent_context( skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 159, in launch_persistent_context
skyvern-1 | from_channel(await self._channel.send("launchPersistentContext", params)), skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send skyvern-1 | return await self._connection.wrap_api_call(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
skyvern-1 | raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None skyvern-1 | playwright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed skyvern-1 | Browser logs:
skyvern-1 | skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_xk5nq0k1 --remote-debugging-pipe about:blank skyvern-1 | pid=172 skyvern-1 | [pid=172][err] [172:193:0826/105845.235242:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=172][err] [172:196:0826/105845.518255:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=172][err] [172:196:0826/105845.518591:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory skyvern-1 | [pid=172][err] [172:193:0826/105845.540031:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [172:193:0826/105845.541204:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [172:193:0826/105845.541987:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") skyvern-1 | [pid=172][err] [172:193:0826/105845.542874:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [172:193:0826/105845.543007:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [0826/105845.756478:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) skyvern-1 | [pid=172][err] [0826/105845.756579:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | Call log: skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_xk5nq0k1 --remote-debugging-pipe about:blank skyvern-1 | - pid=172 skyvern-1 | - [pid=172][err] [172:193:0826/105845.235242:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=172][err] [172:196:0826/105845.518255:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory skyvern-1 | - [pid=172][err] [172:196:0826/105845.518591:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory skyvern-1 | - [pid=172][err] [172:193:0826/105845.540031:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.541204:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.541987:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.542874:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.543007:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [0826/105845.756478:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2) skyvern-1 | - [pid=172][err] [0826/105845.756579:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | skyvern-1 | skyvern-1 | The above exception was the direct cause of the following exception: skyvern-1 |
skyvern-1 | Traceback (most recent call last): skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in call
skyvern-1 | await self.app(scope, receive, _send)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 109, in call skyvern-1 | await response(scope, receive, send)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 270, in call skyvern-1 | async with anyio.create_task_group() as task_group: skyvern-1 | File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit skyvern-1 | raise exceptions[0]
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 273, in wrap skyvern-1 | await func() skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 134, in stream_response skyvern-1 | return await super().stream_response(send) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 262, in stream_response skyvern-1 | async for chunk in self.body_iterator: skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 98, in body_stream skyvern-1 | raise app_exc
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro skyvern-1 | await self.app(scope, receive_or_disconnect, send_no_error) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette_context/middleware/raw_middleware.py", line 92, in call skyvern-1 | await self.app(scope, receive, send_wrapper)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in call skyvern-1 | await self.simple_response(scope, receive, send, request_headers=headers)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response skyvern-1 | await self.app(scope, receive, send)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in call skyvern-1 | raise exc
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in call skyvern-1 | await self.app(scope, receive, sender) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
skyvern-1 | raise e skyvern-1 | File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call skyvern-1 | await self.app(scope, receive, send)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in call
skyvern-1 | await route.handle(scope, receive, send) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
skyvern-1 | await self.app(scope, receive, send) skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 69, in app
skyvern-1 | await response(scope, receive, send)
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 174, in call skyvern-1 | await self.background()
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/background.py", line 43, in call skyvern-1 | await task()
skyvern-1 | File "/usr/local/lib/python3.11/site-packages/starlette/background.py", line 26, in call skyvern-1 | await self.func(*self.args, **self.kwargs)
skyvern-1 | File "/app/skyvern/forge/agent.py", line 455, in execute_step skyvern-1 | await self.send_task_response(
skyvern-1 | File "/app/skyvern/forge/agent.py", line 1205, in send_task_response
skyvern-1 | browser_state: BrowserState = await app.BROWSER_MANAGER.get_or_create_for_task(task) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ skyvern-1 | File "/app/skyvern/webeye/browser_manager.py", line 63, in get_or_create_for_task
skyvern-1 | browser_state = await self._create_browser_state(task.proxy_location, task.url, task.task_id) skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/app/skyvern/webeye/browser_manager.py", line 35, in _create_browser_state skyvern-1 | ) = await BrowserContextFactory.create_browser_context(
skyvern-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1 | File "/app/skyvern/webeye/browser_factory.py", line 118, in create_browser_context skyvern-1 | raise UnknownErrorWhileCreatingBrowserContext(browser_type, e) from e
skyvern-1 | skyvern.exceptions.UnknownErrorWhileCreatingBrowserContext: Unknown error while creating browser context for chromium-headful. Exception type: <class 'playwright._impl._errors.TargetClosedError'> Exception message: BrowserType.launch_persistent_context: Target page, context or browser has been closed skyvern-1 | Browser logs: skyvern-1 |
skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_xk5nq0k1 --remote-debugging-pipe about:blank skyvern-1 | pid=172 skyvern-1 | [pid=172][err] [172:193:0826/105845.235242:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=172][err] [172:196:0826/105845.518255:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=172][err] [172:196:0826/105845.518591:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | [pid=172][err] [172:193:0826/105845.540031:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [172:193:0826/105845.541204:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [172:193:0826/105845.541987:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [172:193:0826/105845.542874:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") skyvern-1 | [pid=172][err] [172:193:0826/105845.543007:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | [pid=172][err] [0826/105845.756478:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1 | [pid=172][err] [0826/105845.756579:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 | Call log: skyvern-1 | /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_xk5nq0k1 --remote-debugging-pipe about:blank skyvern-1 | - pid=172 skyvern-1 | - [pid=172][err] [172:193:0826/105845.235242:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=172][err] [172:196:0826/105845.518255:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1 | - [pid=172][err] [172:196:0826/105845.518591:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory skyvern-1 | - [pid=172][err] [172:193:0826/105845.540031:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.541204:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.541987:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.542874:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [172:193:0826/105845.543007:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1 | - [pid=172][err] [0826/105845.756478:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1 | - [pid=172][err] [0826/105845.756579:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1 |

sameerimperium commented 2 weeks ago

what is this? Windows is screaming it's a virus again and again

0xrushi commented 2 weeks ago

+1 its also there while running it via the docker command on windows, the UI works, but If I click any of the example tasks like What is the top post on hackernews? it gives this

channel(await self._channel.send("launchPersistentContext", params)),
skyvern-1     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send
skyvern-1     |     return await self._connection.wrap_api_call(
skyvern-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
skyvern-1     |     raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
skyvern-1     | playwright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_uc756ber --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=500
skyvern-1     | [pid=500][err] [500:515:0901/150742.249546:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=500][err] [500:522:0901/150742.455655:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=500][err] [500:522:0901/150742.455728:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=500][err] [500:515:0901/150742.459118:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459422:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459446:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459458:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459555:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [0901/150742.639162:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=500][err] [0901/150742.639233:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_uc756ber --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=500
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.249546:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=500][err] [500:522:0901/150742.455655:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=500][err] [500:522:0901/150742.455728:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459118:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459422:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459446:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459458:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459555:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [0901/150742.639162:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=500][err] [0901/150742.639233:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     |
skyvern-1     | The above exception was the direct cause of the following exception:
skyvern-1     |
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 260, in execute_step
skyvern-1     |     ) = await self._initialize_execution_state(task, step, workflow_run)
skyvern-1     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 864, in _initialize_execution_state
skyvern-1     |     browser_state = await app.BROWSER_MANAGER.get_or_create_for_task(task)
skyvern-1     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 67, in get_or_create_for_task
skyvern-1     |     browser_state = await self._create_browser_state(task.proxy_location, task.url, task.task_id)
skyvern-1     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 39, in _create_browser_state
skyvern-1     |     ) = await BrowserContextFactory.create_browser_context(
skyvern-1     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 117, in create_browser_context
skyvern-1     |     raise UnknownErrorWhileCreatingBrowserContext(browser_type, e) from e
skyvern-1     | skyvern.exceptions.UnknownErrorWhileCreatingBrowserContext: Unknown error while creating browser context for chromium-headful. Exception type: <class 'playwright._impl._errors.TargetClosedError'> Exception message: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_uc756ber --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=500
skyvern-1     | [pid=500][err] [500:515:0901/150742.249546:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=500][err] [500:522:0901/150742.455655:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=500][err] [500:522:0901/150742.455728:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=500][err] [500:515:0901/150742.459118:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459422:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459446:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459458:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [500:515:0901/150742.459555:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=500][err] [0901/150742.639162:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=500][err] [0901/150742.639233:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_uc756ber --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=500
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.249546:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=500][err] [500:522:0901/150742.455655:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=500][err] [500:522:0901/150742.455728:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459118:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459422:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459446:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459458:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [500:515:0901/150742.459555:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=500][err] [0901/150742.639162:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=500][err] [0901/150742.639233:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     | 2024-09-01T15:07:42.733992Z [info     ] Updating step in db            diff={'status': {'old': <StepStatus.created: 'created'>, 'new': <StepStatus.failed: 'failed'>}} step_id=stp_298586388413137156 task_id=tsk_298586388413137154
skyvern-1     | 2024-09-01T15:07:42.788689Z [info     ] Updating task in db            diff={'status': {'old': <TaskStatus.running: 'running'>, 'new': <TaskStatus.failed: 'failed'>}, 'failure_reason': {'old': None, 'new': 'unexpected SkyvernException(UnknownErrorWhileCreatingBrowserContext)'}} task_id=tsk_298586388413137154
skyvern-1     | 2024-09-01T15:07:42.821748Z [info     ] Creating browser state for task task_id=tsk_298586388413137154
skyvern-1     | 2024-09-01T15:07:44.055777Z [error    ] Unexpected error in agent server.
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 112, in create_browser_context
skyvern-1     |     browser_context, browser_artifacts, cleanup_func = await creator(playwright, **kwargs)
skyvern-1     |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 161, in _create_headful_chromium
skyvern-1     |     browser_context = await playwright.chromium.launch_persistent_context(**browser_args)
skyvern-1     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 14394, in launch_persistent_context
skyvern-1     |     await self._impl_obj.launch_persistent_context(
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 159, in launch_persistent_context
skyvern-1     |     from_channel(await self._channel.send("launchPersistentContext", params)),
skyvern-1     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send
skyvern-1     |     return await self._connection.wrap_api_call(
skyvern-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
skyvern-1     |     raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
skyvern-1     | playwright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_wu3nctjp --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=547
skyvern-1     | [pid=547][err] [547:568:0901/150743.658979:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=547][err] [547:571:0901/150743.785844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=547][err] [547:571:0901/150743.785923:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=547][err] [547:568:0901/150743.789100:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789161:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789180:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789189:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789196:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [0901/150743.963302:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=547][err] [0901/150743.963365:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_wu3nctjp --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=547
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.658979:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=547][err] [547:571:0901/150743.785844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=547][err] [547:571:0901/150743.785923:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789100:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789161:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789180:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789189:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789196:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [0901/150743.963302:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=547][err] [0901/150743.963365:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     |
skyvern-1     | The above exception was the direct cause of the following exception:
skyvern-1     |
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
skyvern-1     |     await self.app(scope, receive, _send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 109, in __call__
skyvern-1     |     await response(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 270, in __call__
skyvern-1     |     async with anyio.create_task_group() as task_group:
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 597, in __aexit__
skyvern-1     |     raise exceptions[0]
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 273, in wrap
skyvern-1     |     await func()
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 134, in stream_response
skyvern-1     |     return await super().stream_response(send)
skyvern-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 262, in stream_response
skyvern-1     |     async for chunk in self.body_iterator:
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 98, in body_stream
skyvern-1     |     raise app_exc
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
skyvern-1     |     await self.app(scope, receive_or_disconnect, send_no_error)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette_context/middleware/raw_middleware.py", line 92, in __call__
skyvern-1     |     await self.app(scope, receive, send_wrapper)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
skyvern-1     |     await self.simple_response(scope, receive, send, request_headers=headers)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
skyvern-1     |     await self.app(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
skyvern-1     |     raise exc
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
skyvern-1     |     await self.app(scope, receive, sender)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
skyvern-1     |     raise e
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
skyvern-1     |     await self.app(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
skyvern-1     |     await route.handle(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
skyvern-1     |     await self.app(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 69, in app
skyvern-1     |     await response(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 174, in __call__
skyvern-1     |     await self.background()
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/background.py", line 43, in __call__
skyvern-1     |     await task()
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/background.py", line 26, in __call__
skyvern-1     |     await self.func(*self.args, **self.kwargs)
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 455, in execute_step
skyvern-1     |     await self.send_task_response(
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 1209, in send_task_response
skyvern-1     |     browser_state: BrowserState = await app.BROWSER_MANAGER.get_or_create_for_task(task)
skyvern-1     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 67, in get_or_create_for_task
skyvern-1     |     browser_state = await self._create_browser_state(task.proxy_location, task.url, task.task_id)
skyvern-1     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 39, in _create_browser_state
skyvern-1     |     ) = await BrowserContextFactory.create_browser_context(
skyvern-1     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 117, in create_browser_context
skyvern-1     |     raise UnknownErrorWhileCreatingBrowserContext(browser_type, e) from e
skyvern-1     | skyvern.exceptions.UnknownErrorWhileCreatingBrowserContext: Unknown error while creating browser context for chromium-headful. Exception type: <class 'playwright._impl._errors.TargetClosedError'> Exception message: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_wu3nctjp --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=547
skyvern-1     | [pid=547][err] [547:568:0901/150743.658979:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=547][err] [547:571:0901/150743.785844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=547][err] [547:571:0901/150743.785923:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=547][err] [547:568:0901/150743.789100:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789161:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789180:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789189:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [547:568:0901/150743.789196:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=547][err] [0901/150743.963302:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=547][err] [0901/150743.963365:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_wu3nctjp --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=547
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.658979:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=547][err] [547:571:0901/150743.785844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=547][err] [547:571:0901/150743.785923:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789100:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789161:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789180:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789189:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [547:568:0901/150743.789196:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=547][err] [0901/150743.963302:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=547][err] [0901/150743.963365:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     | error uploading: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4974cab550>: Failed to resolve 'us-api.i.posthog.com' ([Errno -2] Name or service not known)"))
skyvern-1     | error uploading: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4974b0d9d0>: Failed to resolve 'us-api.i.posthog.com' ([Errno -2] Name or service not known)"))
skyvern-1     | 2024-09-01T15:08:42.797583Z [info     ] Calling LLM API                llm_key=OPENAI_GPT4O model=gpt-4o
skyvern-1     | 2024-09-01T15:08:45.088241Z [info     ] LLM API call successful        llm_key=OPENAI_GPT4O model=gpt-4o
skyvern-1     | 2024-09-01T15:08:45.168235Z [info     ] Creating workflow from request organization_id=o_298584965585035632 title=Search for AAPL on Google Finance
skyvern-1     | 2024-09-01T15:08:45.383458Z [info     ] Created workflow from request, title: Search for AAPL on Google Finance block_labels=['Search for AAPL on Google Finance'] organization_id=o_298584965585035632 parameter_keys=['Search for AAPL on Google Finance_output', 'navigation_payload'] title=Search for AAPL on Google Finance workflow_id=w_298586663291044104
skyvern-1     | 2024-09-01T15:08:45.438859Z [info     ] Created new task               proxy_location=RESIDENTIAL task_id=tsk_298586663291044112 url=https://www.google.com/finance
skyvern-1     | 2024-09-01T15:08:45.438966Z [info     ] Executing task using background task executor task_id=tsk_298586663291044112
skyvern-1     | 2024-09-01T15:08:45.585700Z [info     ] Creating browser state for task task_id=tsk_298586663291044112
skyvern-1     | 2024-09-01T15:08:46.762040Z [error    ] Got an unexpected exception in step, fail the task step_id=stp_298586663291044114 task_id=tsk_298586663291044112
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 112, in create_browser_context
skyvern-1     |     browser_context, browser_artifacts, cleanup_func = await creator(playwright, **kwargs)
skyvern-1     |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 161, in _create_headful_chromium
skyvern-1     |     browser_context = await playwright.chromium.launch_persistent_context(**browser_args)
skyvern-1     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 14394, in launch_persistent_context
skyvern-1     |     await self._impl_obj.launch_persistent_context(
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 159, in launch_persistent_context
skyvern-1     |     from_channel(await self._channel.send("launchPersistentContext", params)),
skyvern-1     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send
skyvern-1     |     return await self._connection.wrap_api_call(
skyvern-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
skyvern-1     |     raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
skyvern-1     | playwright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_z7f2vffv --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=850
skyvern-1     | [pid=850][err] [850:867:0901/150846.292193:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=850][err] [850:870:0901/150846.414326:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=850][err] [850:870:0901/150846.414397:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=850][err] [850:867:0901/150846.417908:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.417967:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.417984:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.417993:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.418045:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [0901/150846.677906:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=850][err] [0901/150846.677973:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_z7f2vffv --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=850
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.292193:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=850][err] [850:870:0901/150846.414326:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=850][err] [850:870:0901/150846.414397:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417908:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417967:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417984:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417993:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.418045:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [0901/150846.677906:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=850][err] [0901/150846.677973:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     |
skyvern-1     | The above exception was the direct cause of the following exception:
skyvern-1     |
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 260, in execute_step
skyvern-1     |     ) = await self._initialize_execution_state(task, step, workflow_run)
skyvern-1     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 864, in _initialize_execution_state
skyvern-1     |     browser_state = await app.BROWSER_MANAGER.get_or_create_for_task(task)
skyvern-1     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 67, in get_or_create_for_task
skyvern-1     |     browser_state = await self._create_browser_state(task.proxy_location, task.url, task.task_id)
skyvern-1     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 39, in _create_browser_state
skyvern-1     |     ) = await BrowserContextFactory.create_browser_context(
skyvern-1     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 117, in create_browser_context
skyvern-1     |     raise UnknownErrorWhileCreatingBrowserContext(browser_type, e) from e
skyvern-1     | skyvern.exceptions.UnknownErrorWhileCreatingBrowserContext: Unknown error while creating browser context for chromium-headful. Exception type: <class 'playwright._impl._errors.TargetClosedError'> Exception message: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_z7f2vffv --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=850
skyvern-1     | [pid=850][err] [850:867:0901/150846.292193:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=850][err] [850:870:0901/150846.414326:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=850][err] [850:870:0901/150846.414397:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=850][err] [850:867:0901/150846.417908:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.417967:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.417984:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.417993:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [850:867:0901/150846.418045:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=850][err] [0901/150846.677906:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=850][err] [0901/150846.677973:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_z7f2vffv --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=850
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.292193:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=850][err] [850:870:0901/150846.414326:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=850][err] [850:870:0901/150846.414397:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417908:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417967:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417984:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.417993:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [850:867:0901/150846.418045:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=850][err] [0901/150846.677906:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=850][err] [0901/150846.677973:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     | 2024-09-01T15:08:46.762859Z [info     ] Updating step in db            diff={'status': {'old': <StepStatus.created: 'created'>, 'new': <StepStatus.failed: 'failed'>}} step_id=stp_298586663291044114 task_id=tsk_298586663291044112
skyvern-1     | 2024-09-01T15:08:46.833810Z [info     ] Updating task in db            diff={'status': {'old': <TaskStatus.running: 'running'>, 'new': <TaskStatus.failed: 'failed'>}, 'failure_reason': {'old': None, 'new': 'unexpected SkyvernException(UnknownErrorWhileCreatingBrowserContext)'}} task_id=tsk_298586663291044112
skyvern-1     | 2024-09-01T15:08:46.866463Z [info     ] Creating browser state for task task_id=tsk_298586663291044112
skyvern-1     | error uploading: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4974b6d9d0>: Failed to resolve 'us-api.i.posthog.com' ([Errno -2] Name or service not known)"))
skyvern-1     | 2024-09-01T15:08:48.332116Z [error    ] Unexpected error in agent server.
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 112, in create_browser_context
skyvern-1     |     browser_context, browser_artifacts, cleanup_func = await creator(playwright, **kwargs)
skyvern-1     |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 161, in _create_headful_chromium
skyvern-1     |     browser_context = await playwright.chromium.launch_persistent_context(**browser_args)
skyvern-1     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/async_api/_generated.py", line 14394, in launch_persistent_context
skyvern-1     |     await self._impl_obj.launch_persistent_context(
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_browser_type.py", line 159, in launch_persistent_context
skyvern-1     |     from_channel(await self._channel.send("launchPersistentContext", params)),
skyvern-1     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 59, in send
skyvern-1     |     return await self._connection.wrap_api_call(
skyvern-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/playwright/_impl/_connection.py", line 514, in wrap_api_call
skyvern-1     |     raise rewrite_error(error, f"{parsed_st['apiName']}: {error}") from None
skyvern-1     | playwright._impl._errors.TargetClosedError: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_22x8rgxg --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=894
skyvern-1     | [pid=894][err] [894:913:0901/150847.950844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=894][err] [894:916:0901/150848.094309:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=894][err] [894:916:0901/150848.094373:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=894][err] [894:913:0901/150848.097527:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097586:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097610:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097627:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097639:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [0901/150848.262841:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=894][err] [0901/150848.262911:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_22x8rgxg --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=894
skyvern-1     |   - [pid=894][err] [894:913:0901/150847.950844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=894][err] [894:916:0901/150848.094309:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=894][err] [894:916:0901/150848.094373:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097527:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097586:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097610:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097627:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097639:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [0901/150848.262841:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=894][err] [0901/150848.262911:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     |
skyvern-1     | The above exception was the direct cause of the following exception:
skyvern-1     |
skyvern-1     | Traceback (most recent call last):
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
skyvern-1     |     await self.app(scope, receive, _send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 109, in __call__
skyvern-1     |     await response(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 270, in __call__
skyvern-1     |     async with anyio.create_task_group() as task_group:
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 597, in __aexit__
skyvern-1     |     raise exceptions[0]
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 273, in wrap
skyvern-1     |     await func()
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 134, in stream_response
skyvern-1     |     return await super().stream_response(send)
skyvern-1     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 262, in stream_response
skyvern-1     |     async for chunk in self.body_iterator:
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 98, in body_stream
skyvern-1     |     raise app_exc
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/base.py", line 70, in coro
skyvern-1     |     await self.app(scope, receive_or_disconnect, send_no_error)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette_context/middleware/raw_middleware.py", line 92, in __call__
skyvern-1     |     await self.app(scope, receive, send_wrapper)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 91, in __call__
skyvern-1     |     await self.simple_response(scope, receive, send, request_headers=headers)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 146, in simple_response
skyvern-1     |     await self.app(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
skyvern-1     |     raise exc
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
skyvern-1     |     await self.app(scope, receive, sender)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
skyvern-1     |     raise e
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
skyvern-1     |     await self.app(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
skyvern-1     |     await route.handle(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
skyvern-1     |     await self.app(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 69, in app
skyvern-1     |     await response(scope, receive, send)
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/responses.py", line 174, in __call__
skyvern-1     |     await self.background()
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/background.py", line 43, in __call__
skyvern-1     |     await task()
skyvern-1     |   File "/usr/local/lib/python3.11/site-packages/starlette/background.py", line 26, in __call__
skyvern-1     |     await self.func(*self.args, **self.kwargs)
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 455, in execute_step
skyvern-1     |     await self.send_task_response(
skyvern-1     |   File "/app/skyvern/forge/agent.py", line 1209, in send_task_response
skyvern-1     |     browser_state: BrowserState = await app.BROWSER_MANAGER.get_or_create_for_task(task)
skyvern-1     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 67, in get_or_create_for_task
skyvern-1     |     browser_state = await self._create_browser_state(task.proxy_location, task.url, task.task_id)
skyvern-1     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_manager.py", line 39, in _create_browser_state
skyvern-1     |     ) = await BrowserContextFactory.create_browser_context(
skyvern-1     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
skyvern-1     |   File "/app/skyvern/webeye/browser_factory.py", line 117, in create_browser_context
skyvern-1     |     raise UnknownErrorWhileCreatingBrowserContext(browser_type, e) from e
skyvern-1     | skyvern.exceptions.UnknownErrorWhileCreatingBrowserContext: Unknown error while creating browser context for chromium-headful. Exception type: <class 'playwright._impl._errors.TargetClosedError'> Exception message: BrowserType.launch_persistent_context: Target page, context or browser has been closed
skyvern-1     | Browser logs:
skyvern-1     |
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_22x8rgxg --remote-debugging-pipe about:blank
skyvern-1     | <launched> pid=894
skyvern-1     | [pid=894][err] [894:913:0901/150847.950844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=894][err] [894:916:0901/150848.094309:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=894][err] [894:916:0901/150848.094373:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     | [pid=894][err] [894:913:0901/150848.097527:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097586:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097610:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097627:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [894:913:0901/150848.097639:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     | [pid=894][err] [0901/150848.262841:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     | [pid=894][err] [0901/150848.262911:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     | Call log:
skyvern-1     | <launching> /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_22x8rgxg --remote-debugging-pipe about:blank
skyvern-1     |   - <launched> pid=894
skyvern-1     |   - [pid=894][err] [894:913:0901/150847.950844:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=894][err] [894:916:0901/150848.094309:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=894][err] [894:916:0901/150848.094373:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097527:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097586:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097610:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097627:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [894:913:0901/150848.097639:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
skyvern-1     |   - [pid=894][err] [0901/150848.262841:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
skyvern-1     |   - [pid=894][err] [0901/150848.262911:ERROR:file_io_posix.cc(145)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
skyvern-1     |
skyvern-1     | error uploading: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4974b9ecd0>: Failed to resolve 'us-api.i.posthog.com' ([Errno -2] Name or service not known)"))
skyvern-1     | error uploading: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f4974bb28d0>: Failed to resolve 'us-api.i.posthog.com' ([Errno -2] Name or service not known)"))
suchintan commented 1 week ago

Hmm this is interesting -- we will take a look. It seems like there's an issue running Chrome

sameerimperium commented 1 week ago

@suchintan any updates? from what I could gather from the logs, it seems that the browser doesn't have permissions to open up, which is quite peculiar given that we are running it from docker and it should provide the same environment that you used to test the image. Maybe a dependency is missing from the docker image?

suchintan commented 6 days ago

@sameerimperium no updates right now -- I don't have a windows computer so it's not trivial for me to test this

Are you able to ssh into your docker image and run this?

/root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding,PlzDedicatedWorker --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --unsafely-disable-devtools-self-xss-warnings --no-sandbox --disable-blink-features=AutomationControlled --disk-cache-size=1 --start-maximized --user-data-dir=/tmp/skyvern_browser_22x8rgxg --remote-debugging-pipe about:blank

What's the output you get? Would be super helpful to understand

I wonder if it's an issue with xvbf + docker + windows

antoniotorresresoluciona commented 5 days ago

@suchintan I get this same error, I have run the code and I get: "/bin/sh: 1: /root/.cache/ms-playwright/chromium-1129/chrome-linux/chrome: not found"

suchintan commented 4 days ago

@antoniotorresresoluciona are you also running on Windows? I wonder if the cache gets blown away after each run