Kern Sibbald schrieb: > I've now installed bweb on a second machine, and have never run into a > problem > like you describe. Perhaps Eric will have some idea on this, but one piece > of advice that I just got from Eric regarding a problem I had is to always > look in the Apache error_log when things go wrong. That often points to the > problem, though you might need to open one of the cgi-bin/bweb/xxx.pl files > to get down to more details.
I've done a fresh install from bacula-gui-2.0.1.tar.gz. Some notes: * hard coded path to bweb.conf in install_bweb (/etc/bacula) I changed the config file path to /opt/bacula/etc, but after executing install_bweb the wrong path was assigned to $config_file in /usr/local/share/perl/5.8.8/Bweb.pm. The result is an error when you try to http://your-server/bweb * /var/www/bweb not created from the install_bweb script # Root directory of web files # WEB_DIR=/var/www If WEB_DIR should be the web root aka /var/www ... if [ ! -d ${WEB_DIR} ] ; then mkdir ${WEB_DIR}/bweb fi ...then this won't create the bweb directory. I changed ist to: if [ ! -d ${WEB_DIR}/bweb ] ; then mkdir ${WEB_DIR}/bweb fi If WEB_DIR should be the location of the bweb web files, then WEB_DIR should point to /var/www/bweb. Maybe the description is just a bit misleading and it's clearer when you read the related section in the INSTALL file. Ok, now I'm at the same point as before. I can access http://myserver/bweb and get the list of my 2 clients. But as soon as I try to get the state of a client or the 'Defined Jobs' I get errors in my apache error.log. [Wed Jan 17 16:23:40 2007] [error] [client x.60.5.110] print() on closed filehandle GEN0 at /usr/lib/perl/5.8/IO/Handle.pm line 147., referer: http://vu0em005/cgi-bin/bweb/bweb.pl?action=client [Wed Jan 17 16:23:17 2007] [error] [client x.60.5.111] print() on closed filehandle GEN0 at /usr/lib/perl/5.8/IO/Handle.pm line 147., referer: http://vu0em005/cgi-bin/bweb/bweb.pl?action=job Since I see the client names, I assume that bweb has access to the db and that this problem is related to bconsole (which www-data can execute). The second problem are the png graphs. [Wed Jan 17 16:20:56 2007] [error] [client x.60.5.110] Can't call method "png" on an undefined value at /usr/lib/cgi-bin/bweb/bgraph.pl line 220., referer: http://vu0em005/cgi-bin/bweb/bweb.pl?action=graph I've installed the debian packages that are mentioned in the INSTALL file. libgd-graph-perl libhtml-template-perl libexpect-perl libdbd-mysql-perl libdbd-pg-perl libdbi-perl libtime-modules-perl And some png libs. libpng12-0 libpng12-dev libpng3 Ralf ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users