View Issue Details

IDProjectCategoryView StatusLast Update
0000280Bacula-Webbugpublic2019-01-17 17:55
Reporterredmine.csiAssigned Todavide 
PriorityhighSeverityblockReproducibilityalways
Status assignedResolutionopen 
PlatformLinuxOSCentosOS Version6.10 - x64
Product Version8.1.0 
Target VersionFixed in Version 
Summary0000280: Allowed memory exhausted - 1GB?
Descriptionphp 5.6.38 (mod_php x Apache)
Apache 2.2.15
Centos 6.10
Bacula-Web 8.1.0
Mysql Ver. 5.7.24
PHP memory_limit -> 1024M
Steps To Reproduce1) Opening URL www.myserver.tld/bacula-web/index.php

2) Apache error log:
[30-Nov-2018 10:44:13 Europe/Rome] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 84 bytes) in /var/www/html/bacula-web/core/utils/cutils.class.php on line 66

3) A blank page
TagsNo tags attached.

Activities

davide

2018-11-30 16:50

manager   ~0000909

Hello,

Thanks for this bug report.

In order to help, I'd need the output of this command
$ locale


Thanks for your feedback

redmine.csi

2018-12-03 10:41

reporter   ~0000910

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

davide

2018-12-04 07:16

manager   ~0000911

Thanks for your feedback

I’ll try to reproduce your issue in my testing environment.

In the meantime, can you provide me your config.php file and Apache error log file please ?

Best regards

redmine.csi

2018-12-04 10:39

reporter   ~0000912

Hi Davide, in attachment the files required.

config.php (2,161 bytes)
error_log-20181202.log (2,518 bytes)

davide

2018-12-04 16:06

manager   ~0000913

Sorry but I was not able to reproduce the issue.

Can you provide me output of this small PHP script
<?php
var_dump(localeconv());

redmine.csi

2018-12-06 17:02

reporter   ~0000914

array(18) {
  ["decimal_point"]=>
  string(1) "."
  ["thousands_sep"]=>
  string(0) ""
  ["int_curr_symbol"]=>
  string(0) ""
  ["currency_symbol"]=>
  string(0) ""
  ["mon_decimal_point"]=>
  string(0) ""
  ["mon_thousands_sep"]=>
  string(0) ""
  ["positive_sign"]=>
  string(0) ""
  ["negative_sign"]=>
  string(0) ""
  ["int_frac_digits"]=>
  int(127)
  ["frac_digits"]=>
  int(127)
  ["p_cs_precedes"]=>
  int(127)
  ["p_sep_by_space"]=>
  int(127)
  ["n_cs_precedes"]=>
  int(127)
  ["n_sep_by_space"]=>
  int(127)
  ["p_sign_posn"]=>
  int(127)
  ["n_sign_posn"]=>
  int(127)
  ["grouping"]=>
  array(0) {
  }
  ["mon_grouping"]=>
  array(0) {
  }
}

davide

2018-12-10 08:55

manager   ~0000915

Thanks for your feedback.

Another thing, did you run the bwc checker ?

http://docs.bacula-web.org/en/v8.1.0/02_install/test.html#using-bacula-web-console

redmine.csi

2018-12-10 11:14

reporter   ~0000916

Of course,
The first check I made, no problem found :(

By the way, I've a simple question:
* Can I use memcache with Bacula-Web?

davide

2018-12-10 20:08

manager   ~0000917

Thanks for your feedback.

So now I'm running out of idea, hard to do a diagnostic without access to the system.

Next release will include a "debug mode" on the application level.
In the meantime, can you try to add this to index.php and see if you see any warnings/errors ?
<?php
ini_set('display_errors', 'On');
error_reporting(E_ALL | E_STRICT);


Regarding memcache, it is not supported, but if you think it's worth to add support to memcache in Bacula-Web, feel free to create a feature request here

Best regards

redmine.csi

2018-12-12 10:20

reporter   ~0000918

Ok,
rows added, here the results:
[12-Dec-2018 10:13:18 Europe/Rome] PHP Warning: PDOStatement::execute(): MySQL server has gone away in /var/www/html/bacula-web/core/app/cmodel.class.php on line 127
[12-Dec-2018 10:13:18 Europe/Rome] PHP Warning: PDOStatement::execute(): Error reading result set's header in /var/www/html/bacula-web/core/app/cmodel.class.php on line 127

davide

2018-12-12 11:52

manager   ~0000919

Great ! Thanks for your feedback.

The provided output gives me some tips to find and fix the issue.

I'll let you know once I've a patch for your.

Best regards

davide

2018-12-27 14:55

manager   ~0000926

Sorry for being late answering this bug report, I've been too busy over the last few days.

I'll get back to you with a patch asap.

davide

2018-12-27 15:02

manager   ~0000927

In this warning
[30-Nov-2018 10:44:13 Europe/Rome] PHP Fatal error: Allowed memory size of 314572800 bytes exhausted (tried to allocate 84 bytes) in /var/www/html/bacula-web/core/utils/cutils.class.php on line 66

I can read "Allowed memory size of 314572800 bytes" which means only 300 MBytes allowed memory for PHP.

Can you check your php.ini ?

redmine.csi

2018-12-31 14:44

reporter   ~0000931

Strange my PHP.ini say 1024Mb.

Capture.PNG (2,722 bytes)
Capture.PNG (2,722 bytes)

davide

2019-01-05 10:34

manager   ~0000934

Last edited: 2019-01-05 10:34

View 2 revisions

Hello,

First of all, happy new year !!! :)

