Fresh Install DB Connection Issue
sysPass Version 3.0
Describe the bug Initial installation enter all related information particularly the DB User/Password information. The Password is being sent in an encrypted format. It almost looks like it's Base64 Encoded, but even decoding it does not show the password entered on the initial setup screen.
To Reproduce Steps to reproduce the behavior:
- Start with clean database (
CREATE DATABASE syspass_example) - Create user for the database: (
GRANT ALL PRIVILEGES on syspass_example.* TO 'syspass_example'@'localhost' IDENTIFIED BY 'password';) - Flush privileges and quit MySQL (
FLUSH PRIVILEGES; quit;) - Go to url to attempt installation: (https://syspass.example.com/syspass)
- Enter relevant information into the from and press install.
Expected behavior We should be able to initialize and install our database and start setting up our manager.
Screenshots
If applicable, add screenshots to help explain your problem.

Event log
Some lines from syspass.log file (within config directory) and sysPass event log that were logged when the error happened.
Platform (please complete the following information):
- OS: CentOS
- OS 7
- Browser (All)
Additional context PHP-FPM error log:
[07-Jan-2019 14:43:00 UTC] [INFO] [SP\Core\PhpExtensionChecker::checkMandatory] Extensions checked
[07-Jan-2019 14:43:00 UTC] [INFO] [SP\Core\UI\Theme::saveIcons] Saved icons cache
[07-Jan-2019 14:43:00 UTC] [INFO] [SP\Core\Acl\Actions::loadCache] Loaded actions cache
[07-Jan-2019 14:43:00 UTC] [EXCEPTION] [N/A] Unable to connect to DB
#0 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(94): SP\Storage\Database\MySQLHandler->getConnectionSimple()
#1 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#2 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(260): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#3 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(181): SP\Services\Install\Installer->setupDb()
#4 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(93): SP\Services\Install\Installer->install()
#5 /var/www/html/syspass/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#6 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#7 /var/www/html/syspass/lib/SP/Bootstrap.php(234): call_user_func_array(Array, Array)
#8 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#9 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(879): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#11 /var/www/html/syspass/lib/SP/Bootstrap.php(456): Klein\Klein->dispatch(Object(Klein\Request))
#12 /var/www/html/syspass/lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#13 /var/www/html/syspass/index.php(28): require('/var/www/html/s...')
#14 {main}
[07-Jan-2019 14:43:00 UTC] [EXCEPTION] [N/A] (P) SQLSTATE[HY000] [1045] Access denied for user 'syspass_example'@'localhost' (using password: YES)
#0 /var/www/html/syspass/lib/SP/Storage/Database/MySQLHandler.php(173): PDO->__construct('mysql:charset=u...', 'syspass_example', 'FDeigXwuwkIhmCC...', Array)
#1 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(94): SP\Storage\Database\MySQLHandler->getConnectionSimple()
#2 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#3 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(260): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#4 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(181): SP\Services\Install\Installer->setupDb()
#5 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(93): SP\Services\Install\Installer->install()
#6 /var/www/html/syspass/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#7 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#8 /var/www/html/syspass/lib/SP/Bootstrap.php(234): call_user_func_array(Array, Array)
#9 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(879): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#11 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#12 /var/www/html/syspass/lib/SP/Bootstrap.php(456): Klein\Klein->dispatch(Object(Klein\Request))
#13 /var/www/html/syspass/lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#14 /var/www/html/syspass/index.php(28): require('/var/www/html/s...')
#15 {main}
[07-Jan-2019 14:43:00 UTC] [EXCEPTION] [N/A] Unable to connect to DB
#0 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#1 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(260): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#2 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(181): SP\Services\Install\Installer->setupDb()
#3 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(93): SP\Services\Install\Installer->install()
#4 /var/www/html/syspass/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#5 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#6 /var/www/html/syspass/lib/SP/Bootstrap.php(234): call_user_func_array(Array, Array)
#7 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#8 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(879): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#9 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/syspass/lib/SP/Bootstrap.php(456): Klein\Klein->dispatch(Object(Klein\Request))
#11 /var/www/html/syspass/lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#12 /var/www/html/syspass/index.php(28): require('/var/www/html/s...')
#13 {main}
[07-Jan-2019 14:43:00 UTC] [EXCEPTION] [N/A] (P) Unable to connect to DB
#0 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(94): SP\Storage\Database\MySQLHandler->getConnectionSimple()
#1 /var/www/html/syspass/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#2 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(260): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#3 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(181): SP\Services\Install\Installer->setupDb()
#4 /var/www/html/syspass/lib/SP/Services/Install/Installer.php(93): SP\Services\Install\Installer->install()
#5 /var/www/html/syspass/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#6 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#7 /var/www/html/syspass/lib/SP/Bootstrap.php(234): call_user_func_array(Array, Array)
#8 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#9 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(879): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/syspass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#11 /var/www/html/syspass/lib/SP/Bootstrap.php(456): Klein\Klein->dispatch(Object(Klein\Request))
#12 /var/www/html/syspass/lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#13 /var/www/html/syspass/index.php(28): require('/var/www/html/s...')
#14 {main}
- OF PARTICULAR NOTE:
[07-Jan-2019 14:43:00 UTC] [EXCEPTION] [N/A] (P) SQLSTATE[HY000] [1045] Access denied for user 'syspass_example'@'localhost' (using password: YES)
#0 /var/www/html/syspass/lib/SP/Storage/Database/MySQLHandler.php(173): PDO->__construct('mysql:charset=u...', 'syspass_example', 'FDeigXwuwkIhmCC...', Array)
Notice the "Password" is showing as 'FDeigXwuwklhmCC...'
The password I entered for the field was literally password
I know the user (syspass_example) and the password allow me access to the mysql instance. Something is not decoding the password or is encrypting it before it even tries to establish a connection.
Hello, it seems that you're trying to install sysPass using an existing empty database and your own connection user. Although it isn't needed for a normal installation, if you want to use your own connection data, hosting mode need to be enabled. The normal way would be to let sysPass create its own connection data and database by using a privileged user (can be other than root).
Regarding the encryption, all application forms are sent encrypted using RSA algorithm.
Regards
If you see the screenshot, I did have "hosted" mode enabled.
Oops, sorry...
I will add, that I did try with the mysql root user and another privileged user on the mysql instance, both with and without "hosting mode" and all of them returned in the same manner. (Access denied using password yes).
I'll check out what could be happening since tests went fine and I've successfully installed it using both ways (hosting and normal).
Thanks for the feedback!
If there's anything you'd like me to try please let me know.
Also, any word on supporting PHP 7.3?
Deprecated items: http://php.net/manual/en/migration73.deprecated.php
As far as I could tell, you're not using anything that relies on the deprecated elements (with the exception of mcrypt library which is installed through epel repo.
Regarding PHP 7.3 it should be fully supported and as you pointed, mcrypt was deprecated, but it would be used only if you're importing an XML exported file from v2.0 or earlier. Since v2.1 encryption was switched to OpenSSL tools.
As soon as I get any find outs I'll let you know.
I was able to install sysPass last night but today when attempting installations from git or the two most recent releases I am running into the same issue with a remote mysql db.
syspass.log:
2019-01-07 15:41:49 [EXCEPTION] [N/A] (P) SQLSTATE[HY000] [1045] Access denied for user 'redacted'@'redacted' (using password: YES)
#0 /var/www/html/hush.linewebsites.com/lib/SP/Storage/Database/MySQLHandler.php(172): PDO->__construct('mysql:charset=u...', 'redacted', 'redacted', Array)
#1 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/MySQL.php(94): SP\Storage\Database\MySQLHandler->getConnectionSimple()
#2 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#3 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(266): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#4 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(182): SP\Services\Install\Installer->setupDb()
#5 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(94): SP\Services\Install\Installer->install()
#6 /var/www/html/hush.linewebsites.com/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#7 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#8 /var/www/html/hush.linewebsites.com/lib/SP/Bootstrap.php(228): call_user_func_array(Array, Array)
#9 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/hush.linewebsites.com/vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#11 /var/www/html/hush.linewebsites.com/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#12 /var/www/html/hush.linewebsites.com/lib/SP/Bootstrap.php(463): Klein\Klein->dispatch(Object(Klein\Request))
#13 /var/www/html/hush.linewebsites.com/lib/Base.php(72): SP\Bootstrap::run(Object(DI\Container))
#14 /var/www/html/hush.linewebsites.com/index.php(28): require('/var/www/html/h...')
#15 {main}
2019-01-07 15:41:49 [EXCEPTION] [N/A] Unable to connect to DB
#0 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#1 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(266): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#2 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(182): SP\Services\Install\Installer->setupDb()
#3 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(94): SP\Services\Install\Installer->install()
#4 /var/www/html/hush.linewebsites.com/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#5 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#6 /var/www/html/hush.linewebsites.com/lib/SP/Bootstrap.php(228): call_user_func_array(Array, Array)
#7 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#8 /var/www/html/hush.linewebsites.com/vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#9 /var/www/html/hush.linewebsites.com/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/hush.linewebsites.com/lib/SP/Bootstrap.php(463): Klein\Klein->dispatch(Object(Klein\Request))
#11 /var/www/html/hush.linewebsites.com/lib/Base.php(72): SP\Bootstrap::run(Object(DI\Container))
#12 /var/www/html/hush.linewebsites.com/index.php(28): require('/var/www/html/h...')
#13 {main}
2019-01-07 15:41:49 [EXCEPTION] [N/A] (P) Unable to connect to DB
#0 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/MySQL.php(94): SP\Storage\Database\MySQLHandler->getConnectionSimple()
#1 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#2 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(266): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#3 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(182): SP\Services\Install\Installer->setupDb()
#4 /var/www/html/hush.linewebsites.com/lib/SP/Services/Install/Installer.php(94): SP\Services\Install\Installer->install()
#5 /var/www/html/hush.linewebsites.com/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#6 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#7 /var/www/html/hush.linewebsites.com/lib/SP/Bootstrap.php(228): call_user_func_array(Array, Array)
#8 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#9 /var/www/html/hush.linewebsites.com/vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/hush.linewebsites.com/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#11 /var/www/html/hush.linewebsites.com/lib/SP/Bootstrap.php(463): Klein\Klein->dispatch(Object(Klein\Request))
#12 /var/www/html/hush.linewebsites.com/lib/Base.php(72): SP\Bootstrap::run(Object(DI\Container))
#13 /var/www/html/hush.linewebsites.com/index.php(28): require('/var/www/html/h...')
By any changes, do you have SELinux enabled ?
If yes, verify httpd_can_network_connect_db value.
You may temporarily disable SElinux with setenforce 0 and test again.
If it works, you may allow httpd to connect to mysql with:
setsebool -P httpd_can_network_connect_db 1
This should resolve the remote connection trouble at least.
Hey @nuxsmin - I'm having the same problem with syspass v3 php7.2 and 7.1 haven't tried 7.0.
I'm trying to use a remote db, but for some reason what I'm seeing in the logs is the following:
[EXCEPTION] [N/A] (P) SQLSTATE[HY000] [1045] Access denied for user 'sp_5c34faf87353f'@XXXX' (using password: YES) not sure where sp_5c34faf87353f is coming from.
@deajan - I tried running the command you posted, but with no luck.
We have our installation on an EC2 instance, selinux is disabled. I had issues with the admin password I had set up previously so I thought a quick re-install would do the trick. Upon reinstalling I am greeted with this new SQL connection issue. I suppose it's possible an updated dependency is causing the issue.
The database credentials I am using work if entered manually via mysql -u root -p.
There are other web applications running using the same RDS instance and credentials.
In my case selinux is set to permissive, firewalld is disabled and stopped.
@knightowl1000
not sure where sp_5c34faf87353f is coming from.
It comes from sysPass. This is the user created to connect the application with the database.
@navarro967
I suppose it's possible an updated dependency is causing the issue.
Database connection is done through PDO, a native PHP connection wrapper. The underlying driver would be the installed by the OS package manager. Are you using mysqlnd?
@mastacontrola
I can't figure out this issue, since automated tests are done using every available method.
https://travis-ci.org/nuxsmin/sysPass/builds/474300056
Did you try to install using Docker?. https://doc.syspass.org/en/3.0/installing/docker.html
Anyway, I'll try to find out a solution. Thanks for the feedback!
@nuxsmin
Yes, we are using mysqlnd:
[root@ip-172-31-82-11 centos]# php -v
PHP 7.2.10 (cli) (built: Nov 16 2018 15:24:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
v10.3.2, Copyright (c) 2002-2018, by ionCube Ltd.
[root@ip-172-31-82-11 centos]# php -m | grep -E '(pdo|mysqlnd)'
mysqlnd
pdo_mysql
pdo_sqlite
@navarro967
Do the user and password logged match with the entered through the installer?
@nuxsmin
The user is correct, however, the password is not.
@nuxsmin - hmm. I wonder why i'm getting an error then. The user i'm using to connect to the db is not root, but it has global full privileges. I'm using the docker image on centos 7.
Speaking of different passwords, mine is the same as I typed in but missing 1 character. Instead it has a ...
Here are my logs:
2019-01-08 19:21:35 [EXCEPTION] [N/A] (P) SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
#0 /var/www/html/sysPass/lib/SP/Storage/Database/MySQLHandler.php(173): PDO->__construct('mysql:charset=u...', 'admin', 'xxxxxxxxxxx...', Array)
#1 /var/www/html/sysPass/lib/SP/Services/Install/MySQL.php(94): SP\Storage\Database\MySQLHandler->getConnectionSimple()
#2 /var/www/html/sysPass/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#3 /var/www/html/sysPass/lib/SP/Services/Install/Installer.php(260): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#4 /var/www/html/sysPass/lib/SP/Services/Install/Installer.php(181): SP\Services\Install\Installer->setupDb()
#5 /var/www/html/sysPass/lib/SP/Services/Install/Installer.php(93): SP\Services\Install\Installer->install()
#6 /var/www/html/sysPass/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#7 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#8 /var/www/html/sysPass/lib/SP/Bootstrap.php(234): call_user_func_array(Array, Array)
#9 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/sysPass/vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#11 /var/www/html/sysPass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#12 /var/www/html/sysPass/lib/SP/Bootstrap.php(456): Klein\Klein->dispatch(Object(Klein\Request))
#13 /var/www/html/sysPass/lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#14 /var/www/html/sysPass/index.php(28): require('/var/www/html/s...')
#15 {main}
2019-01-08 19:21:35 [EXCEPTION] [N/A] Unable to connect to DB
#0 /var/www/html/sysPass/lib/SP/Services/Install/MySQL.php(72): SP\Services\Install\MySQL->connectDatabase()
#1 /var/www/html/sysPass/lib/SP/Services/Install/Installer.php(260): SP\Services\Install\MySQL->__construct(Object(SP\Services\Install\InstallData), Object(SP\Config\ConfigData))
#2 /var/www/html/sysPass/lib/SP/Services/Install/Installer.php(181): SP\Services\Install\Installer->setupDb()
#3 /var/www/html/sysPass/lib/SP/Services/Install/Installer.php(93): SP\Services\Install\Installer->install()
#4 /var/www/html/sysPass/app/modules/web/Controllers/InstallController.php(87): SP\Services\Install\Installer->run(Object(SP\Services\Install\InstallData))
#5 [internal function]: SP\Modules\Web\Controllers\InstallController->installAction()
#6 /var/www/html/sysPass/lib/SP/Bootstrap.php(234): call_user_func_array(Array, Array)
#7 [internal function]: SP\Bootstrap->SP\{closure}(Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#8 /var/www/html/sysPass/vendor/klein/klein/src/Klein/Klein.php(886): call_user_func(Object(Closure), Object(Klein\Request), Object(Klein\Response), Object(Klein\ServiceProvider), Object(Klein\App), Object(Klein\Klein), Object(Klein\DataCollection\RouteCollection), Array)
#9 /var/www/html/sysPass/vendor/klein/klein/src/Klein/Klein.php(588): Klein\Klein->handleRouteCallback(Object(Klein\Route), Object(Klein\DataCollection\RouteCollection), Array)
#10 /var/www/html/sysPass/lib/SP/Bootstrap.php(456): Klein\Klein->dispatch(Object(Klein\Request))
#11 /var/www/html/sysPass/lib/Base.php(75): SP\Bootstrap::run(Object(DI\Container))
#12 /var/www/html/sysPass/index.php(28): require('/var/www/html/s...')
#13 {main}
@knightowl1000
Instead it has a
...
It's normal, since some fields are truncated in stacktraces.
@mastacontrola
Really weird (using latest Docker image)...

@nuxsmin - hmm. not sure why then syspass is getting cannot connect to db.
Database and user setup:

Anyway, I'll set up a CentOS environment for testing (used to run Debian)