mother-of-all-self-hosting/mash-playbook

Change Detection - Playwright Driver Issues & Proposed Fixes

Closed this issue · 1 comments

There are two problems with ansible-role-changedetection regarding the playwright driver

I was able to mess around with a couple files on my local instance to get things working.

The first issue is this error: chrome_crashpad_handler: --database is required which can be fixed by adding the following environment variables to the container /mash/changedetection/playwright-env

XDG_CONFIG_HOME=/tmp/.chromium
XDG_CACHE_HOME=/tmp/.chromium

The second issue is this error: TargetCloseError: Protocol error (Target.setAutoAttach): Target closed which can be fixed by modifying the tmpfs flag specified in the Systemd unit file

This is the original:

--tmpfs=/tmp:rw,noexec,nosuid,size=128m \

And this is modified flag, which results in a working container:

--tmpfs=/tmp:rw,noexec,nosuid,size=512m \

It is not clear to me why increasing this value fixes the problem, I only discovered so by changing a bunch of things randomly until it worked.

Soon I will make a merge request in ansible-role-changedetection, but wanted to atleast document by findings in the meantime