Add --no-sandbox for root
This commit is contained in:
parent
d313c4d3a1
commit
49d446470e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue