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

[BUG] Bookstack deployment fails with DB error #215

Open
mrcwatling opened this issue Dec 16, 2020 · 1 comment
Open

[BUG] Bookstack deployment fails with DB error #215

mrcwatling opened this issue Dec 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mrcwatling
Copy link

mrcwatling commented Dec 16, 2020

Describe the bug
When I try and deploy Bookstack the installation completed but I am unable to access bookstack and when I go to the log of the container the following error is listed saying that the docker cannot connect to the database. The database is created but the container can't access it.

To Reproduce
Steps to reproduce the behavior:
Just ran the basic install, after the install completes I was unable to login and checked the logs. I have tried to install on V1 with portainer 1.2.4. and I have tried V2 with portainer 2.0.0 both fail

Portainer Logs
Running config - db_user set
/var/run/s6/etc/cont-init.d/50-config: line 77: warning: command substitution: ignored null byte in input
/var/run/s6/etc/cont-init.d/50-config: line 77: warning: command substitution: ignored null byte in input
Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'bookstack'@'bookstack.bookstack_default' (using password: YES) (SQL: select * from information_schema.tables where table_schema = bookstackapp and table_name = migrations and table_type = 'BASE TABLE')
at /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669
665| // If an exception occurs when attempting to run a query, we'll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database's errors.
668| catch (Exception $e) {

669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|
Exception trace:
1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'bookstack'@'bookstack.bookstack_default' (using password: YES)")
/var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31
2 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'bookstack'@'bookstack.bookstack_default' (using password: YES)")
/var/www/html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27
Please use the argument -v to see more details.
[cont-init.d] 50-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.'

Any one else having this issue and any way to correct it?

@mrcwatling mrcwatling added the bug Something isn't working label Dec 16, 2020
@giterium
Copy link

giterium commented Feb 5, 2021

I have the same thing :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants