SearchFAQMemberlist Log in
Reply to topic Page 1 of 2
Goto page 1, 2  Next
bacula-web
Author Message
Post bacula-web 
Juan,
I just installed bacula-web, and I get broken-image icons in several
places. When I try to view those images, I see this:

Fatal error: Call to undefined function: imagecreate() in
/var/httpd/local/bacula/external_packages/phplot/phplot.php on line 232

Fatal error: Call to undefined function: imagedestroy() in
/var/httpd/local/bacula/external_packages/phplot/phplot.php on line 256

Suggestions? Do I need to reinstall or recompile PHP?

--
========== Fight Back! It may not be just YOUR life at risk. ==========
alaric < at > ca... : phil-stracchino < at > ea... : phil < at > no...
phil stracchino : unix ronin : renaissance man : mystic zen biker geek
2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
Linux Now! ...Friends don't let friends use Microsoft.

Post bacula-web 
Hello Phil,

Run "test.php" to view dependencies. Maybe you don't have installed GD
library for PHP and you need to reinstall PHP.

Check that the GD support is activated when you compile php.

./configure --with-gd --with-jpeg --with-png --enable-sockets --with-gettext

GD: http://www.boutell.com/gd/

Best regards,
Juan Luis

On Wed, 4 Aug 2004 13:51:25 -0400 Phil Stracchino <alaric < at > ca...> wrote:

Juan,
I just installed bacula-web, and I get broken-image icons in several
places. When I try to view those images, I see this:


Fatal error: Call to undefined function: imagecreate() in
/var/httpd/local/bacula/external_packages/phplot/phplot.php on line 232

Fatal error: Call to undefined function: imagedestroy() in
/var/httpd/local/bacula/external_packages/phplot/phplot.php on line 256


Suggestions? Do I need to reinstall or recompile PHP?


--
========== Fight Back! It may not be just YOUR life at risk. ==========
alaric < at > ca... : phil-stracchino < at > ea... : phil < at > no...
phil stracchino : unix ronin : renaissance man : mystic zen biker geek
2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
Linux Now! ...Friends don't let friends use Microsoft.


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. http://www.ostg.com

Post bacula-web 
Hello Juan,
just downloaded and installed version 1.6.5 of PearDB with the same results.
If i should find some time to fix this error, i'll send you a patch.
Regards
Thomas

On 5 Aug 2004 at 10:46, Juan Luis Frances wrote:

Access to Postgresql and SQLite are untested. Really I don't know if
somebody has been able to do it to run.

Maybe you have a a old PearDB or bacula-web needs a few adjustments inside
code to work with Postgresql.

You can download the last version of PearDB from this link:
http://pear.php.net/package/DB/download

If upgrade solves your problem please tell me it.

If no, I hope somebody with Postgresql experience can make a patch. I haven't
time to do that and no experience with PG, sorry.

Best regards,
Juan Luis

On Thu, 05 Aug 2004 10:10:56 +0200 Thomas Kempf <listen < at > hu...> wrote:

Hello Juan,
I'm running bacula with a Postgres 7.3.4 Database. When i try to start bacula-
web it complains with:

"Fatal error: Call to undefined function: fetchrow() in /srv/www/bacula-
web_1.0/index.php on line 50"

Does it have to do with the following error beeing logged by Postgres:

ERROR: Function unix_timestamp(timestamp without time zone) does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts

Perhaps you know this problem already and could give me a hint ?
TIA


Regards Thomas






-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. http://www.ostg.com
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users




Re[2]: [Bacula-users] bacula-web From: Juan Luis Frances <bacula_list < at > ve...> - 2004-08-05 08:47

Hello Thomas,

Access to Postgresql and SQLite are untested. Really I don't know if
somebody has been able to do it to run.

Maybe you have a a old PearDB or bacula-web needs a few adjustments inside
code to work with Postgresql.

You can download the last version of PearDB from this link:
http://pear.php.net/package/DB/download

If upgrade solves your problem please tell me it.

