Ja, ein LXC unter Proxmox, Ubuntu 22 Server Template.
Habe erneut den Container frisch gemacht, libnss3 installiert und es erneut versucht, wieder ein anderer Fehler.
Christian, ich will dich nicht dauer-beschäftigen. Im Grunde ist das PDF aus deiner Dropbox für mich ausreichend. Es ist mehr der Trieb der Neugier, dass ich nun gerne wüsste, woran es liegt… Ich hätte also Verständnis dafür, wenn du sagst, dass dir das im Moment zuviel ist.
Jetzt der Fehler aus der Konsole:
(.venv) root@ubuntu22:~/polestar-manual# python main.py --chromium-binary 982481/chrome-linux/chrome
[WDM] - ====== WebDriver manager ======
[WDM] - There is no [linux64] chromedriver for browser in cache
[WDM] - About to download new driver from https://chromedriver.storage.googleapis.com/101.0.4951.41/chromedriver_linux64.zip
[WDM] - Driver has been saved in cache [/root/.wdm/drivers/chromedriver/linux64/101.0.4951.41]
Traceback (most recent call last):
File "/root/polestar-manual/main.py", line 37, in <module>
pshtml2pdf.fetch_manual(args.url, workdir, args.chromium_binary)
File "/root/polestar-manual/pshtml2pdf.py", line 254, in fetch_manual
driver = setup_driver(tocurl, chrome_binary=chrome_binary)
File "/root/polestar-manual/pshtml2pdf.py", line 40, in setup_driver
driver = webdriver.Chrome(service=driver_service, options=driver_options)
File "/root/polestar-manual/.venv/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in __init__
super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
File "/root/polestar-manual/.venv/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in __init__
RemoteWebDriver.__init__(
File "/root/polestar-manual/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 275, in __init__
self.start_session(capabilities, browser_profile)
File "/root/polestar-manual/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 365, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/root/polestar-manual/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "/root/polestar-manual/.venv/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location 982481/chrome-linux/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:
#0 0x55d8b4576533 <unknown>
#1 0x55d8b42d51e8 <unknown>
#2 0x55d8b42f854a <unknown>
#3 0x55d8b42f3c4a <unknown>
#4 0x55d8b432ed0a <unknown>
#5 0x55d8b4328e33 <unknown>
#6 0x55d8b42fe71a <unknown>
#7 0x55d8b42ff875 <unknown>
#8 0x55d8b45bae1d <unknown>
#9 0x55d8b45be751 <unknown>
#10 0x55d8b45a507e <unknown>
#11 0x55d8b45bf388 <unknown>
#12 0x55d8b4599fe0 <unknown>
#13 0x55d8b45db748 <unknown>
#14 0x55d8b45db8c8 <unknown>
#15 0x55d8b45f570d <unknown>
#16 0x7ff888b98b43 <unknown>
Vielleicht sind es aber Settings des Containers selber. Es ist ein unprivilegierter LXC, nesting und keyctl=1
Mit dem basis ubuntu template hatte ich danach erst mal ein apt update && apt dist-upgrade
gemacht, anschließend noch
apt install curl
apt install git
apt install unzip
apt install python3.10-venv
apt install libnss3
Ab dann gehe ich deine Steps einzeln durch und lande am Ende bei obigem Output…