WebPagetest Forums
Many getwork.php files - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Many getwork.php files (/showthread.php?tid=14874)



Many getwork.php files - ShaneLabs - 04-30-2017 08:07 AM

Does anyone know what would cause thousands of getwork.php files to be duplicated in the /var/www directory? Here's an image:

[Image: E3j0WhA.png]

They're all empty, various dates spanning months since I first created the server. Are these lock files that aren't able to be deleted due to permissions or something?

Thanks,
Shane


RE: Many getwork.php files - pmeenan - 05-12-2017 11:03 PM

They aren't lock files. Is that the server AMI?

If I had to guess, I may have screwed up the crontab entry that makes fake requests to getwork.php to allow the cron jobs to run without any agents present. If it is doing a wget it may be missing -O /dev/null. Check crontab-e and see what the cron job looks like.


RE: Many getwork.php files - ShaneLabs - 05-18-2017 02:42 AM

Yes, I am using the server AMI - and yup, just checked the crontab for www-data user and the entry read:
/usr/bin/wget "http://127.0.0.1/work/getwork.php" > /dev/null 2>&1

I updated with the -O to read:
/usr/bin/wget -O /dev/null "http://127.0.0.1/work/getwork.php" 2>&1

I'll delete those existing files and see if they come back.

BTW - good to know there's a cron entry that allows the server to run appropriately without polling agents - great idea.