-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
Recently messages like the one below started showing up in the DTS logs.
OSSEC HIDS Notification.
2016 Sep 08 12:27:25
Received From: (dts) any->/var/log/apache2/error.log
Rule: 31412 fired (level 5) -> "PHP internal error (missing file)."
Portion of the log(s):
[Thu Sep 08 12:27:25 2016] [error] [client 141.142.60.37] PHP Warning: file_get_contents(http://dts.ncsa.illinois.edu:9000/api/extractions//status): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found\r\n in /var/www/dts/extract.php on line 29
--END OF NOTIFICATION
- file_id is missing from the request http://dts.ncsa.illinois.edu:9000/api/extractions//status
- There is a while loop in vat/www/dts/tests.py that may need to be changed.
#Poll until output is ready (optional)
|
while wait > 0: |
status = requests.get('http://' + host + ':' + port + '/api/extractions/' + file_id + '/status?key=' + key).json() |
if status['Status'] == 'Done': break |
time.sleep(1) |
wait -= 1 |