Eric Bollengier schrieb:
> 
> > 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 will move all bweb.conf references to Bweb.pm, and the install
> script will do a sed 's//' to adapt it.
> 
> > 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.
> 
> You can set debug to "on" in configuration, we will see sql queries and
> debug messages to error.log.

I don't see any additional error message in the error log. But there is now some
additional info on the webpage.

http://vu0em005/cgi-bin/bweb/bweb.pl?action=client

SELECT Name   AS name,
       Uname  AS uname,
       AutoPrune AS autoprune,
       FileRetention AS fileretention,
       JobRetention  AS jobretention
FROM Client 


Clients
Name    Select  Desc    Auto Prune      File Retention  Job Retention
Bang            sparc-sun-solaris2.8,solaris,5.8        1       30 days 180 days
VU0EM004                2.0.1 (12Jan07) x86_64-unknown-linux-gnu,debian,4.0     
1       30 days 180 days
VU0EM005                2.0.1 (12Jan07) x86_64-unknown-linux-gnu,debian,4.0     
1       30 days 180 days
Actions  
Last jobs   Current jobs   Status   Stats  


If I then select VU0EM005 add click on 'Status', I immediately get this error
again:

http://vu0em005/cgi-bin/bweb/bweb.pl?client=VU0EM005&action.x=23&action.y=19&action=client_status

[Fri Jan 19 17:35:01 2007] [error] [client 53.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

Then it takes some time and a nearly empty page is diplayed.


Client status : VU0EM005

  

> I think it's a problem with bconsole (in Bconsole.pm) It's look like
> wrong bconsole option or something like.
> 
> Can you give me your bweb.conf ?

R1 = bless( {
  'graph_font' => '/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf',
  'name' => undef,
  'config_file' => '/opt/bacula/etc/bweb.conf',
  'bconsole' => '/opt/bacula/etc/bconsole -n -c /opt/bacula/etc/bconsole.conf',
  'ach_list' => {
     'S1_L80' => bless( {
         'info' => {
                     'drive' => 0,
                     'io' => 0,
                     'slot' => 0
                   },
         'name' => 'S1_L80',
         'bweb' => undef,
         'device' => '/dev/changer',
         'drive' => [],
         'debug' => 0,
         'label' => {},
         'precmd' => 'sudo',
         'io' => [],
         'mtxcmd' => '/usr/sbin/mtx',
         'drive_name' => [
                           'S1_L80_SDLT0',
                           'S1_L80_SDLT1'
                         ],
         'slot' => []
       }, 'Bweb::Autochanger' )
   },
  'password' => 'asd01',
  'template_dir' => '/usr/share/bweb/tpl',
  'dbi' => 'DBI:mysql:database=bacula',
  'error' => '',
  'debug' => 'on',
  'user' => 'bacula',
  'email_media' => '[EMAIL PROTECTED]'
}, 'Bweb::Config' );

 
If I add bweb.conf with the web config editor, I always get an error about
fv_write_path.

An error has occurred :

bad parameter : fv_write_path = []

 
> > 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
> 
> With the debug=on option, you will see SQL queries on error.log
> You execute them into a mysql session, to see if you get data.
 
This is the debug output from bweb's start page
(http://vu0em005/cgi-bin/bweb/bweb.pl?)

, referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
 SELECT, referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
     UNIX_TIMESTAMP( DATE_FORMAT(StartTime, '%Y-%m-%d') ) AS A,, referer: 
http://vu0em005/cgi-bin/bweb/bweb.pl?
     sum(JobBytes)                  AS nb, referer: 
http://vu0em005/cgi-bin/bweb/bweb.pl?
 FROM Job, Client, FileSet, referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
 WHERE Job.ClientId = Client.ClientId, referer: 
http://vu0em005/cgi-bin/bweb/bweb.pl?
  AND Job.FileSetId = FileSet.FileSetId, referer: 
http://vu0em005/cgi-bin/bweb/bweb.pl?
  AND Job.Type = 'B', referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
  , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
  , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
  , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
  , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
  , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
 AND UNIX_TIMESTAMP(EndTime) , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
          > , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
        ( UNIX_TIMESTAMP(NOW()) , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
          - , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
          (2678400), referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
        ) GROUP BY A  LIMIT 500 , referer: http://vu0em005/cgi-bin/bweb/bweb.pl?
Can't call method "png" on an undefined value at
/usr/lib/cgi-bin/bweb/bgraph.pl line 488., referer:
http://vu0em005/cgi-bin/bweb/bweb.pl?


Maybe the png error only occurres because there have not been any backups yet?

 
> Thanks for your feedback !

You're welcome! bweb looks promising so far.

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

Reply via email to