In init.php, realpath(),
print_r($newpath, true)
is blowing up just before
$finalpath = $root.implode('/',$newpath);
[10-Jun-2019 16:24:37 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2264098279424 bytes) in C:\Inetpub\vhosts\thegarnet.net\httpdocs\inc\init.php on line (of the print_r)
I am trying to filter out the spurious errors from elsewhere that I mentioned above, but came across this one that seemed interesting. Why is indexer.php trying to open a tmp file with a * in the name????
[10-Jun-2019 16:50:34 UTC] shutDownFunction(d): Array
(
[type] => 2
[message] => fopen(C:/Inetpub/vhosts/thegarnet.net/httpdocs/data/index/i5*2.tmp): failed to open stream: Operation not permitted
[file] => C:\Inetpub\vhosts\thegarnet.net\httpdocs\inc\indexer.php
[line] => 1096
)
Repeatedly refreshing the same short page in the wiki, just got me a rare 500 internal server error page. Of course nothing shows up in the php_error.log for this.... in the directory domain\logs\iis\W3SVC14 I have a 9MB u_extend14.log started 3 hours ago.
2019-06-10 16:50:33 74.208.247.98 GET /doku.php id=archive:old_websites:start 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:garnetchaney.com:start&do=admin&page=config www.thegarnet.net 200 0 0 26353 953 892
2019-06-10 16:50:33 74.208.247.98 GET /lib/exe/fetch.php media=wiki:spider.256.jpg 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 500 0 3221225477 13116 886 836
2019-06-10 16:50:35 74.208.247.98 GET /lib/exe/taskrunner.php id=archive%3Aold_websites%3Astart&1560185433 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 0 367 809 1149
2019-06-10 16:50:35 74.208.247.98 GET /lib/exe/css.php t=dokuwiki&tseed=24dc6c145d52ed0ddff8e7552d274c93 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 0 171475 786 1153
2019-06-10 16:50:35 74.208.247.98 GET /lib/tpl/dokuwiki/images/favicon.ico - 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 0 7707 820 62
2019-06-10 16:50:35 74.208.247.98 GET /lib/exe/manifest.php - 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 500 0 3221225477 13116 386 384
-----
2019-06-10 16:56:47 74.208.247.98 GET /doku.php id=archive:old_websites:start 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:garnetchaney.com:start&do=admin&page=config www.thegarnet.net 200 0 0 26369 953 1121
2019-06-10 16:56:47 74.208.247.98 GET /lib/exe/fetch.php media=wiki:spider.256.jpg 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 0 9539 785 265
2019-06-10 16:56:47 74.208.247.98 GET /lib/exe/taskrunner.php id=archive%3Aold_websites%3Astart&1560185807 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 500 0 3221225477 13116 809 888
2019-06-10 16:56:47 74.208.247.98 GET /lib/tpl/dokuwiki/images/favicon.ico - 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 0 7707 820 80
2019-06-10 16:56:49 74.208.247.98 GET /lib/exe/manifest.php - 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 0 858 386 219
-----
2019-06-10 16:57:08 74.208.247.98 GET /doku.php id=archive:old_websites:start 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:garnetchaney.com:start&do=admin&page=config www.thegarnet.net 200 0 0 26369 953 706
2019-06-10 16:57:08 74.208.247.98 GET /lib/exe/fetch.php media=wiki:spider.256.jpg 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 304 0 0 396 886 348
2019-06-10 16:57:10 74.208.247.98 GET /lib/exe/taskrunner.php id=archive%3Aold_websites%3Astart&1560185828 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:start www.thegarnet.net 200 0 64 0 809 2456
-----
2019-06-10 16:57:11 74.208.247.98 GET /doku.php id=archive:old_websites:start 443 - 98.248.142.26 HTTP/2.0 Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_14_4)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 https://www.thegarnet.net/doku.php?id=archive:old_websites:garnetchaney.com:start&do=admin&page=config www.thegarnet.net 500 0 3221225477 13116 953 404
It looks like there is about a random 20% chance of dieing with 500 server error any of the 4 or 5 requests of the server to browse a single page. It seems like each of the scripts involved has died in one request or another.