vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.21k stars 139 forks source link

`PWDEBUG=1` does not work in docker image #217

Open vogler opened 10 months ago

vogler commented 10 months ago

Works without docker. Inside docker it complains about chromium not being installed (instead of firefox):

$ docker run --rm -it -p 6080:6080 -v fgc:/fgc/data -e DRYRUN=1 -e PWDEBUG=1  ghcr.io/vogler/free-games-claimer node epic-games
Version: https://github.com/vogler/free-games-claimer/tree/41f1f9550964563df64e6535b0c2752c944c0c46
Build: Mon, 18 Sep 2023 12:03:07 +0000
Xvfb display server created screen with resolution 1920x1080
VNC is running on port 5900 (no password!)
noVNC (VNC via browser) is running on http://localhost:6080

2023-09-18 13:35:57.441 started checking epic-games
node:internal/process/esm_loader:48
      internalBinding('errors').triggerUncaughtException(
                                ^

browserType.launchPersistentContext:
╔═══════════════════════════════════════════════════╗
║ No chromium-based browser found on the system.    ║
║ Please run the following command to download one: ║
║                                                   ║
║     npx playwright install chromium               ║
║                                                   ║
║ <3 Playwright Team                                ║
╚═══════════════════════════════════════════════════╝
=========================== logs ===========================
<launching> /root/.cache/ms-playwright/firefox-1424/firefox/firefox -no-remote -wait-for-browser -foreground -profile /fgc/data/browser -juggler-pipe --hide-crash-restore-bubble about:blank
<launched> pid=223
[pid=223][out] console.warn: services.settings: Ignoring preference override of remote settings server
[pid=223][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
[pid=223][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.46042) [GFX1-]: glxtest: libpci missing
[pid=223][out] Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: libpci missing (t=0.46042) |[1][GFX1-]: glxtest: libEGL missing (t=0.460511) [GFX1-]: glxtest: libEGL missing
[pid=223][out]
[pid=223][out] Juggler listening to the pipe
============================================================
    at async file:///fgc/epic-games.js:23:17

Node.js v20.6.0