If no, I hope somebody with Postgresql experience can make a patch. I haven't
time to do that and no experience with PG, sorry.

Best regards,
Juan Luis

On Thu, 05 Aug 2004 10:10:56 +0200 Thomas Kempf <listen < at > hu...> wrote:

Hello Juan,
I'm running bacula with a Postgres 7.3.4 Database. When i try to start bacula-
web it complains with:

"Fatal error: Call to undefined function: fetchrow() in /srv/www/bacula-
web_1.0/index.php on line 50"

Does it have to do with the following error beeing logged by Postgres:

ERROR: Function unix_timestamp(timestamp without time zone) does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts

Perhaps you know this problem already and could give me a hint ?
TIA


Regards Thomas


Post bacula-web 
On Thu, Aug 05, 2004 at 09:28:16AM +0200, Juan Luis Frances wrote:
Hello Phil,

Run "test.php" to view dependencies. Maybe you don't have installed GD
library for PHP and you need to reinstall PHP.

Yup, this turned out to be the case. Although I have GD installed, I
forgot that I *didn't* have it installed when I last installed PHP
(because I couldn't get GD to compile at the time).

--
========== Fight Back! It may not be just YOUR life at risk. ==========
alaric < at > ca... : phil-stracchino < at > ea... : phil < at > no...
phil stracchino : unix ronin : renaissance man : mystic zen biker geek
2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
Linux Now! ...Friends don't let friends use Microsoft.

Post bacula-web 
I install GD, but unstill don't work... I have to re-compile PHP??
or exist some other way?

THANK!!

Regards
--
________________
Carlos Molina M.
Ing. en Informática
Red Universitaria Nacional
Teléfono : (56-2)-3370332
E-mail : cmolina < at > re...

Juan Luis Frances ha escrito:

Hello Phil,

Run "test.php" to view dependencies. Maybe you don't have installed GD
library for PHP and you need to reinstall PHP.

Check that the GD support is activated when you compile php.

./configure --with-gd --with-jpeg --with-png --enable-sockets --with-gettext

GD: http://www.boutell.com/gd/

Best regards,
Juan Luis

On Wed, 4 Aug 2004 13:51:25 -0400 Phil Stracchino <alaric < at > ca...> wrote:

Juan,
I just installed bacula-web, and I get broken-image icons in several
places. When I try to view those images, I see this:


Fatal error: Call to undefined function: imagecreate() in
/var/httpd/local/bacula/external_packages/phplot/phplot.php on line 232

Fatal error: Call to undefined function: imagedestroy() in
/var/httpd/local/bacula/external_packages/phplot/phplot.php on line 256


Suggestions? Do I need to reinstall or recompile PHP?


--
========== Fight Back! It may not be just YOUR life at risk. ==========
alaric < at > ca... : phil-stracchino < at > ea... : phil < at > no...
phil stracchino : unix ronin : renaissance man : mystic zen biker geek
2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
Linux Now! ...Friends don't let friends use Microsoft.


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. http://www.ostg.com

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. http://www.ostg.com
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post bacula-web 
On Thu, Aug 05, 2004 at 03:11:13PM -0400, Carlos Molina M. wrote:
I install GD, but unstill don't work... I have to re-compile PHP??
or exist some other way?

Yes, you must recompile PHP after installing GD. Then restart your
webserver.

--
========== Fight Back! It may not be just YOUR life at risk. ==========
alaric < at > ca... : phil-stracchino < at > ea... : phil < at > no...
phil stracchino : unix ronin : renaissance man : mystic zen biker geek
2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
Linux Now! ...Friends don't let friends use Microsoft.

Post bacula-web 
On 5 Aug 2004 at 15:11, Carlos Molina M. wrote:

I install GD, but unstill don't work... I have to re-compile PHP??
or exist some other way?

I suspect you need to compile GD support into PHP.
--
Dan Langille : http://www.langille.org/

Post bacula-web 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I install GD, but unstill don't work... I have to re-compile PHP??
or exist some other way?

That depends on how you installed PHP in the first place. If you used the
packages from your distribution, you can usually find an additional package
that contains the GD module (under Debian that would be 'php4-gd'). If you
compiled it yourself you will have to recompile it with GD support.

Greetings,
Michel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32) - GPGrelay v0.94

