WebPagetest Forums
changed result-storage-path? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: changed result-storage-path? (/showthread.php?tid=10221)



changed result-storage-path? - nilskuhn - 12-16-2011 03:51 AM

Hi,

I've installed WPT Server 2.5 and want to use it with WPT Monitor, version 0.3 (latest stable). My scripted monitor-tests are triggered correctly to the wpt-server as jobs and the agent gets it, runs the test and writes back the results. As far everything's fine.

But on results-page of the monitor the status of the result remains "pending". If I click on the link to the result I get a 404. I noticed that the results of tests started directly from web-gui of wpt-server are saved differently in the filesystem than the results of the monitor-jobs:

wpt-server-triggered:
e.g. /results/11/12/15/XK/11/
-> http://myWPTServer.de/results.php?test=111215_XK_11
wpt-monitor-triggered:
e.g. /results/11/12/15/W6/4d53627c973bcf6ecf6b9bc7e19b6879/
-> http://myWPTServer.de/result/111215_W6_4d53627c973bcf6ecf6b9bc7e19b6879

Can't the wpt-server handle the long foldernames anymore?

Thanks in advance and regards,
Nils
Sorry, it's not the long foldername but the different method of invoking the results. Can't the wpt-server show the results by the url without results.php anymore?


RE: changed result-storage-path? - pmeenan - 12-16-2011 04:03 AM

Looks like you don't have mod_rewrite enabled. WebPagetest recently added support for running without it but WPTMonitor is expecting the "friendly" version of the URLs. Shouldn't have anything to do with the length of the folder name, it's the URL structure itself.


RE: changed result-storage-path? - nilskuhn - 12-16-2011 05:38 AM

mod_rewrite is enabled.
So what else could be the problem?
Any ideas?


RE: changed result-storage-path? - pmeenan - 12-16-2011 06:07 AM

It can't be working correctly, otherwise WebPagetest would have used http://myWPTServer.de/result/111215_XK_11/ instead of http://myWPTServer.de/results.php?test=111215_XK_11

Are .htaccess overrides enabled (AllowOverride)?


RE: changed result-storage-path? - nilskuhn - 12-16-2011 06:56 AM

Yes,

Code:
Options Indexes FollowSymlinks
AllowOverride All

is set in the Directory-sections of my vhost-confs (in /etc/apache2/vhosts.d/), in the Directory-section of htdocs in /etc/apache2/default-server.conf and in the Directory-section "/" of httpd.conf (the two latter don't matter I think...).

And I made the folowing test and mod_rewrite seems to be enabled: http://www.wallpaperama.com/forums/how-to-test-check-if-mod-rewrite-is-enabled-t40.html

My wpt-server and -monitor are on the same machine (Linux-VM) in a LAN together with the agents. A firewall is built around it. Could the firewall oppress url-rewriting on a machine behind it?


RE: changed result-storage-path? - pmeenan - 12-16-2011 07:01 AM

The firewall shouldn't cause any issues, all of the rewriting happens on the server itself. That is pretty bizarre. Is the WebPagetest .htaccess file in WPT's root directory?

The access and error logs might have some information about the rewrite failures.


RE: changed result-storage-path? - nilskuhn - 12-16-2011 07:20 AM

Thanks a lot!

The .htaccess-file was missing. A workmate copied the wpt-server to the machine and obviously forgot hidden files.


RE: changed result-storage-path? - pmeenan - 12-16-2011 07:22 AM

lol. cool. That would certainly do it.