Hello Marcin, On Tue, 2015-09-15 at 17:02 +0200, Marcin Haba wrote: > Hello Ulrich, > > Thank you for your patch. > > Could you describe what is the problem with bconsole access that you > mentioned? I will try to reproduce the issue, but so far I have not > experienced Baculum problem with bconsole. Your bug description and > system environment parameters will be precious information for me. >
the apache /var/log/httpd/error_log shows the following warning: sh: line 3: warning: here-document at line 0 delimited by end-of-file (wanted `END_OF_DATA') the warning is gone with my patch, it's only a warning but i think it should be fixed. i do have other issues with baculum which is very memory hungry. in /etc/php.ini i have raised memory_limit to 2G which is still not enough for our installation. [Tue Sep 15 17:08:33.471993 2015] [:error] [pid 30559] [client 192.168.3.58:48906] PHP Fatal error: Allowed memory size of 2122317824 bytes exhausted (tried to allocate 49737772 bytes) in /var/www/html/baculum/framework/Web/THttpSession.php on line 144, referer: http://prisma.obvsg.at/baculum/ our bacula installation has about 137244 finisched jobs, more than 100 configured jobs and clients. we are running bacula on CentOS Linux release 7.1.1503 (Core), x86_64 compiled from git Branch-7.2. do you have an tips to limit baculum resources ? the old bweb from 5.2 does not have any problems with our setup. Best regards Ulrich > Thank you in advance for these information. > > Best regards. > Marcin Haba (gani) > > 2015-09-15 16:17 GMT+02:00 Ulrich Leodolter < > ulrich.leodol...@obvsg.at>: > > Hi, > > > > here is my patch which fixes a baculum console problem. > > > > ---cut--- > > diff --git a/gui/baculum/protected/Class/Bconsole.php > > b/gui/baculum/protected/Class/Bconsole.php > > index 89113d0..d26c508 100644 > > --- a/gui/baculum/protected/Class/Bconsole.php > > +++ b/gui/baculum/protected/Class/Bconsole.php > > @@ -28,7 +28,7 @@ class Bconsole extends TModule { > > > > const SUDO = 'sudo'; > > > > - const BCONSOLE_COMMAND_PATTERN = "%s%s -c %s %s > > <<END_OF_DATA\n%s\nquit\n<<END_OF_DATA"; > > + const BCONSOLE_COMMAND_PATTERN = "%s%s -c %s %s > > <<END_OF_DATA\n%s\nquit\nEND_OF_DATA"; > > > > const BCONSOLE_DIRECTORS_PATTERN = "%s%s -c %s -l"; > > > > ---cut--- > > > > > > Best regards > > Ulrich > > -- > > Ulrich Leodolter <ulrich.leodol...@obvsg.at> > > Oesterreichische Bibliothekenverbund und Service GmbH > > Raimundgasse 1/3, A-1020 Wien > > Fax +43 1 4035158-30 > > Tel +43 1 4035158-21 > > Web http://www.obvsg.at > > > > > > > > > > ------------------------------------------------------------------- > > ----------- > > _______________________________________________ > > Bacula-devel mailing list > > Bacula-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bacula-devel > > ------------------------------------------------------------------------------ _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel