The errors in Google cloud are typically lines stating:
Error in with_random_port()
! Cannot find an available port. Please try again.
Caused by error in startup()
Failed to start chrome. Error
Old Headless mode will be removed from the Chrome binary soon.
Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless)
or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
As mentioned previously, this runs correctly from Macosx generally without issue (if the HTML file is too large it may a timeout and fail but works great for HTML files of normal size).
Any insight into how to make this work in Google Cloud Run per the errors above would be keenly appreciated! thank-you in advance.
Thanks for writing an excellent library!
chromote
to generate a pdf file from HTML/CSS.Chrome is installed via Dockerfile based on
rocker/r-ver:4.3.2
.Relevant parts of the Dockerfile for the DISPLAY env variable setting:
and chrome installation:
And
chromote
is used as follows from the R session:The errors in Google cloud are typically lines stating:
As mentioned previously, this runs correctly from Macosx generally without issue (if the HTML file is too large it may a timeout and fail but works great for HTML files of normal size).
Any insight into how to make this work in Google Cloud Run per the errors above would be keenly appreciated! thank-you in advance.