Current time: 11-21-2019, 09:08 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
2012/03/13 13:05:10    -1    0    1    20    0    Debug    Job of type 'text/plain' received
2012/03/13 13:05:10    -1    0    1    20    0    Debug    Url to be tested: http://www.otto.de
2012/03/13 13:05:10    -1    0    1    20    0    Debug    Flushing DNS cache
2012/03/13 13:05:10    -1    0    1    20    0    Debug    DnsFlushResolverCache returned 1
2012/03/13 13:05:10    -1    0    1    20    0    Debug    Executing 'ipconfig.exe /flushdns'
2012/03/13 13:05:10    -1    0    1    20    0    Debug    Successfully ran 'ipconfig.exe /flushdns'
2012/03/13 13:05:10    -1    0    1    20    0    Debug    Launching... user='Administrator', path='C:\Program Files\Internet Explorer\iexplore.exe', command line='"C:\Program Files\Internet Explorer\iexplore.exe" about:blank'
2012/03/13 13:05:10    -1    0    1    3    0    Browser Launched    Cleared Cache-Run_1^http://www.otto.de
2012/03/13 13:05:31    -1    0    1    20    0    Debug    Uploading 35886 byte file C:\ProgramData\urlblast\120313_SK_8-1_screen.jpg
2012/03/13 13:05:31    -1    0    1    20    0    Debug    Uploading 34782 byte file C:\ProgramData\urlblast\120313_SK_8-1_screen_doc.jpg
2012/03/13 13:05:31    -1    0    1    20    0    Debug    Uploading 12907 byte file C:\ProgramData\urlblast\120313_SK_8-1_screen_render.jpg
2012/03/13 13:05:31    -1    0    1    20    0    Debug    Uploading 70237 byte file C:\ProgramData\urlblast\120313_SK_8-1.zip
2012/03/13 13:05:42    -1    0    1    20    0    Debug    Uploading 70237 byte file C:\ProgramData\urlblast\120313_SK_8-1.zip
2012/03/13 13:05:52    -1    0    1    20    0    Debug    Uploading 70237 byte file C:\ProgramData\urlblast\120313_SK_8-1.zip
2012/03/13 13:06:02    -1    0    1    20    0    Debug    Uploading 70237 byte file C:\ProgramData\urlblast\120313_SK_8-1.zip
2012/03/13 13:06:12    -1    0    1    20    0    Debug    Uploading 70237 byte file C:\ProgramData\urlblast\120313_SK_8-1.zip

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
Find all posts by this user
Quote this message in a reply
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?
Visit this user's website Find all posts by this user
Quote this message in a reply
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.
Find all posts by this user
Quote this message in a reply
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
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
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: key in /srv/www/vhosts/wptserver26/work/resultimage.php on line 18
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: default in /srv/www/vhosts/wptserver26/common.inc on line 732
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: key in /srv/www/vhosts/wptserver26/work/resultimage.php on line 18
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: har in /srv/www/vhosts/wptserver26/work/workdone.php on line 13
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: pcap in /srv/www/vhosts/wptserver26/work/workdone.php on line 14
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: useLatestPCap2Har in /srv/www/vhosts/wptserver26/work/workdone.php on line 19
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: _runNumber in /srv/www/vhosts/wptserver26/work/workdone.php on line 22
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: _cacheWarmed in /srv/www/vhosts/wptserver26/work/workdone.php on line 23
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: _docComplete in /srv/www/vhosts/wptserver26/work/workdone.php on line 24
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: video in /srv/www/vhosts/wptserver26/work/workdone.php on line 29
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: default in /srv/www/vhosts/wptserver26/common.inc on line 732
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: key in /srv/www/vhosts/wptserver26/work/workdone.php on line 54
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 569
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 523
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 569
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 523
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 569
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 523
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 569
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 523
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 569
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 523
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 569
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: nogzip in /srv/www/vhosts/wptserver26/common.inc on line 523
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: showslow_key in /srv/www/vhosts/wptserver26/work/workdone.php on line 143
[13-Mar-2012 17:46:22] PHP Notice:  Undefined index: beaconRate in /srv/www/vhosts/wptserver26/work/workdone.php on line 145
[13-Mar-2012 17:46:22] PHP Notice:  Undefined offset: 82 in /srv/www/vhosts/wptserver26/page_data.inc on line 119
[13-Mar-2012 17:46:22] PHP Notice:  Undefined offset: 83 in /srv/www/vhosts/wptserver26/page_data.inc on line 120
[13-Mar-2012 17:46:22] PHP Notice:  Undefined offset: 82 in /srv/www/vhosts/wptserver26/page_data.inc on line 119
[13-Mar-2012 17:46:22] PHP Notice:  Undefined offset: 83 in /srv/www/vhosts/wptserver26/page_data.inc on line 120
[13-Mar-2012 17:46:22] PHP Fatal error:  Class 'ZipArchive' not found in /srv/www/vhosts/wptserver26/object_detail.inc on line 393
[13-Mar-2012 17:46:29] PHP Notice:  Undefined offset: 82 in /srv/www/vhosts/wptserver26/page_data.inc on line 119
[13-Mar-2012 17:46:29] PHP Notice:  Undefined offset: 83 in /srv/www/vhosts/wptserver26/page_data.inc on line 120
[13-Mar-2012 17:46:29] PHP Notice:  Undefined offset: 82 in /srv/www/vhosts/wptserver26/page_data.inc on line 119
[13-Mar-2012 17:46:29] PHP Notice:  Undefined offset: 83 in /srv/www/vhosts/wptserver26/page_data.inc on line 120
[13-Mar-2012 17:46:29] PHP Notice:  Undefined index: Capture Video in /srv/www/vhosts/wptserver26/result.inc on line 7
[13-Mar-2012 17:46:29] PHP Notice:  Undefined index: Video in /srv/www/vhosts/wptserver26/result.inc on line 7
[13-Mar-2012 17:46:29] PHP Notice:  Undefined index: video in /srv/www/vhosts/wptserver26/result.inc on line 7
[13-Mar-2012 17:46:29] PHP Notice:  Undefined index: completeTime in /srv/www/vhosts/wptserver26/result.inc on line 10
[13-Mar-2012 17:46:29] PHP Notice:  Undefined index: authenticated in /srv/www/vhosts/wptserver26/common.inc on line 1124
[13-Mar-2012 17:46:29] PHP Warning:  include(./ads/results_bottom.inc): failed to open stream: No such file or directory in /srv/www/vhosts/wptserver26/result.inc on line 459
[13-Mar-2012 17:46:29] PHP Warning:  include(): Failed opening './ads/results_bottom.inc' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vhosts/wptserver26/result.inc on line 459
[13-Mar-2012 17:46:29] PHP Warning:  imagecreatefromjpeg(./results/12/03/13/5S/A/1_screen.jpg): failed to open stream: No such file or directory in /srv/www/vhosts/wptserver26/thumbnail.php on line 47

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!
Find all posts by this user
Quote this message in a reply
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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