iD8DBQFBEyf+2Vs+MkscAyURAp1nAJ4rdGseoa+K+xkS3n1QIFavXGvyRgCfSIQH
y+vQYKpiIkzJgLtK7XrX4Xs=
=f3Qj
-----END PGP SIGNATURE-----

Post bacula_web 
Attachments: Message as HTML

Dear list,

are there any news on the bacula_web-interface supporting postgres now?

Thank you

best
Stephan

--=20
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

Post bacula_web 
Hello Stephan,

I'm now overloaded of work.=20
I did a rudimentary support for pg. If you want I can send you my cvs versi=
on.

Best regards,
Juan Luis

El Lunes 25 Abril 2005 07:59, Stephan Holl escribi=F3:
Dear list,

are there any news on the bacula_web-interface supporting postgres now?

Thank you

best
Stephan

Post bacula_web 
Attachments: Message as HTML

Hello Juan,=20

On Tue, 26 Apr 2005 17:42:07 +0200 Juan Luis Frances
<bacula_list < at > ve...> wrote:

Hello Stephan,
=20
I'm now overloaded of work.=20
I did a rudimentary support for pg. If you want I can send you my cvs
version.

Oh, sorry. If you like you could send me your rudimentory CVS-version
and I will have a look at it soon.

Thank you.

Stephan

--=20
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

Post bacula-web 
hi,
Installed bacula-web but its not working as it says that
*Fatal error*: Call to undefined function: fetchrow() in
*/var/www/bacula/index.php* on line *47
*This is line 47 in index.php*
$tmp = $client->fetchRow();
*As I am not familiar with bacula-web classes and its structures I've no
idea.

Nils



AW: [Bacula-users] how to speed up directory tree building? From: <jk < at > we...> - 2005-06-21 10:29

Hello,

I observed the very same phenomenon but I run a PostgreSql instead of a =
MySql database.

I would restore a number of ~740.000 files backed up of one host via a =
full backup and several incrementals. But the database, to me, seems not =
to be the problem. The file entries from the database were collected =
fast but the 'backup-dir' daemon consumed the bigger part of time to =
build the virtual filesystem in the backup server's memory. Even worse =
if you then - after the built - type 'mark all' for a full restore, it =
takes again a lot of time to mark all the files in the virtal file =
system. The result of this action then is - this is what I observed - a =
very small ASCII bootstrap file for restore purposes with the names of =
the involved backup volumes the corresponding tapefiles numbers into the =
backups were written.

To me in a case of full restore it is not necessary to build a virtal =
filesystem in the backup server's memory. What you need is the =
information of all the involved backup volumes and the position of the =
corresponding tape files. For cases like this the pieces of information =
should be in the datebase (saveset 'something' -> volume name, tapefile =
number). This makes especially full restores with a huge number of files =
considerably faster.

J=FCrgen

-----Urspr=FCngliche Nachricht-----
Von: bacula-users-admin < at > li...
[mailto:bacula-users-admin < at > li...]Im Auftrag von Arno
Lehmann
Gesendet: Dienstag, 21. Juni 2005 10:43
An: Sebastian Stark
Cc: bacula-users < at > li...
Betreff: Re: [Bacula-users] how to speed up directory tree building?

Hello,

Sebastian Stark wrote:

Is there a way to speed up the creation of the directory tree when =
restoring=20
files? For some clients this takes more than an hour for us.
=20
Our MySQL catalog has grown quite large (~5G) and I think this is the =
reason.=20
But maybe there's another way to speed this up other than splitting up =
the=20
catalog? Maybe play around with indexes?

That would seem the first step.

There are quite some messages concerning this, you could use the list=20
archive. If you have a good understanding of SQL and MySQL, observing=20
the queries and analyzing them might give some hints, too.

