problem with getwork.php

Hi,

I have installed webpagetest v1.9 on Apache+Tomcat and excuted urlBlast on XP.

I can see hosted webpagetest (host XX.XX.XX.218) site. but when I run urlBlast (client XX.XX.XX.216) following error occurred on apache.

[Thu Sep 02 00:01:59 2010] [error] [client XX.XX.XX.216] PHP Warning: mkdir(): Permission denied in /usr/local/tomcat6/webapps/ROOT/wpt/content/work/getwork.php on line 28
[Thu Sep 02 00:01:59 2010] [error] [client XX.XX.XX.216] PHP Warning: fopen(./times/Test.tm): failed to open stream: No such file or directory in /usr/local/tomcat6/webapps/ROOT/wpt/content/work/getwork.php on line 29
[Thu Sep 02 00:01:59 2010] [error] [client XX.XX.XX.216] PHP Warning: fopen(/usr/local/tomcat6/webapps/ROOT/wpt/content/work/test/lock.dat): failed to open stream: No such file or directory in /usr/local/tomcat6/webapps/ROOT/wpt/content/work/getwork.php on line 34

My urlblast.ini like this:

[Configuration]

Test Type=4
Startup Delay=30
Log File=D:\03_Performance\Front-End\Web Site\log
Thread Count=1
Timeout=60
Reboot Interval=720
Clear Cache Interval=30
browser=pagetest.exe

; Where to get work from
Url Files Url=http://XX.XX.XX.218/work/
Location=Test
Location Key=qa4

and my location.ini like this

[locations]
1=Test_loc
default=Test_loc

[Test_loc]
1=Test
default=Test
label=Test Location

[Test]
browser=IE 7
latency=0
label=“Test Location 1”
localDir=/usr/local/tomcat6/webapps/ROOT/wpt/content/work/test
key=qa4

I guess this is permission problem with httpd.conf
But i don’t know exactly what i do.

Any help on this would be gratefully appreciated.
Thanks always for great tool and you.

What are the filesystem permissions on the server? If I were a betting man I’d say that that is where the problem is. btw, what is Tomcat there for (some other apps I hope)? I’ve run it both with mod_php and php as a cgi and both work fine as long as the apache user has permission to write to the directory.

Thanks for answer. Patrick!

Install with root permission. php didn’t write file.
I have changed directory permission by chown.
Now newtest running.

But test result empty
[attachment=53]

on the test machine you can set a variable to enable debugging in urlblast. Just add:

debug=1

to urlblast.ini and the log file will have a lot more information about what it is doing.

Did you install the dummynet driver on the test machine and run ipfw.cmd? If not that will also cause tests to not run. It does look like the server can write to the results directory otherwise you wouldn’t get test progress and state information.

Thank you patrick!

It works!! ^^

Yes, I didn’t install dummynet driver

thank very very much!

I am facing the same problem … My device is windows 8.
I did not understand which folder I should give full permissions.

my access logs are

127.0.0.1 - - [15/Jan/2015:13:37:24 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:37:39 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:37:56 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:38:11 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:38:28 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:38:43 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:39:00 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:39:15 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:39:32 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:39:47 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:40:04 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:40:19 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:40:36 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:40:51 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:41:08 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:41:24 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:41:39 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:41:56 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:42:11 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:42:28 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:42:44 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:42:59 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:43:16 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:43:31 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664
127.0.0.1 - - [15/Jan/2015:13:43:48 +0900] “GET /testStatus.php?f=json&pos=1&test=150115_9W_2 HTTP/1.1” 200 664

Are you running a test agent? I don’t see any access.log entries for getwork.php which is a sign that either wptdriver.exe or urlblast.exe are not running or they are not configured to talk to the server correctly.

HI Patrick,

oh sorry, the below are the access logs. It has entries for getwork.php

both wptdriver.exe and urlblast.exe are running.

127.0.0.1 - - [16/Jan/2015:11:16:41 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.795&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:16:47 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.795&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:16:53 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.795&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:16:54 +0900] “POST /runtest.php HTTP/1.1” 302 -
127.0.0.1 - - [16/Jan/2015:11:16:55 +0900] “GET /result/150116_HE_K/ HTTP/1.1” 200 7302
127.0.0.1 - - [16/Jan/2015:11:16:55 +0900] “GET /images/status_waiting.png HTTP/1.1” 200 1694
127.0.0.1 - - [16/Jan/2015:11:16:59 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.796&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 93
127.0.0.1 - - [16/Jan/2015:11:17:01 +0900] “POST /work/workdone.php HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:17:03 +0900] “GET /work/postprocess.php?test=150116_HE_K HTTP/1.0” 200 -
127.0.0.1 - - [16/Jan/2015:11:17:03 +0900] “POST /work/workdone.php HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:17:03 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.796&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:17:09 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.795&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /testStatus.php?f=json&pos=1&test=150116_HE_K HTTP/1.1” 200 729
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /result/150116_HE_K/ HTTP/1.1” 200 10753
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /pagestyle.css?v=67 HTTP/1.1” 200 15206
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /js/site.js?v=31 HTTP/1.1” 200 252095
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /images/logo_private.png HTTP/1.1” 200 5967
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /images/gloss30.png?v=2 HTTP/1.1” 200 114
127.0.0.1 - - [16/Jan/2015:11:17:10 +0900] “GET /images/favicon.png HTTP/1.1” 200 668
127.0.0.1 - - [16/Jan/2015:11:17:14 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.794&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -
127.0.0.1 - - [16/Jan/2015:11:17:19 +0900] “GET /work/getwork.php?shards=1&video=1&location=Local-URLBlast&key=&pc=PAPRI&version=2.16.0.380&ver=380&freedisk=833.794&ie=9.11.9600.17498&dns=192.168.10.1 HTTP/1.1” 200 -