Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-20 Thread Ralf Gross
Eric Bollengier schrieb:
> Can you retry the script using
> 
> /opt/bacula/sbin/bconsole -n -c /opt/bacula/etc/bconsole.conf
> instead of
> /opt/bacula/etc/bconsole -n -c /opt/bacula/etc/bconsole.conf 
> 

This works! Ok, this seems to be completely my fault. I'm always using
bconsole in the bacula/etc directory. But it's clear that bweb needs
the binary, not the script. bweb is now working as expected.

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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-20 Thread Ralf Gross
Eric Bollengier schrieb:
> Can you put this into a test.pl file and execute it with the
> www-data user ? (chmod 755 test.pl ; ./test.pl)
> 
> ---8<---8<---8<---
> #!/usr/bin/perl -w
> use strict;
> use Bconsole;
> my $c = new Bconsole(pref => {
> bconsole => '/opt/bacula/etc/bconsole -n -c /opt/bacula/etc/bconsole.conf',
>   },
>  debug => 1);
> 
> print "fileset : ", join(',', $c->list_fileset()), "\n";
> print "job : ", join(',', $c->list_job()), "\n";
> print "storage : ", join(',', $c->list_storage()), "\n";
> 
> 
> print "status client :\n";
> $c->send_cmd("status client=VU0EM004");
> ---8<---8<---8<---

I've attached the debug output as file.
 
> It could be also a good idea to open a bug on bugs.bacula.org.

Ok, I'll open a bug report.

Ralf


debug.gz
Description: Binary data
-
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-20 Thread Eric Bollengier

Can you put this into a test.pl file and execute it with the
www-data user ? (chmod 755 test.pl ; ./test.pl)

---8<---8<---8<---
#!/usr/bin/perl -w
use strict;
use Bconsole;
my $c = new Bconsole(pref => {
bconsole => '/opt/bacula/etc/bconsole -n -c /opt/bacula/etc/bconsole.conf',
  },
 debug => 1);

print "fileset : ", join(',', $c->list_fileset()), "\n";
print "job : ", join(',', $c->list_job()), "\n";
print "storage : ", join(',', $c->list_storage()), "\n";


print "status client :\n";
$c->send_cmd("status client=VU0EM004");
---8<---8<---8<---

It could be also a good idea to open a bug on bugs.bacula.org.

Bye

Le Samedi 20 Janvier 2007 00:15, Ralf Gross a écrit :
> Eric Bollengier schrieb:
> > > 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=1 9&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.
> >
> > This page use bconsole to get informations. Can you try this in a
> > terminal (xterm) ? (with www-data)
> >
> > [EMAIL PROTECTED]:~$ /opt/bacula/etc/bconsole -n -c
> > /opt/bacula/etc/bconsole.conf * st client=VU0EM005
>
> I've done this for an other client, this one has already been backed up.
> The output on the client status page is the same (empty).
>
> [EMAIL PROTECTED]:~$ /opt/bacula/etc/bconsole -n -c
> /opt/bacula/etc/bconsole.conf Connecting to Director VU0EM005:9101
> 1000 OK: VU0EM005 Version: 2.0.1 (12 January 2007)
> Enter a period to cancel a command.
> *st client=VU0EM004
> Using Catalog "MyCatalog"
> Connecting to Client VU0EM004 at VU0EM004-1:9102
>
> VU0EM004 Version: 2.0.1 (12 January 2007)  x86_64-unknown-linux-gnu debian
> 4.0 Daemon started 17-Jan-07 09:52, 3 Jobs run since started.
>  Heap: bytes=25,204,944 max_bytes=25,205,083 bufs=135,840 max_bufs=135,841
>  Sizeof: boffset_t=8 size_t=8 debug=105 trace=0
>
> Running Jobs:
> JobId 4 Job VU0EM004.2007-01-19_23.40.51 is running.
> Backup Job started: 19-Jan-07 23:40
> Files=475,722 Bytes=25,236,423,357 Bytes/sec=27,401,111
> Files Examined=475,722
> Processing file:
> /data/BackupPC/pc/hogwards/0/f%2fhome%2fhogwards%2fknfe%2fdata2/fincoming/f
>vp0848_0445/fmac0080d90b02ed_v256_ARTWarnton-06-10-30-11-08-52.tgz
> SDReadSeqNo=5 fd=5
> Director connected at: 19-Jan-07 23:56
> 
>
> Terminated Jobs:
>  JobId  LevelFiles  Bytes   Status   FinishedName
> ==
>  1  Full  5,221358.5 M  Cancel   19-Jan-07 23:18 VU0EM004
>  2  Full146,0092.082 G  OK   19-Jan-07 23:29 VU0EM004
>  3  Full146,0102.082 G  OK   19-Jan-07 23:39 VU0EM004
> 
> *
>
> > > 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 = []
> >
> > You can set it to /tmp
> >
> > > > > The second problem are the png graphs.
> > >
> > > Maybe the png error only occurres because there have not been any
> > > backups yet?
> >
> > Yes, to get graph, you must have data.
>
> Understood ;) I didn't know what I should see there, only stats or other
> (static) png's too.
>
> Ralf

