Current time: 12-16-2017, 05:17 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with WPT Server config
02-20-2011, 09:04 PM
Post: #1
Trouble with WPT Server config
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
Find all posts by this user
Quote this message in a reply
02-21-2011, 07:20 AM
Post: #2
RE: Trouble with WPT Server config
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
Visit this user's website Find all posts by this user
Quote this message in a reply
02-21-2011, 08:51 AM
Post: #3
RE: Trouble with WPT Server config
(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.
Find all posts by this user
Quote this message in a reply
02-22-2011, 05:23 AM
Post: #4
RE: Trouble with WPT Server config
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).
Visit this user's website Find all posts by this user
Quote this message in a reply
02-22-2011, 08:36 AM
Post: #5
RE: Trouble with WPT Server config
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.
Find all posts by this user
Quote this message in a reply
02-28-2011, 11:03 PM
Post: #6
RE: Trouble with WPT Server config
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
Visit this user's website Find all posts by this user
Quote this message in a reply
03-01-2011, 01:25 AM
Post: #7
RE: Trouble with WPT Server config
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.
Find all posts by this user
Quote this message in a reply
03-02-2011, 11:00 AM (This post was last modified: 03-02-2011 11:11 AM by hdtvrocks.)
Post: #8
RE: Trouble with WPT Server config
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.
Find all posts by this user
Quote this message in a reply
03-02-2011, 11:33 AM
Post: #9
RE: Trouble with WPT Server config
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
Visit this user's website Find all posts by this user
Quote this message in a reply
03-08-2011, 10:26 AM
Post: #10
RE: Trouble with WPT Server config
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)