Troubleshooting

  1. Permission denied error when saving Bacula configuration

Error 1000: Internal error.
[Warning] file_put_contents(/etc/bacula/bacula-dir.conf): failed to open stream:
Permission denied (@line 56 in file
/usr/share/baculum/htdocs/protected/Common/Class/ConfigBacula.php).

Web server user of the Baculum API requires read/write access to the Bacula configuration files. It requires manual administrator action to set proper permission to files. Baculum does not solve this issue automatically.

  1. Error 1000 when you go to Volumes page

Error 1000 - Internal error. [Warning] strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. (@line 135 in file /usr/share/baculum/htdocs/protected/API/Class/VolumeManager.php).

To solve this error please set a timezone in the PHP configuration file. You can do it the php.ini file, for example:

date.timezone = "Europe/Warsaw"

To check your timezone, please look at the list of all timezones possible to set in the php.ini file.

  1. Time fields contain invalid date/time values

Wrong timezone is set in the PHP configuration. To fix it, please update “date.timezone” option in the php.ini file, for example:

date.timezone = "Europe/Warsaw"

To check your timezone, please look at the list of all timezones possible to set in the php.ini file.

  1. The job history list or the job files table is empty

The reason can be a try to load too many elements, for example 20,000 jobs. In this case please check the web server logs for the Baculum API and the Baculum Web to make sure, that it is because of exhausted PHP memory limit.

[Error] Allowed memory size of 125829120 bytes exhausted (tried to allocate 1167360 bytes) (@line 262 in file /usr/share/baculum/htdocs/protected/API/Class/BaculumAPIServer.php).

If it is this case, you can solve in in two ways:

  • setting lower elements limit in the Baculum Web application settings (gearwheel icon on the top left side of page),

  • increasing memory limit for PHP by setting in php.ini file for example:

memory_limit = 256M