Arno

=20
=20
Thanks,
Sebastian
=20

--=20
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. =
http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post bacula-web 
Quoting nils <lists < at > ol...>:
hi,
Installed bacula-web but its not working as it says that
*Fatal error*: Call to undefined function: fetchrow() in
*/var/www/bacula/index.php* on line *47
*This is line 47 in index.php*
$tmp = $client->fetchRow();
*As I am not familiar with bacula-web classes and its structures I've no
idea.


It looks to me like you are missing the PHP database library, e.g.,
php4-mysql, php4-psql, etc.

HTH,
Jeffrey

Post bacula-web 
On Tue, 2005-06-21 at 12:52 -0500, Jeffrey L. Taylor wrote:
Quoting nils <lists < at > ol...>:
hi,
Installed bacula-web but its not working as it says that
*Fatal error*: Call to undefined function: fetchrow() in
*/var/www/bacula/index.php* on line *47
*This is line 47 in index.php*
$tmp = $client->fetchRow();
*As I am not familiar with bacula-web classes and its structures I've no
idea.


It looks to me like you are missing the PHP database library, e.g.,
php4-mysql, php4-psql, etc.

HTH,
Jeffrey

Nope, I have all the php modules loaded mysql, sqlite
The bacula database is sqlite, and i have edited the bacula.conf to
specify this.
fetchRow is a pear DB.php It seem for doing a little googling
http://www.free2code.net/plugins/articles/read.php?id=260

down at the bottom is states that
<quote>
call to undefined function fetchRow() on line xxx

This happens because when you call $var->fetchRow(), $var contains an
error message, you must always use DB::IsError to check if the returned
object is an error.
</quote>

