|
Date: 4/18/2007 2:31 am · Subject: WebGUI hangs on package export · Rating: 0
WebGUI hangs on package export. Initial investigation of this problem, with help from preaction, has resulted in the following conclusions: a) our WebGUI database contains some assets of which the links to files in the upload directory tree are missing [ cause yet unknown ]; although the folder that we attempt to export as a WebGUI package does not directly contain these assets, one of our templates possibly does: our webgui.log file contains some, possibly related, messages, log file excerpt given below: 2007/01/16 11:47:16 - ERROR - www.main.vir.conf - main::[[undef]] - Could not set uid/gid on '/data/domains/www.main.vir/public/uploa ds/temp/CC/CC5p6D2jCyLRF6ercd8Bqg/000001000001000098000004.json' 2007/01/16 11:47:17 - ERROR - www.main.vir.conf - main::[[undef]] - Could not set uid/gid on '/data/domains/www.main.vir/public/uploa ds/8D/hr/8DhrdqhM4KvqkCtu6ISApw/thumb-a1.jpg'
2007/01/17 10:47:38 - ERROR - www.main.vir.conf - main::[[undef]] - Couldn't copy file /data/domains/www.main.vir/public/uploads/xK/O 3/xKO3cefe_opJtW2Sq8n_1Q/changelog to /data/domains/www.main.vir/public/uploads/9L/PJ/9LPJXEoGIQJ3zW3jULlGtA/changelog because Is a directory
2007/02/07 10:25:40 - ERROR - www.main.vir.conf - WebGUI::Storage::Image::generateThumbnail[129] - Couldn't read image for thumbnail c reation: Exception 435: unable to open image `/data/domains/www.main.vir/public/uploads/qa/Hd/qaHd-bvzPVBY_EiQ8bXz-w/Templates/KnK/0 03.000.002/green/images/headleft_green.jpg': No such file or directory 2007/02/07 10:25:40 - ERROR - www.main.vir.conf - WebGUI::Storage::Image::generateThumbnail[129] - Couldn't read image for thumbnail creation: Exception 435: unable to open image `/data/domains/www.main.vir/public/uploads/Xq/pm/XqpmRezA_yDIcRiomZx3BA/Templates/KnK/0 03.000.002/green/images/mainmenubg_green.gif': No such file or directory 2007/02/07 10:54:28 - ERROR - www.main.vir.conf - WebGUI::Storage::Image::generateThumbnail[129] - Couldn't read image for thumbnail creation: Exception 430: unable to open file `/data/domains/www.main.vir/public/uploads/cv/mU/cvmUyydK8xPvyislITKtzQ/Templates/KnK/00 3.000.002/green/un_green.png' 2007/02/07 10:54:28 - ERROR - www.main.vir.conf - WebGUI::Storage::Image::generateThumbnail[129] - Couldn't read image for thumbnail creation: Exception 435: unable to open image `/data/domains/www.main.vir/public/uploads/ib/HQ/ibHQr-GON2CsRns9XPBhHg/Templates/KnK/0 03.000.002/green/images/headleft_green.jpg': No such file or directory b) /data/WebGUI/lib/WebGUI/Storage.pm gets confused because of this and attempts to access various invalid locations (e.g. ./etc/lvm/, ./etc/cups/, ./proc, etc) and - assumably - tries to enumerate these recursively, in an attempt to compile a package export tarball; apache error log excerpt given below: Can't cd to (./etc/lvm/) backup: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/lvm/) archive: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/cups/) ssl: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/racoon/) certs: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/) cron.d: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/selinux/targeted/modules/) active: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/selinux/targeted/modules/) previous: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./etc/pki/) CA: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./home/) samba: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./proc/tty/) driver: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794 Can't cd to (./proc/1/task/1/) fd: Permission denied at /data/WebGUI/lib/WebGUI/Storage.pm line 794
c) WebGUI hangs in the export because of this (browser interface is unresponsive) and the server slows down and eventually mysql and apache crash with zero swap space problems. A replacement for Storage.pm line 792, as suggested by preaction, is given below (first the original line, next the replacement line): original line 792: chdir $self->getPath; replacement line 792:
chdir $self->getPath or warn "Could not chdir to '".$self->getPath."': $!";
The earlier log file excerpt was without this change. With this change, similar error messages (but reported at line 795, i.s.o. 794, as I commented out the original line). The log file produced by Storage.pm with the replaced line, does show this (indicative of an asset without reference): Could not chdir to '/data/domains/www.main.vir/public/uploads/2_/e2/2_e2ymt4vU1OwwPiPYis1Q': No such file or directory at /data/WebGUI/lib/WebGUI/Storage.pm line 793.
-- AMH_mari
|