Can you create a small mem.php script in the root of your Bacula-Web folder
<?php
 echo 'memory limit = ' . ini_get('memory_limit') . "\n";

and run the script from your web browser ?
http://host/path/to/bacula-web/mem.php

Thanks for your feedback

redmine.csi

2019-01-07 14:32

reporter   ~0000941

output:
memory limit = 1024M

davide

2019-01-09 16:50

manager   ~0000942

Sorry to answer late on this ...
After some investigations, I think the PHP PDO connection timeout at some point using the Dashboard page.

Can you tell me if you experience the same problem using another page like the one below ?
http://server/bacula-web/index.php?page=volumes
http://server/bacula-web/index.php?page=pools
http://server/bacula-web/index.php?page=test

Can you check in the database server log if you see anything when you display the dashboard page ?

Thanks for your feedback.

redmine.csi

2019-01-14 17:15

reporter   ~0000943

Same error, no evidence inside MySQL log.

davide

2019-01-15 16:14

manager   ~0000944

Hello,

I've spent some time on this issue trying to reproduce the problem and I think I've found why it doesn't work for you.

The issue might come from missing <thousands_sep> value in your locale.

Can you try to patch your Bacula-Web setup using the patch provided (see link below)

https://www.bacula-web.org/download/patch-issue-280/

Instructions to apply the patch are included in the download page

Thanks for your feedback

redmine.csi

2019-01-17 10:48

reporter   ~0000945

Ok,
fixed, work fine!

Thanks a lot.

davide

2019-01-17 17:55

manager   ~0000946

Perfect, happy to know it fixed the problem :)

I'll add this bug fix to next release and maybe improve a bit translation back-end to avoid that kind of issues.

Issue History

Date Modified Username Field Change
2018-11-30 11:07 redmine.csi New Issue
2018-11-30 16:50 davide Assigned To => davide
2018-11-30 16:50 davide Status new => feedback
2018-11-30 16:50 davide Note Added: 0000909
2018-12-03 10:41 redmine.csi Note Added: 0000910
2018-12-03 10:41 redmine.csi Status feedback => assigned
2018-12-04 07:16 davide Status assigned => feedback
2018-12-04 07:16 davide Note Added: 0000911
2018-12-04 10:39 redmine.csi File Added: config.php
2018-12-04 10:39 redmine.csi File Added: error_log-20181202.log
2018-12-04 10:39 redmine.csi Note Added: 0000912
2018-12-04 10:39 redmine.csi Status feedback => assigned
2018-12-04 16:06 davide Status assigned => feedback
2018-12-04 16:06 davide Note Added: 0000913
2018-12-06 17:02 redmine.csi Note Added: 0000914
2018-12-06 17:02 redmine.csi Status feedback => assigned
2018-12-10 08:55 davide Note Added: 0000915
2018-12-10 11:14 redmine.csi Note Added: 0000916
2018-12-10 20:08 davide Note Added: 0000917
2018-12-12 10:20 redmine.csi Note Added: 0000918
2018-12-12 11:52 davide Note Added: 0000919
2018-12-27 14:55 davide Note Added: 0000926
2018-12-27 15:02 davide Status assigned => feedback
2018-12-27 15:02 davide Note Added: 0000927
2018-12-31 14:44 redmine.csi File Added: Capture.PNG
2018-12-31 14:44 redmine.csi Note Added: 0000931
2018-12-31 14:44 redmine.csi Status feedback => assigned
2019-01-05 10:34 davide Status assigned => feedback
2019-01-05 10:34 davide Note Added: 0000934
2019-01-05 10:34 davide Note Edited: 0000934 View Revisions
2019-01-07 14:32 redmine.csi Note Added: 0000941
2019-01-07 14:32 redmine.csi Status feedback => assigned
2019-01-09 16:50 davide Status assigned => feedback
2019-01-09 16:50 davide Note Added: 0000942
2019-01-14 17:15 redmine.csi Note Added: 0000943
2019-01-14 17:15 redmine.csi Status feedback => assigned
2019-01-15 16:14 davide Status assigned => feedback
2019-01-15 16:14 davide Note Added: 0000944
2019-01-17 10:48 redmine.csi Note Added: 0000945
2019-01-17 10:48 redmine.csi Status feedback => assigned
2019-01-17 17:55 davide Note Added: 0000946