View Issue Details

IDProjectCategoryView StatusLast Update
0000294Bacula-Websecurity-issuepublic2019-03-09 08:31
ReporterdeckAssigned Todavide 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
Product Version8.2.1 
Target VersionFixed in Version 
Summary0000294: Users authentication database not found
Descriptionhi all.. anyone can help me to fix this prob ??

 Application error
Details
A problem with the description below happen

Problem: Users authentication database not found, have a look at the chapter Installation / Finalize your setup in the documentation
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/htdocs/bacula/core/app/userauth.class.php
Line: 68
Code: 0
Exception trace
File: /var/www/htdocs/bacula/core/app/webapplication.class.php on line 49 in function UserAuth->checkSchema
File: /var/www/htdocs/bacula/core/app/webapplication.class.php on line 134 in function WebApplication->setup
File: /var/www/htdocs/bacula/index.php on line 21 in function WebApplication->run

my config files is
<?php

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

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

// 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';

// Security
$config['enable_users_auth'] = true;

// Debug mode
$config['debug'] = true;

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

// 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'] = 'root';
//$config[0]['password'] = 'mankind74';
//$config[0]['db_name'] = 'bacula';
//$config[0]['db_type'] = 'mysql';
//$config[0]['db_port'] = '3306';

// postgreSQL bacula catalog
// $config[0]['label'] = 'Prod Server';
// $config[0]['host'] = 'db-server.domain.com';
// $config[0]['login'] = 'bacula';
// $config[0]['password'] = 'otherstrongpassword';
// $config[0]['db_name'] = 'bacula';
// $config[0]['db_type'] = 'pgsql';
// $config[0]['db_port'] = '5432';

// SQLite bacula catalog
// $config[0]['label'] = 'Dev backup server';
// $config[0]['db_type'] = 'sqlite';
// $config[0]['db_name'] = '/path/to/database/db.sdb';
// Copy the section below only if you have at least two Bacula catalog
// Don't forget to modify options such as label, host, login, password, etc.

// 2nd bacula catalog (MySQL)
$config[0]['label'] = 'Dev backup server';
$config[0]['host'] = 'localhost';
$config[0]['login'] = 'XXXXXXXX';
$config[0]['password'] = 'XXXXXXXXXX';
$config[0]['db_name'] = 'bacula';
$config[0]['db_type'] = 'mysql';
$config[0]['db_port'] = '3306';

username for mysql login is root and passwd still remain the same.. tq all
TagsNo tags attached.

Activities

davide

2019-03-08 08:35

manager   ~0000980

Hello,
I think you've missed one step
http://docs.bacula-web.org/en/v8.2.1/02_install/finalize.html#install-finalize

Hope it helps

deck

2019-03-08 08:46

reporter   ~0000981

hi davide .. thanx for the reply .. but i dont get u.. which step im missed?? add a new user or others step ? for ur info , im using linux slackware ver 14.2 .. pls help

bacula.JPG (101,613 bytes)
bacula.JPG (101,613 bytes)

davide

2019-03-08 08:49

manager   ~0000982

Hello,

You missed the "user creation" step.

It's good idea to check your setup first before creating a user.
http://docs.bacula-web.org/en/v8.2.1/02_install/test.html#using-bacula-web-console

Hope it helps

deck

2019-03-08 09:04

reporter   ~0000983

sorry bro.. i still dont know what to do ..

1.where is bacula-web installation's folder ??
2. user creation --> means i need to adduser for bacula ?? the documentation is too simple without any step

bacula2.JPG (66,236 bytes)
bacula2.JPG (66,236 bytes)

davide

2019-03-08 09:29

manager   ~0000984

Hello,
No problem, I'll try to help.

Bacula-Web installation folder is the location where you've installed Bacula-Web.
It is the path you in your last screenshot.

To be able to use Bacula-Web, you need to create at least one user.
So from the root of Bacula-Web installation folder, /var/www/htdocs/bacula in your case, run the command below

Move to the installation folder
$ cd  /var/www/htdocs/bacula

Test your setup first
$ sudo -u apache php bwc check

Create a Bacula-Web user
$ sudo -u apache php bwc setupauth


Hope it helps

deck

2019-03-08 09:39

reporter  

bacula3.JPG (183,604 bytes)
bacula3.JPG (183,604 bytes)

deck

2019-03-08 09:39

reporter   ~0000985

tq davide.. done installation .. but new error come out .. about the timezone

davide

2019-03-08 14:40

manager   ~0000986

http://docs.bacula-web.org/en/v8.2.1/02_install/configwebserver.html#php

davide

2019-03-09 08:30

manager   ~0000987

Last edited: 2019-03-09 08:31

View 2 revisions

Problem solved, closing this bug report.

Issue History

Date Modified Username Field Change
2019-03-08 02:36 deck New Issue
2019-03-08 08:33 davide Description Updated View Revisions
2019-03-08 08:35 davide Note Added: 0000980
2019-03-08 08:35 davide Assigned To => davide
2019-03-08 08:35 davide Status new => assigned
2019-03-08 08:46 deck File Added: bacula.JPG
2019-03-08 08:46 deck Note Added: 0000981
2019-03-08 08:49 davide Note Added: 0000982
2019-03-08 09:04 deck File Added: bacula2.JPG
2019-03-08 09:04 deck Note Added: 0000983
2019-03-08 09:29 davide Note Added: 0000984
2019-03-08 09:39 deck File Added: bacula3.JPG
2019-03-08 09:39 deck Note Added: 0000985
2019-03-08 14:40 davide Note Added: 0000986
2019-03-09 08:30 davide Status assigned => resolved
2019-03-09 08:30 davide Resolution open => no change required
2019-03-09 08:31 davide Note Added: 0000987
2019-03-09 08:31 davide Note Edited: 0000987 View Revisions