So adding error checking
if(DB::IsError($client)) {
die($client->getMessage();
}

returns

DB Error: no such table

Then looking at the SQL statments in index.php

<quote>

$client = $dbSql->link->query("select count(*) from Client")
or die ("Error query at row 37");
$totalfiles = $dbSql->link->query("select count(FilenameId) from
Filename")
or die ("Error query at row 39");
$last24bytes = $dbSql->link->query("select sum(JobBytes),count(*) from
Job where Endt$ or die ("Error query at row 41");
$bytes_stored =& $dbSql->link->getOne("select SUM(VolBytes) from Media")
or die ("Error query at row 43");
</quote>

Does pear DB.php only work with mysql/postgresql ? or are the tables
different in sqlite ?

nils



Re: AW: [Bacula-users] how to speed up directory tree building? From: Arno Lehmann <al < at > it...> - 2005-06-21 20:30

Hello,

J=FCrgen Kuri wrote:

Hello,
=20
I observed the very same phenomenon but I run a PostgreSql instead of a=
MySql database.

To my knowledge - without ever having used PostgreSQL - with this=20
database there seems to be some sort of problems with the indexes. This=20
was probably discussed with Dan Langille, either on this list or on=20
bacula-devel.

I would restore a number of ~740.000 files backed up of one host
via a full backup and several incrementals. But the database, to
me, seems not to be the problem. The file entries from the
database were collected fast but the 'backup-dir' daemon consumed
the bigger part of time to build the virtual filesystem in the
backup server's memory. Even worse if you then - after the built
- type 'mark all' for a full restore, it takes again a lot of
time to mark all the files in the virtal file system. The result
of this action then is - this is what I observed - a very small
ASCII bootstrap file for restore purposes with the names of the
involved backup volumes the corresponding tapefiles numbers into
the backups were written.

This sounds like a design limitation. Or, in other words, might be=20
better to discuss on the developer list.

To me in a case of full restore it is not necessary to build a
virtal filesystem in the backup server's memory. What you need
is the information of all the involved backup volumes and the
position of the corresponding tape files. For cases like this
the pieces of information should be in the datebase (saveset
'something' -> volume name, tapefile number). This makes
especially full restores with a huge number of files
considerably faster.

this sounds quite reasonable. Time to try a full restore again, I guess,=20
because I *think* that a full restore didn't take very long to prepare=20
here. Of course, with my backup server, *everything* is slow, so I=20
probably didn't notice the difference.

Anyway, considering that the suggested changes might take a while to=20
implement there could be a workaround in case of a full restore you need=20
quickly: Use bextract if you've got the bootstrap file and or know which=20
volmes you need.

J=FCrgen

Is c't planning an article about bacula? In fact I was thinking about=20
such a project...

Arno

-----Urspr=FCngliche Nachricht-----
Von: bacula-users-admin < at > li...
[mailto:bacula-users-admin < at > li...]Im Auftrag von Arno
Lehmann
Gesendet: Dienstag, 21. Juni 2005 10:43
An: Sebastian Stark
Cc: bacula-users < at > li...
Betreff: Re: [Bacula-users] how to speed up directory tree building?
=20
=20
Hello,
=20
Sebastian Stark wrote:
=20
=20
Is there a way to speed up the creation of the directory tree when rest=
oring=20
files? For some clients this takes more than an hour for us.

Our MySQL catalog has grown quite large (~5G) and I think this is the r=
eason.=20
But maybe there's another way to speed this up other than splitting up =
the=20
catalog? Maybe play around with indexes?
=20
=20
That would seem the first step.
=20
There are quite some messages concerning this, you could use the list=20
archive. If you have a good understanding of SQL and MySQL, observing=20
the queries and analyzing them might give some hints, too.
=20
Arno
=20
=20

Thanks,
Sebastian

=20
=20

--=20
IT-Service Lehmann al < at > it...
Arno Lehmann http://www.its-lehmann.de

Post bacula-web 
I have never test it with sqlite and your problem confirms my suspects.=20
Bacula-web actually is not working with sqlite. I just added it to my TODO=
=20
list.

If you want to make a patch you can see the CVS version at this link:=20
http://cvs.sourceforge.net/viewcvs.py/bacula/gui/

Best regards,
Juan Luis Franc=E9s

El Martes 21 Junio 2005 22:32, Nils Olofsson escribi=F3:
On Tue, 2005-06-21 at 12:52 -0500, Jeffrey L. Taylor wrote:
Quoting nils <lists < at > ol...>:
hi,
Installed bacula-web but its not working as it says that
*Fatal error*: Call to undefined function: fetchrow() in
*/var/www/bacula/index.php* on line *47
*This is line 47 in index.php*
$tmp =3D $client->fetchRow();
*As I am not familiar with bacula-web classes and its structures I've
no idea.

It looks to me like you are missing the PHP database library, e.g.,
php4-mysql, php4-psql, etc.

HTH,
Jeffrey

Nope, I have all the php modules loaded mysql, sqlite
The bacula database is sqlite, and i have edited the bacula.conf to
specify this.
fetchRow is a pear DB.php It seem for doing a little googling
http://www.free2code.net/plugins/articles/read.php?id=3D260

down at the bottom is states that
<quote>
call to undefined function fetchRow() on line xxx

This happens because when you call $var->fetchRow(), $var contains an
error message, you must always use DB::IsError to check if the returned
object is an error.
</quote>

So adding error checking
if(DB::IsError($client)) {
die($client->getMessage();
}

returns

DB Error: no such table

Then looking at the SQL statments in index.php

<quote>

$client =3D $dbSql->link->query("select count(*) from Client")
or die ("Error query at row 37");
$totalfiles =3D $dbSql->link->query("select count(FilenameId) from
Filename")
or die ("Error query at row 39");
$last24bytes =3D $dbSql->link->query("select sum(JobBytes),count(*) from
Job where Endt$ or die ("Error query at row 41");
$bytes_stored =3D& $dbSql->link->getOne("select SUM(VolBytes) from Media")
or die ("Error query at row 43");
</quote>

Does pear DB.php only work with mysql/postgresql ? or are the tables
different in sqlite ?

nils



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 2
Goto page 1, 2  Next
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB