Oldiesmann
Basic Pleskian
- Server operating system version
- Ubuntu 20.04 LTS
- Plesk version and microupdate number
- 18.0.42 Update #1
I've been getting emails related to a cron job which is apparently supposed to call a Python script to shrink the ModSecurity SDBM database (at least I assume that's what it's for since I found a similar utility on GitHub). Originally I was getting an error saying that the path to the python binary it was trying to call didn't exist (/opt/alt/python38/bin/python3), so I created a symlink to take care of that, but now it's saying that the script it's trying to call doesn't exist either.
A search of the server using the locate command reveals that not only is there no "shrinker.py" script anywhere, there's also no "/opt/alt/modsec-sdbm-util" directory either. This cron job is defined in the file /etc/cron.d/shrinker-cron, and I've moved the file outside of that directory for now, but is there a way to actually obtain this shrinker.py script anywhere?
Code:
/usr/bin/flock -n /var/run/shrinker.lock /opt/alt/python38/bin/python3 /opt/alt/modsec-sdbm-util/bin/shrinker.py > /dev/null
/opt/alt/python38/bin/python3: can't open file '/opt/alt/modsec-sdbm-util/bin/shrinker.py': [Errno 2] No such file or directory
A search of the server using the locate command reveals that not only is there no "shrinker.py" script anywhere, there's also no "/opt/alt/modsec-sdbm-util" directory either. This cron job is defined in the file /etc/cron.d/shrinker-cron, and I've moved the file outside of that directory for now, but is there a way to actually obtain this shrinker.py script anywhere?