result can't be uploaded correctly
|
03-13-2012, 11:46 PM
Post: #1
|
|||
|
|||
result can't be uploaded correctly
Hi Pat,
i've installed version 2.6 and getting similar result-error like IanNJ. The server hangs on result-page showing "Test is partially complete (1 of 1 runs)". The test runs on (ec2-Windows Server 2008-)agent and on the agent everything looks fine: Code: 2012/03/13 13:05:10 -1 0 1 20 0 Debug Requesting work from myServer/work/getwork.php?video=1&location=Iteratec-Ec2-WPT2-urlblast&key=&pc=IP-0A3A5E85 Wptserver is running on openSUSE as vhost in apache-httpd-server. PHP-version is 5.3.3 with gd and zlib running. Wptserver version 2.5 was running on same server and everything worked. In httpd-access-log I see some status codes 500: Code: My IP-adress - - [13/Mar/2012:14:26:00 +0100] "GET /result/120313_MN_9/1_waterfall_thumb.png HTTP/1.1" 500 20 "http://myServer/result/120313_MN_9/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2" It seems to be an authorization-problem so that completeTime can't be written to testinfo.ini in results-folder. I don't get it :-( Any idea? Regards Nils |
|||
03-14-2012, 12:17 AM
Post: #2
|
|||
|
|||
RE: result can't be uploaded correctly
Hmm, it looks like there was a problem posting the zip file (where it tried 5 times). The 500 should not be related - that would probably be another issue.
What are the permissions on your <docroot>/results directory? It sounds a lot like the apache user doesn't have permissions to write to it. Does anything show up in the apache or php error logs? |
|||
03-14-2012, 12:46 AM
Post: #3
|
|||
|
|||
RE: result can't be uploaded correctly
Aren't the three jpg's loaded up to results-folder, too?
Result-folder belongs to apache-user wwwrun.www and rights are 755. All single files of the results belong to apache-user, too and rights are 666. apache-error-log doesn't show anything but Code: [Tue Mar 13 14:15:04 2012] [error] [client server-ip] File does not exist: /srv/www/vhosts/wptserver26/benchmarks php-error-log is full of monitor-warnings like Code: [13-Mar-2012 15:41:01] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_s et() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0 /no DST' instead in /srv/www/vhosts/ottowptmonitor/utils.inc on line 211 But that's another subject. Nothing else that looks interesting. |
|||
03-14-2012, 01:55 AM
Post: #4
|
|||
|
|||
RE: result can't be uploaded correctly
Do you see any files showing up in the results folder? Yes, the individual images should be written there as well.
Otherwise it could be similar to another thread where the zip libraries were not working correctly (in that case it was on centos). You can try going into common.inc and commenting out the "error_reporting(0)" line to see if that gets you better data in the error log. Otherwise I can get you a custom build of workdone.php that has a bunch of logging added to try to track down the source of the problem. |
|||
03-14-2012, 06:29 AM
(This post was last modified: 03-14-2012 06:51 AM by nilskuhn.)
Post: #5
|
|||
|
|||
RE: result can't be uploaded correctly
I've a lot of blocks of undefined indices in my php-error-log after uncommenting the "error_reporting(0)" line in common.inc:
Code: [13-Mar-2012 17:46:22] PHP Notice: Undefined index: default in /srv/www/vhosts/wptserver26/common.inc on line 732 The Fatal Error occurs several times. Do you know where the Class 'ZipArchive' is declared? It's from a loaded library? I got it! I just had to install package php5-zip and now it works again. A bit curious that version 2.5 worked without, but whatever. It works know. The interactive waterfall and pie-charts are nice features! Also the navigation timing in waterfall and the other features. Thanks a lot for sharing your work and quick support! |
|||
03-14-2012, 10:16 PM
Post: #6
|
|||
|
|||
RE: result can't be uploaded correctly
Thanks for tracking it down.
I think we changed the zip extract code in workdone to use ZipArchive instead of the legacy zip functions. I don't think we had a good reason to do it though so I'll see about replacing it since it seems to be causing some grief. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)