View Issue Details

IDProjectCategoryView StatusLast Update
0000249Bacula-Webbug-sqlitepublic2018-07-01 10:55
ReporterfabianovieiraAssigned Todavide 
PrioritynormalSeverityblockReproducibilityunable to reproduce
Status resolvedResolutionfixed 
Product Version8.0.1 
Target VersionFixed in Version 
Summary0000249: SQLSTATE[HY000] [14] unable to open database file
DescriptionDetails
A problem with the description below happen

Problem: SQLSTATE[HY000] [14] unable to open database file

Debug
File: /var/www/html/baculaweb/core/db/cdb.class.php
Line: 42
Code: 14
Exception trace
File: /var/www/html/baculaweb/core/db/cdb.class.php on line 42 in function PDO->__construct
File: /var/www/html/baculaweb/core/app/userauth.class.php on line 49 in function CDB->connect
File: /var/www/html/baculaweb/core/app/webapplication.class.php on line 33 in function UserAuth->__construct
File: /var/www/html/baculaweb/core/app/webapplication.class.php on line 104 in function WebApplication->setup
File: /var/www/html/baculaweb/index.php on line 21 in function WebApplication->run
Additional InformationOS: Debian 8.8 Jessie
Apache 2, PHP5, MYSQL
TagsNo tags attached.

Relationships

related to 0000252 resolveddavide Missing permissions steps in Install from archive chapter 

Activities

davide

2018-06-28 17:21

manager   ~0000783

Last edited: 2018-06-28 17:32

View 2 revisions

I think you need to install php-sqlite.

And make sure application/assets/protected folder is owned by Apache user (www-data on Debian).

Hope it helps

Best regards

Davide

fabianovieira

2018-06-28 18:14

reporter   ~0000784

"php5-sqlite" is already installed and all folders is owned by apache user (www-data).

davide

2018-06-28 19:29

manager   ~0000785

Which version of PHP do you use ?

Did you check Apache error log ?

I’ll check tomorrow what can cause this

fabianovieira

2018-06-28 20:06

reporter   ~0000786

PHP Version 5.6.36-0+deb8u1 (attachment)

Did you check Apache error log ?
Yes, but i did not find anything wrong

* The version 7.4.0 worked without any error, only version 8.0.1 causes this problem.

phpversion.JPG (143,568 bytes)
phpversion.JPG (143,568 bytes)
apache-log.JPG (106,424 bytes)
apache-log.JPG (106,424 bytes)

davide

2018-06-28 20:30

manager   ~0000788

Can you run this command for me please ?

& find application/assets/protected/ -ls

Thank you

fabianovieira

2018-06-28 20:32

reporter   ~0000789

yes ..

root@storage:/var/www/html/baculaweb# find application/assets/protected/ -ls
1851395 4 dr-xr-xr-x 2 www-data www-data 4096 Jun 22 11:53 application/assets/protected/
1839281 4 -r-xr-xr-x 1 www-data www-data 98 Jun 22 11:53 application/assets/protected/.htaccess

davide

2018-06-28 20:43

manager   ~0000790

The folder application/assets/protected needs to be writable by Apache user

$ sudo chmod -v 775 application/assets/protected

It should work like this

I just noticed that the documentation is missing some steps (install from archive).
Here below in Composer install it’s correct
http://docs.bacula-web.org/en/v8.0.1/02_install/installcomposer.html#install-installcomposer

p.s: if this command doesn’t fix the problem, I’ll send a Php script to setup the users database

Best regards

fabianovieira

2018-06-28 20:59

reporter   ~0000791

Perfect, it's working.

Sorry, I did not find this information in the installation steps.

Thanks a lot!

davide

2018-07-01 10:25

manager   ~0000798

Hello,

Fantastic ! Happy to know that it's working for you now.

I'll fix the missing installation steps (from archive) for next release.

Best regards

Issue History

Date Modified Username Field Change
2018-06-28 17:03 fabianovieira New Issue
2018-06-28 17:19 davide Assigned To => davide
2018-06-28 17:19 davide Status new => assigned
2018-06-28 17:21 davide Note Added: 0000783
2018-06-28 17:32 davide Note Edited: 0000783 View Revisions
2018-06-28 18:14 fabianovieira Note Added: 0000784
2018-06-28 19:29 davide Status assigned => feedback
2018-06-28 19:29 davide Note Added: 0000785
2018-06-28 20:06 fabianovieira File Added: phpversion.JPG
2018-06-28 20:06 fabianovieira File Added: apache-log.JPG
2018-06-28 20:06 fabianovieira Note Added: 0000786
2018-06-28 20:06 fabianovieira Status feedback => assigned
2018-06-28 20:30 davide Note Added: 0000788
2018-06-28 20:32 fabianovieira Note Added: 0000789
2018-06-28 20:43 davide Note Added: 0000790
2018-06-28 20:59 fabianovieira Note Added: 0000791
2018-07-01 10:25 davide Note Added: 0000798
2018-07-01 10:52 davide Relationship added related to 0000252
2018-07-01 10:55 davide Status assigned => resolved
2018-07-01 10:55 davide Resolution open => fixed