Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baikal installation requires the SQLite drive for PHP #466

Closed
lcorbasson opened this issue Feb 20, 2016 · 17 comments
Closed

Baikal installation requires the SQLite drive for PHP #466

lcorbasson opened this issue Feb 20, 2016 · 17 comments
Labels

Comments

@lcorbasson
Copy link

This may be related to #82:
When installing Baikal v0.3.3, if the SQLite driver for PHP is not installed, the database configuration page in the installation process breaks with an error 500; here's the Apache error log message:

[Sat Feb 20 16:41:27.172802 2016] [:error] [pid 26459] [client 0.0.0.0:48562] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[28000] [1045] Access denied for user 'user'@'localhost' (using password: NO)' in /srv/webapps/baikal/Core/Frameworks/Flake/Core/Database/Mysql.php:50\nStack trace:\n#0 /srv/webapps/baikal/Core/Frameworks/Flake/Core/Database/Mysql.php(50): PDO->__construct('mysql:host=;dbn...', '', '')\n#1 /srv/webapps/baikal/Core/Frameworks/Flake/Framework.php(282): Flake\\Core\\Database\\Mysql->__construct('', '', '', '')\n#2 /srv/webapps/baikal/Core/Frameworks/Flake/Framework.php(229): Flake\\Framework::initDbMysql()\n#3 /srv/webapps/baikal/Core/Frameworks/Flake/Framework.php(223): Flake\\Framework::initDb()\n#4 /srv/webapps/baikal/Core/Frameworks/BaikalAdmin/WWWRoot/install/index.php(50): Flake\\Framework::bootstrap()\n#5 {main}\n thrown in /srv/webapps/baikal/Core/Frameworks/Flake/Core/Database/Mysql.php on line 50, referer: https://example.org/admin/install/

@evert
Copy link
Member

evert commented Feb 20, 2016

I just released 0.3.4, solving a problem with installation. Could you give that a shot and report back?

@evert evert added the bug label Feb 20, 2016
@perfect7gentleman
Copy link

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/localhost/htdocs/baikal/Core/Frameworks/Flake/Core/Database/Mysql.php:49 Stack trace: #0 /var/www/localhost/htdocs/baikal/Core/Frameworks/Flake/Core/Database/Mysql.php(49): PDO->__construct('mysql:host=;dbn...', '', '') #1 /var/www/localhost/htdocs/baikal/Core/Frameworks/Flake/Framework.php(281): Flake\Core\Database\Mysql->__construct('', '', '', '') #2 /var/www/localhost/htdocs/baikal/Core/Frameworks/Flake/Framework.php(229): Flake\Framework::initDbMysql() #3 /var/www/localhost/htdocs/baikal/Core/Frameworks/Flake/Framework.php(223): Flake\Framework::initDb() #4 /var/www/localhost/htdocs/baikal/html/admin/install/index.php(50): Flake\Framework::bootstrap() #5 {main} thrown in /var/www/localhost/htdocs/baikal/Core/Frameworks/Flake/Core/Database/Mysql.php on line 49

nginx, php7, clean install, 0.3.4

@perlbo
Copy link

perlbo commented Feb 23, 2016

the Specific Folder in 0.3.4.zip is empty (except enable-install) . I think that could be the problem.

@evert
Copy link
Member

evert commented Feb 23, 2016

@perlbo , no it is actually expected that it's empty now. The file inside this folder should be created by the installer.

@perfect7gentleman the error message you provide does indicate an error, but for me I'm getting something that looks a bit like this:

screenshot 2016-02-23 16 33 10

But that red-box error message is currently expected, and something I want to fix in the future. That error message does not prevent you from continuing setup... but I guess you are getting the error message in a different way?

So at what point are you actually getting that error? Is it after having setup mysql, or immediately after clicking the 'Use MySQL' checkbox?

@perfect7gentleman
Copy link

@evert, I upgraded 0.2.7 to 0.3.4. Now it's okay.
I didn't try clean install anymore.

@evert
Copy link
Member

evert commented Feb 23, 2016

alright =)

@ErikBasalt
Copy link

I got this after the initialization wizard:

The FOLDER containing the DB file is not writable, and it has to.
Please give write permissions on folder '/volume1/web/baikal/Specific/db'

Workaround is to create an empty db folder first.

@evert
Copy link
Member

evert commented Feb 24, 2016

Ah weird, there was no db folder already? Fairly sure I included an empty one in the zip.

@ghost
Copy link

ghost commented Feb 24, 2016

ah funny ... just wanted to confirm that i have the same Problem.
The trick with the emtpy db folder is working for me too :)

@evert
Copy link
Member

evert commented Feb 24, 2016

Super weird. What platform / unzip program did you guys use?

@ghost
Copy link

ghost commented Feb 24, 2016

debian 8 + unzip

@evert
Copy link
Member

evert commented Feb 24, 2016

thanks, I'll think I'll just drop a little hidden file in that directory to make sure it gets retained.

@evert evert closed this as completed Feb 24, 2016
@evert evert reopened this Feb 24, 2016
@evert evert closed this as completed in 45e9722 Feb 24, 2016
@ErikBasalt
Copy link

Windows7 + windows explorer or 7zip.
In 0.3.4 release, I only see Specific/ENABLE_INSTALL, no db.

@evert
Copy link
Member

evert commented Feb 24, 2016

I just had a look, and when I look at the zip I don't see the db folder either. Oddly enough, rebuilding the zip does include it. I'm thinking there might be a difference during zipping, as I use both OS X and linux on a regular basis.

Anyway, it will be included in the next release.

@ErikBasalt
Copy link

Thanks ;-)

@evert
Copy link
Member

evert commented Feb 24, 2016

Just released 0.3.5, fixing this. If your installation is working now you don't need to upgrade though.

@ErikBasalt
Copy link

0.3.5 fixed it indeed.
Thanks once again.

/Erik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants