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

chromote failing to launch in Workbench #150

Open
skyeturriff opened this issue Mar 18, 2024 · 1 comment
Open

chromote failing to launch in Workbench #150

skyeturriff opened this issue Mar 18, 2024 · 1 comment

Comments

@skyeturriff
Copy link

From rstudio/rstudio#12960 (comment)

A support customer in ticket# 102034 is seeing errors in certain environments when creating chromote sessions:

Installed Packages
Name : chromium
Version : 121.0.6167.160
Release : 1.el8
Architecture : x86_64
Size : 277 M
Source : chromium-121.0.6167.160-1.el8.src.rpm
Repository : @System
From repo : epel
Summary : A WebKit (Blink) powered web browser that Google doesn't want you to use
URL : http://www.chromium.org/Home
License : BSD-3-Clause AND LGPL-2.1-or-later AND Apache-2.0 AND IJG AND MIT AND GPL-2.0-or-later AND ISC AND OpenSSL AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.0-only)
Description : Chromium is an open-source web browser, powered by WebKit (Blink).
> library(chromote)
> packageVersion('chromote')
[1] ‘0.2.0>
> chromote::find_chrome()
[1] "/usr/lib64/chromium-browser/chromium-browser"
>
> b <- ChromoteSession$new()
Error in `with_random_port()`:
! Cannot find an available port. Please try again.
Caused by error in `startup()`:
! Failed to start chrome. Error:
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/error_no_available_port>
Error in `with_random_port()`:
! Cannot find an available port. Please try again.
Caused by error in `startup()`:
! Failed to start chrome. Error:
---
Backtrace:1. └─ChromoteSession$new()
2. └─chromote (local) initialize(...)
3. └─chromote::default_chromote_object()
4. ├─chromote::set_default_chromote_object(Chromote$new())
5. └─Chromote$new()
6. └─chromote (local) initialize(...)
7. └─Chrome$new()
8. └─chromote (local) initialize(...)
9. └─chromote:::launch_chrome(path, args)
10. └─chromote:::with_random_port(launch_chrome_impl, path = path, args = args)
Run rlang::last_trace(drop = FALSE) to see 1 hidden frame.
@lachlansimpson
Copy link

Question also raised in internal ticket 107682, in which they linked to their solution:
rstudio/rstudio#12960 (comment)

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

No branches or pull requests

2 participants