Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create browser in Windows WSL Docker #733

Closed
sameerimperium opened this issue Aug 26, 2024 · 17 comments
Closed

Failed to create browser in Windows WSL Docker #733

sameerimperium opened this issue Aug 26, 2024 · 17 comments

Comments

@sameerimperium
Copy link

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
Copy link
Author

sameerimperium commented Aug 26, 2024

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
Copy link
Author

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

@0xrushi
Copy link

0xrushi commented Sep 1, 2024

+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
Copy link
Contributor

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

@sameerimperium
Copy link
Author

@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
Copy link
Contributor

@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
Copy link

antoniotorresresoluciona commented Sep 10, 2024

@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
Copy link
Contributor

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

@haraldrohan
Copy link

Same here, when I run the statement mentioned by you above, inside the docker terminal, it gives me:

[1001/063502.635605:ERROR:chrome_main_delegate.cc(1283)] Remote debugging pipe file descriptors are not open.

@LawyZheng
Copy link
Collaborator

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

Can you try it with MacOS or non-wsl Ubuntu?

@wintonzheng
Copy link
Contributor

cypress-io/cypress#4925
microsoft/WSL#7915

These issues seem to be related after googling. We'll look into this issue this week

@haraldrohan
Copy link

I can confirm it happens only on windows and wsl-Ubuntu, not on native Ubuntu.

@LawyZheng
Copy link
Collaborator

I can confirm it happens only on windows and wsl-Ubuntu, not on native Ubuntu.

Great. Thanks a lot. We'll take a look.

@LawyZheng LawyZheng changed the title Unknown error while creating browser Failed to create browser in Windows Docker Oct 7, 2024
@LawyZheng LawyZheng changed the title Failed to create browser in Windows Docker Failed to create browser in Windows WSL Docker Oct 7, 2024
@LawyZheng
Copy link
Collaborator

Hi, we found it was caused by a change in our docker-compose.yml file.
I just launched the fix for it at #956

Could you please use the latest docker-compose.yml to try Skyvern in your local again?
LMK if the issue is still existing.

@suchintan
Copy link
Contributor

🤦

@haraldrohan
Copy link

I can confirm - the latest docker-compose.yml fixes the issue.
Thanks a lot for your effort.

@wintonzheng
Copy link
Contributor

I've made a new release v0.1.30. The latest image build public.ecr.aws/skyvern/skyvern:v0.1.29 or public.ecr.aws/skyvern/skyvern:v0.1.29 should work for WSL now.

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

No branches or pull requests

9 participants
@suchintan @wintonzheng @0xrushi @haraldrohan @LawyZheng @antoniotorresresoluciona @sameerimperium and others