-- 
"I like when it comes by night and sucks the vital essence from my 
computers."

-
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-19 Thread Ralf Gross
Eric Bollengier schrieb:
> > 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=1
> >9&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.
> 
> This page use bconsole to get informations. Can you try this in a terminal 
> (xterm) ? (with www-data)
> 
> [EMAIL PROTECTED]:~$ /opt/bacula/etc/bconsole -n -c 
> /opt/bacula/etc/bconsole.conf
> * st client=VU0EM005

I've done this for an other client, this one has already been backed up. The
output on the client status page is the same (empty). 

[EMAIL PROTECTED]:~$ /opt/bacula/etc/bconsole -n -c 
/opt/bacula/etc/bconsole.conf
Connecting to Director VU0EM005:9101
1000 OK: VU0EM005 Version: 2.0.1 (12 January 2007)
Enter a period to cancel a command.
*st client=VU0EM004
Using Catalog "MyCatalog"
Connecting to Client VU0EM004 at VU0EM004-1:9102

VU0EM004 Version: 2.0.1 (12 January 2007)  x86_64-unknown-linux-gnu debian 4.0
Daemon started 17-Jan-07 09:52, 3 Jobs run since started.
 Heap: bytes=25,204,944 max_bytes=25,205,083 bufs=135,840 max_bufs=135,841
 Sizeof: boffset_t=8 size_t=8 debug=105 trace=0

Running Jobs:
JobId 4 Job VU0EM004.2007-01-19_23.40.51 is running.
Backup Job started: 19-Jan-07 23:40
Files=475,722 Bytes=25,236,423,357 Bytes/sec=27,401,111
Files Examined=475,722
Processing file: 
/data/BackupPC/pc/hogwards/0/f%2fhome%2fhogwards%2fknfe%2fdata2/fincoming/fvp0848_0445/fmac0080d90b02ed_v256_ARTWarnton-06-10-30-11-08-52.tgz
SDReadSeqNo=5 fd=5
Director connected at: 19-Jan-07 23:56


Terminated Jobs:
 JobId  LevelFiles  Bytes   Status   FinishedName 
==
 1  Full  5,221358.5 M  Cancel   19-Jan-07 23:18 VU0EM004
 2  Full146,0092.082 G  OK   19-Jan-07 23:29 VU0EM004
 3  Full146,0102.082 G  OK   19-Jan-07 23:39 VU0EM004

*

 
> > 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 = []
> 
> You can set it to /tmp
> 
> > > > The second problem are the png graphs.
> > Maybe the png error only occurres because there have not been any backups
> > yet?
> 
> Yes, to get graph, you must have data.

Understood ;) I didn't know what I should see there, only stats or other
(static) png's too.

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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-19 Thread Eric Bollengier
> 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=1
>9&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.

This page use bconsole to get informations. Can you try this in a terminal 
(xterm) ? (with www-data)

[EMAIL PROTECTED]:~$ /opt/bacula/etc/bconsole -n -c 
/opt/bacula/etc/bconsole.conf
* st client=VU0EM005

> 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 = []

You can set it to /tmp

> > > The second problem are the png graphs.
> Maybe the png error only occurres because there have not been any backups
> yet?

Yes, to get graph, you must have data.

Bye

-
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-19 Thread Ralf Gross
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
NameSelect  DescAuto Prune  File Retention  Job Retention
Bangsparc-sun-solaris2.8,solaris,5.81   30 days 180 days
VU0EM0042.0.1 (12Jan07) x86_64-unknown-linux-gnu,debian,4.0 
1   30 days 180 days
VU0EM0052.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://

Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...]

2007-01-18 Thread Eric Bollengier

> 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 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 ?

> 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.


Thanks for your feedback !

-
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...

2007-01-17 Thread Ralf Gross
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...

2007-01-17 Thread Kern Sibbald
Hello,

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.

Regards,

kern

