WebPagetest Forums
Trouble with WPT Server config - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: Trouble with WPT Server config (/showthread.php?tid=546)

Pages: 1 2


Trouble with WPT Server config - hdtvrocks - 02-20-2011 09:04 PM

Having some trouble with my WPT server config. I can see via the apache logs that my agents are polling the server properly:

1.1.1.1 - - [20/Feb/2011:10:55:03 +0000] "GET /work/getwork.php?video=1&location=Vancouver&key=mykey1&pc=vancouver01&ver=261 HTTP/1.1" 200 - "-" "urlBlast"
2.2.2.2 - - [20/Feb/2011:10:55:04 +0000] "GET /work/getwork.php?video=1&location=Sydney&key=mykey2&pc=sydney01&ver=261 HTTP/1.1" 200 - "-" "urlblast"

However, they never seem to get the work job in the response. My locations.ini is as follows:

[locations]
1=Vancouver_loc
2=Sydney_loc
default=Vancouver_loc

[Vancouver_loc]
1=Vancouver
default=Vancouver
label=Vancouver, BC

[Sydney_loc]
1=Sydney
default=Sydney
label=Sydney, AUS

[Vancouver]
browser=IE 7
latency=0
label="Vancouver, BC"
key=mykey1

[Sydney]
browser=IE 7
latency=0
label="Sydney, AUS"
key=mykey1


RE: Trouble with WPT Server config - pmeenan - 02-21-2011 07:20 AM

When you submit the test on the server side does it go to the progress screen and say it is waiting behind X tests? If so, can you check the work/jobs/Vancouver and work/jobs/Sydney directories on the server to see if the job files are there?

Some possible causes that come to mind:

- The apache user doesn't have write permissions to the work/jobs directory
- The tmp directory under the docroot couldn't be created or the apache user doesn't have write permissions to it (the lock files are stored in there)
- dummynet isn't installed on the test machine so it's fetching the jobs but they are failing right away


RE: Trouble with WPT Server config - hdtvrocks - 02-21-2011 08:51 AM

(02-21-2011 07:20 AM)pmeenan Wrote:  When you submit the test on the server side does it go to the progress screen and say it is waiting behind X tests? If so, can you check the work/jobs/Vancouver and work/jobs/Sydney directories on the server to see if the job files are there?

Some possible causes that come to mind:

- The apache user doesn't have write permissions to the work/jobs directory
- The tmp directory under the docroot couldn't be created or the apache user doesn't have write permissions to it (the lock files are stored in there)
- dummynet isn't installed on the test machine so it's fetching the jobs but they are failing right away

Thanks Patrick,

Looks like the docroot/tmp directory wasn't created, even though I chowned my docroot to apache. I manually created the docroot/tmp directory with apache permissions and everything's running properly now. Thanks again!

PS. Maybe include an empty tmp dir in your package.


RE: Trouble with WPT Server config - pmeenan - 02-22-2011 05:23 AM

Yep, good idea. The tmp directory was a last-minute change that I made the day of the release to try and be better about consolidating writable directories (and allow for the frequently accessed temp files to be put on tmpfs).


RE: Trouble with WPT Server config - hdtvrocks - 02-22-2011 08:36 AM

Patrick,

Seem to have another 2 issues:

1. Summary preview of waterfall/optimization works, but the detailed 1_waterfall.png or 1_optimization.png are missing.
2. Video doesn't seem to work, it just keeps saying waiting for video.


RE: Trouble with WPT Server config - pmeenan - 02-28-2011 11:03 PM

1 - Are all of the rewrite rules in place? The same logic is used to build the thumbnail images as the full waterfall so the only reason it should fail is if the requests aren't being rewritten properly (there aren't actual png files on the server anymore, they're generated dynamically by waterfall.php).

2 - You need to install avisynth on at least one of the test machines (the installer should be in the bundle). It's needed to create the videos from the test captures.

Thanks,

-Pat


RE: Trouble with WPT Server config - aaronpeters - 03-01-2011 01:25 AM

I recently created a private instance and also bumped into the issue with videos not being created, even with Avisynth installed etc.
Solution for me was: create the dir /work/video/
And that did the trick.

Patrick > can you fix this in the build? Txs.


RE: Trouble with WPT Server config - hdtvrocks - 03-02-2011 11:00 AM

There was some weirdness in the .htaccess file I had. I reinstalled everything from scratch and noticed that results directory had to be created as well as tmp. Thanks again. I still seem to have trouble creating videos, the filmstrip thumbnails work but I can't create videos for some reason.


RE: Trouble with WPT Server config - pmeenan - 03-02-2011 11:33 AM

Do you see a work/video directory? If not, can you create it? Also, did you install AviSynth on the test machine?

I'll make sure the next release has all of the correct folders set up before-hand (there are still more directories than I'd like that need to be configured with write permissions Sad ).

Thanks,

-Pat


RE: Trouble with WPT Server config - hdtvrocks - 03-08-2011 10:26 AM

work/video dir exists with a tmp subdir. AviSynth installed on test machines. Video used to work when I was using an older version of webpagetest. I actually have another two oddities, some webpages don't seem to analyze text compression. I see a N/A and no details. I suspect it may be to do with SSL sites only? Have't confirmed yet. Also, Test History doesn't show anything at all for some reason.