View Issue Details

IDProjectCategoryView StatusLast Update
0000247Bacula-Webbugpublic2018-07-01 10:54
ReporterdanillosoaresmAssigned Todavide 
PrioritynormalSeverityminorReproducibilityunable to reproduce
Status resolvedResolutionnot fixable 
PlatformLinuxOSCentOSOS Version7
Product Version7.0.0 
Target VersionFixed in Version 
Summary0000247: Application error - Bacula-Web
Description Application error
Details
A problem with the description below happen

Problem: Configuration error: catalog id <0> is empty or does not exist
Help
Have you tried to run the test page ?
Check the online documentation on Bacula-Web project site
Rebort a bug or suggest a new feature in the Bacula-Web's bugtracking tool
Debug
File: /var/www/html/bacula-web/application/libs/fileconfig.class.php
Line: 81
Code: 0
Exception trace
File: /var/www/html/bacula-web/core/bweb.class.php on line 90 in function FileConfig::get_Value
File: /var/www/html/bacula-web/core/app/webapplication.class.php on line 105 in function Bweb->init
File: /var/www/html/bacula-web/index.php on line 21 in function WebApplication->run
Steps To ReproduceError application access
TagsNo tags attached.

Activities

davide

2018-06-16 10:03

manager   ~0000773

Hello,

This mean something is not correctly set in application/config/config.php

Can you copy/paste your config please ?

Don’t forget password or any other sensitive information.

Best regards

danillosoaresm

2018-06-18 13:25

reporter   ~0000774

<?php

// Show inactive clients (false by default)
$config['show_inactive_clients'] = true;

// Hide empty pools (displayed by default)
$config['hide_empty_pools'] = false;

// Jobs per page (Jobs report page)
$config['jobs_per_page'] = 25;

// Translations
$config['language'] = 'pt_BR';

// Custom datetime format (by default: Y-m-d H:i:s)
// Examples
$config['datetime_format'] = 'd/m/Y H:i:s';
// $config['datetime_format'] = 'm-d-Y H:i:s';

// en_US -> English
// be_BY -> Belarusian
// ca_ES -> Catalan
// pl_PL -> Polish
// ru_RU -> Russian
// zh_CN -> Chinese
// no_NO -> Norwegian
// ja_JP -> Japanese
// sv_SE -> Swedish
// es_ES -> Spanish
// de_DE -> German
// it_IT -> Italian
// fr_FR -> French
// pt_BR -> Portuguese Brazil
// nl_NL -> Dutch

// Database connection parameters
// Copy/paste and adjust parameters according to your configuration

// For Unix socket connection, use parameters decribed below
// MySQL: use localhost for $config[0]['host']
// postGresql: do not define $config[0]['host']

// MySQL bacula catalog
// $config[0]['label'] = 'Backup Server';
// $config[0]['host'] = 'localhost';
// $config[0]['login'] = 'bacula';
// $config[0]['password'] = 'verystrongpassword';
// $config[0]['db_name'] = 'bacula';
// $config[0]['db_type'] = 'mysql';
// $config[0]['db_port'] = '3306';

 $config[1]['label'] = 'Bacula.CentOS7';
 $config[1]['host'] = 'localhost';
 $config[1]['login'] = 'bacula';
 $config[1]['password'] = 'strong***';
 $config[1]['db_name'] = 'bacula';
 $config[1]['db_type'] = 'mysql';
 $config[1]['db_port'] = '3306';
?>

davide

2018-06-18 13:36

manager   ~0000775

Replace $config[1] by $config[0] at the end of your config file and it should be ok

danillosoaresm

2018-06-18 16:57

reporter   ~0000776

I modified it from $ config [1] to $ config [0].
It worked!
The application no longer displays an error. However the application asked for username and password,
but I did not configure user and password in the installation of the web-bacula.
Could someone tell me what user and password it requires?

davide

2018-06-18 17:33

manager   ~0000777

Default username / password are in the documentation

http://docs.bacula-web.org/en/v8.0.0/02_install/finalize.html#install-finalize

danillosoaresm

2018-06-18 19:07

reporter   ~0000778

According to the documentation
http://docs.bacula-web.org/en/v8.0.0/02_install/finalize.html#install-finalize
the default user and password created in the installation is the: admin password: bacula.
My application does not accept the credentials reported in the documentation.
I'm sorry, but I'm new to using the system and I'm a little lost.
Here's the image of my application.
Thank you!

bacula-web.png (53,102 bytes)
bacula-web.png (53,102 bytes)

davide

2018-06-18 21:27

manager   ~0000779

Check web server log

davide

2018-06-19 09:36

manager   ~0000780

Also, make sure the file below exists and is readable & writable by web server user.
application/assets/protected/application.db

Hope it helps

davide

2018-06-27 09:26

manager   ~0000782

Hello,

Did you fix your problem ?
I'd be glad to help you to fix it if not.

Any feedback would be greatly appreciated.

Best regards

Davide

davide

2018-07-01 10:23

manager   ~0000797

Hello,

I got no feedback from you since more than 10 days, so I close this bug report.

Feel free to reopen it if you need more help.

Best regards

Issue History

Date Modified Username Field Change
2018-06-15 22:44 danillosoaresm New Issue
2018-06-16 10:00 davide Assigned To => davide
2018-06-16 10:00 davide Status new => assigned
2018-06-16 10:03 davide Note Added: 0000773
2018-06-18 13:25 danillosoaresm Note Added: 0000774
2018-06-18 13:36 davide Note Added: 0000775
2018-06-18 16:57 danillosoaresm Note Added: 0000776
2018-06-18 17:33 davide Note Added: 0000777
2018-06-18 19:07 danillosoaresm File Added: bacula-web.png
2018-06-18 19:07 danillosoaresm Note Added: 0000778
2018-06-18 21:27 davide Note Added: 0000779
2018-06-19 09:36 davide Note Added: 0000780
2018-06-27 09:26 davide Status assigned => feedback
2018-06-27 09:26 davide Note Added: 0000782
2018-07-01 10:23 davide Note Added: 0000797
2018-07-01 10:54 davide Status feedback => resolved
2018-07-01 10:54 davide Resolution open => not fixable