flathunters / flathunter

A bot to help people with their rental real-estate search. 🏠🤖

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebDriverException: Message: unknown error: session deleted because of page crash [docker]

Alexandero89 opened this issue · comments

I got a lot of "WebDriverException: Message: unknown error: session deleted because of page crash" errors while running flathunter inside a docker container.
And referring to this stackoverflow answer it's because of a too small /dev/shm partition for docker.

Will post a PR soon.

One of the mentioned solutions that worked for me was the chromeoption '--disable-dev-shm-usage', so chromium is only using the disk instead of the /dev/shm (RAM), but that option would also have an impact on the users who are not running flathunter inside docker.

The better way would be to increase the /dev/shm size in docker-compose.yml to 512mb.
It looks like it is rather a "maximum usable" value and the container does not necessarily allocate 512mb ram while running (see picture)
Bildschirmfoto vom 2024-02-12 18-42-02