Add --no-sandbox for root

This commit is contained in:
cuom1999 2021-05-30 15:44:41 -05:00
parent d313c4d3a1
commit 49d446470e

View file

@ -288,6 +288,7 @@ class SeleniumPDFRender(BasePdfMaker):
def _make(self, debug):
options = webdriver.ChromeOptions()
options.add_argument("--headless")
options.add_argument("--no-sandbox") # for root
options.binary_location = settings.SELENIUM_CUSTOM_CHROME_PATH
browser = webdriver.Chrome(settings.SELENIUM_CHROMEDRIVER_PATH, options=options)