On Wednesday 17 January 2007 13:03, Ralf Gross wrote:
> Kern Sibbald schrieb:
> > Did you use the install_bweb script to install part bweb?  It simplifies 
the 
> > installation or rather automates a good portion of it, but you must 
> > absolutely take care to edit the environment variables at the top of the 
file 
> > before running the script.
> 
> With the tar archive I used the install_bweb script. I edited the
> relevant parts before running it. Now I'm using the debian package
> from sf.
>  
> > You also need to modify your Apache conf file appropriately to allow cgi 
> > access to your cgi-bin/bweb directory.  That is explained in the INSTALL 
> > document.
> 
> I did that too. I can get to the bweb page and see the 3 existing
> clients etc. But I'm getting the below error every time I try to get
> the client status or choose a Job view.
> 
> I've no idea if this 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
> 
> is either an permission problem or some package I'm missing.
> 
> I think this could be related to bconsole, but the path is correct
> and user www-data can execute it.
>  
> > There are a lot of subtle little details to attend to to get it to run the 
> > first time, but it is worth the effort, and I would very much appreciate 
> > feedback on where you run into problems so that we can enhance the INSTALL 
> > document.  The objective is to make INSTALL very complete, automate as 
much 
> > of it as possible with scripts or via rpm/apt packages, and also to write 
a 
> > document that describes the installation process.  All that requires a bit 
> > more feedback.
> 
> I'd love to give some more feedback.
> 
> There were some hard coded paths that I couldn't change before
> install, thus I had to change them afterwards. For example, I
> installed bacula to /opt/bacula and I wanted the bweb.conf file to be
> placed in /opt/bacula/etc. I had to change $config_file in
> /usr/local/share/perl/5.8.8/Bweb.pm after the install script finished.
> 
> 
> I'll begin from scratch and document the steps I've problems with.
> 
> But I think the config file is not the cause of the above error.
> 
> Ralf
> 
> BTW: was it your intention to reply me directly and not the list? 
> 

-
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...

2007-01-17 Thread Kern Sibbald
On Wednesday 17 January 2007 13:03, Ralf Gross wrote:
> Kern Sibbald schrieb:
> > Did you use the install_bweb script to install part bweb?  It simplifies 
the 
> > installation or rather automates a good portion of it, but you must 
> > absolutely take care to edit the environment variables at the top of the 
file 
> > before running the script.
> 
> With the tar archive I used the install_bweb script. I edited the
> relevant parts before running it. Now I'm using the debian package
> from sf.
>  
> > You also need to modify your Apache conf file appropriately to allow cgi 
> > access to your cgi-bin/bweb directory.  That is explained in the INSTALL 
> > document.
> 
> I did that too. I can get to the bweb page and see the 3 existing
> clients etc. But I'm getting the below error every time I try to get
> the client status or choose a Job view.
> 
> I've no idea if this 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
> 
> is either an permission problem or some package I'm missing.
> 
> I think this could be related to bconsole, but the path is correct
> and user www-data can execute it.

Hmmm. It seems to me that I had a problem there -- I'll see if I can reproduce 
it and document it.

>  
> > There are a lot of subtle little details to attend to to get it to run the 
> > first time, but it is worth the effort, and I would very much appreciate 
> > feedback on where you run into problems so that we can enhance the INSTALL 
> > document.  The objective is to make INSTALL very complete, automate as 
much 
> > of it as possible with scripts or via rpm/apt packages, and also to write 
a 
> > document that describes the installation process.  All that requires a bit 
> > more feedback.
> 
> I'd love to give some more feedback.
> 
> There were some hard coded paths that I couldn't change before
> install, thus I had to change them afterwards. For example, I
> installed bacula to /opt/bacula and I wanted the bweb.conf file to be
> placed in /opt/bacula/etc. I had to change $config_file in
> /usr/local/share/perl/5.8.8/Bweb.pm after the install script finished.
> 
> 
> I'll begin from scratch and document the steps I've problems with.
> 
> But I think the config file is not the cause of the above error.
> 
> Ralf
> 
> BTW: was it your intention to reply me directly and not the list? 

No, I must have done something wrong. Thanks for noticing it.  I'm posting it 
to the list.

I'm just in the process of installing bweb on my "laptop development" machine 
that I will be using while in France.  If I run into any problems that are 
not obvious, I'll document them and let the list know.
> 

-
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


Re: [Bacula-users] bweb - print() on closed filehandle GEN0 at...

2007-01-17 Thread Kern Sibbald
On Wednesday 17 January 2007 09:37, Ralf Gross wrote:
> Hi,
> 
> I'm trying to setup bweb 2.0.1. I changed some config settings (paths, db), 
and
> I can access http://myserver/cgi-bin/bweb/bweb.pl, but I get this error 
message
> when accessing the client status or other functions:
> 
> [Wed Jan 17 09:25:26 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
> 
> I get this error with the debian package and with bweb from the 2.0.1 tar
> archive.
> 
> A second error message ist about png. I think I have installed all the
> necessary debian packages...
> 
> [Wed Jan 17 09:27:55 2007] [error] [client x.60.5.111] 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?

Did you use the install_bweb script to install part bweb?  It simplifies the 
installation or rather automates a good portion of it, but you must 
absolutely take care to edit the environment variables at the top of the file 
before running the script.

You also need to modify your Apache conf file appropriately to allow cgi 
access to your cgi-bin/bweb directory.  That is explained in the INSTALL 
document.

There are a lot of subtle little details to attend to to get it to run the 
first time, but it is worth the effort, and I would very much appreciate 
feedback on where you run into problems so that we can enhance the INSTALL 
document.  The objective is to make INSTALL very complete, automate as much 
of it as possible with scripts or via rpm/apt packages, and also to write a 
document that describes the installation process.  All that requires a bit 
more feedback.

Regards,

Kern

-
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