[CollEc] PetalBot
Thomas Krichel
krichel at openlib.org
Sun May 14 13:38:47 UTC 2023
I have just dogged another crisis.
Seemingly PetalBut make requests at accelerating speed. Then we hit
a problem where I may not be able to kill nginx
root at helos ~ # systemctl stop nginx
Failed to allocate directory watch: Too many open files
After that,
root at helos ~ # ps axf | grep nginx
804800 pts/2 S+ 0:00 \_ grep nginx
so it may not run any more, but repeating the nginx shoutdown shows
the same warning
And then, a few minutes after that, helos starts runing again.
I added
# case sensitive matching
if ($http_user_agent ~ (PetalBot)) {
return 403;
}
to
/etc/nginx/sites-available/collec.repec.org
That may keep them out. Then killing the containers (????)
root at helos ~ # killall -9 containerd-shim-runc-v2
and
root at helos ~ # systemctl start nginx
--
Written by Thomas Krichel http://openlib.org/home/krichel on his 21163rd day.
More information about the CollEc-run
mailing list