WebPagetest Forums
mkdir errors - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: mkdir errors (/showthread.php?tid=12891)

mkdir errors - drwells - 04-01-2014 12:15 PM

[Tue Apr 01 02:00:35 2014] [error] [client] PHP Warning:  mkdir(): No such file or directory in /opt/.webpagetest.versions/webpagetest_2.13/www/work/resultimage.php on line 58
[Tue Apr 01 02:00:35 2014] [error] [client] PHP Warning:  move_uploaded_file(./results/14/04/01/Y9/1G/video_9/frame_0029.hist): failed to open stream: No such

I noticed these errors and realized it hadn't build the 04/01 directory. What is responsible for making this directory? Should this code be making that directory rather than relying on a scheduled job to do it?

RE: mkdir errors - pmeenan - 04-02-2014 07:24 AM

The directory for the test should be created as soon as the test itself is created (in runtest.php). It would be really bizarre to start getting results for a test that wasn't yet created. It's possible that something came in and deleted it before the test ran but the archiving script shouldn't do that.