From 513a28539d8deba3e4d7f58e4e6b68f908ccb6ca Mon Sep 17 00:00:00 2001 From: Stefan Heyn Date: Wed, 4 Mar 2026 16:27:54 +0100 Subject: [PATCH] Fix noVNC startup and pin Playwright version for container compatibility --- README.md | 3 ++- requirements.txt | 2 +- scripts/start-novnc-configure.sh | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b519063..a8586e6 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ Die Session liegt anschließend in `./state/storage_state.json`. Session auf Ubuntu Server ohne GUI (noVNC): ```bash -docker compose --profile configure-novnc up --build amazon-invoice-configure-novnc +docker compose --profile configure-novnc build --no-cache amazon-invoice-configure-novnc +docker compose --profile configure-novnc up amazon-invoice-configure-novnc ``` Dann im Browser auf deinem PC oeffnen: diff --git a/requirements.txt b/requirements.txt index c1bd75c..ef33677 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -playwright>=1.52.0 +playwright==1.52.0 dateparser>=1.2.0 diff --git a/scripts/start-novnc-configure.sh b/scripts/start-novnc-configure.sh index ffec7ff..a3a3f14 100644 --- a/scripts/start-novnc-configure.sh +++ b/scripts/start-novnc-configure.sh @@ -8,12 +8,12 @@ MARKETPLACE=${MARKETPLACE:-de} DOWNLOAD_DIR=${DOWNLOAD_DIR:-/downloads} LOGIN_WAIT_SECONDS=${LOGIN_WAIT_SECONDS:-300} +export DISPLAY="$DISPLAY_NUM" + Xvfb "$DISPLAY_NUM" -screen 0 1920x1080x24 & fluxbox -display "$DISPLAY_NUM" & x11vnc -display "$DISPLAY_NUM" -forever -shared -rfbport "$VNC_PORT" -nopw & -/usr/share/novnc/utils/novnc_proxy --vnc localhost:"$VNC_PORT" --listen "$NOVNC_PORT" & - -export DISPLAY="$DISPLAY_NUM" +websockify --web=/usr/share/novnc/ "$NOVNC_PORT" "localhost:$VNC_PORT" & echo "noVNC bereit unter: http://:$NOVNC_PORT/vnc.html" echo "Melde dich bei Amazon an. Session wird nach $LOGIN_WAIT_SECONDS Sekunden gespeichert."