Skip to content

phabricator.daemon can't be connection mariadb container,how to correct? #32

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

Closed
empiregeneral opened this issue Jun 28, 2020 · 5 comments

Comments

@empiregeneral
Copy link

root@63021b62cca1:/var/www/phabricator/bin# ./phd start
[2020-06-28 09:46:09] PHLOG: 'Retrying database connection to "localhost" after connection failure (attempt 1; "AphrontConnectionQueryException"; error #2002): Attempt to connect to root@localhost failed with error #2002: No such file or directory.' at [/var/www/phabricator/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:135]
[2020-06-28 09:46:09] PHLOG: 'Retrying database connection to "localhost" after connection failure (attempt 2; "AphrontConnectionQueryException"; error #2002): Attempt to connect to root@localhost failed with error #2002: No such file or directory.' at [/var/www/phabricator/src/infrastructure/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:135]
[2020-06-28 09:46:09] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable.

AphrontConnectionQueryException: Attempt to connect to root@localhost failed with error #2002: No such file or directory. at [/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:177]
arcanist(), phabricator()
#0 PhabricatorLiskDAO::raiseUnreachable(string, AphrontConnectionQueryException) called at [/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:134]
#1 PhabricatorLiskDAO::newClusterConnection(string, string, string) called at [/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:70]
#2 PhabricatorLiskDAO::establishLiveConnection(string) called at [/src/infrastructure/storage/lisk/LiskDAO.php:841]
#3 LiskDAO::establishConnection(string) called at [/src/infrastructure/storage/lisk/LiskDAO.php:518]
#4 LiskDAO::loadRawDataWhere(string, string) called at [/src/infrastructure/storage/lisk/LiskDAO.php:478]
#5 LiskDAO::loadAllWhere(string, string) called at [/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:18]
#6 PhabricatorConfigDatabaseSource::loadConfig(string) called at [/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]
#7 PhabricatorConfigDatabaseSource::__construct(string) called at [/src/infrastructure/env/PhabricatorEnv.php:262]
#8 PhabricatorEnv::buildConfigurationSourceStack(boolean) called at [/src/infrastructure/env/PhabricatorEnv.php:95]
#9 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [/src/infrastructure/env/PhabricatorEnv.php:75]
#10 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [/scripts/init/lib.php:26]
#11 init_phabricator_script(array) called at [/scripts/init/init-script.php:9]
#12 require_once(string) called at [/scripts/init_script.php:3]
#13 require_once(string) called at [/scripts/daemon/manage_daemons.php:5]

@davidbarratt
Copy link
Contributor

davidbarratt commented Jun 28, 2020

Phabricator Daemon should start whenever the container starts:

CMD phd start \
&& tail -f /var/tmp/phd/log/daemons.log

That container needs to share the same config file:
- config:/var/www/phabricator/conf/local

as the main conainer:
- config:/var/www/phabricator/conf/local

@gusarg81
Copy link

Hi, I have the same problem, and the only thing I've changed in docker_compose.json is the mariadb passwd and the port to 3003.
phabricator_daemon_1 does not start because of that either:

[2020-07-23 12:42:24] EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable.

AphrontInvalidCredentialsQueryException: #1045: Access denied for user 'root'@'172.20.0.1' (using password: YES) at [/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:177]

@baldonharris
Copy link

Hi. Any updates on how to resolve this? Having the same issue with @gusarg81

@davidbarratt
Copy link
Contributor

Did you set phabricator's configuration as I mentioned in #32 (comment) ?

You cannot configuration phabricator through environment variables, it must be configured through the config file.

@davidbarratt
Copy link
Contributor

Please let me know if you have any other problems. :)

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

No branches or pull requests

4 participants