Current time: 06-24-2017, 05:01 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Many getwork.php files
04-30-2017, 08:07 AM (This post was last modified: 04-30-2017 08:09 AM by ShaneLabs.)
Post: #1
Many getwork.php files
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
Find all posts by this user
Quote this message in a reply
05-12-2017, 11:03 PM
Post: #2
RE: Many getwork.php files
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-18-2017, 02:42 AM
Post: #3
RE: Many getwork.php files
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)