Page MenuHomePhorge

Conduit does cannot sign requests using the almanac private key
Open, Needs TriagePublic

Description

[20-Aug-2022 20:25:43 UTC] [2022-08-20 20:25:43] EXCEPTION: (PhutilProxyException) Error while executing Task ID 166313. {>} (RuntimeException) openssl_sign(): supplied key param cannot be coerced into a private key at [<arcanist>/src/error/PhutilErrorHandler.php:261]
[20-Aug-2022 20:25:43 UTC] arcanist(head=f098e8d86373c0651616390a9db6bd215c9bd228, ref.master=85c953ebe4a6), phabricator(head=deploy-siberia, ref.master=9426765a2c6a, ref.deploy-siberia=6e8d5f6629e1)
[20-Aug-2022 20:25:43 UTC]   #0 <#2> PhutilErrorHandler::handleError(integer, string, string, integer, array) called at [<arcanist>/src/error/PhutilErrorHandler.php:261]
[20-Aug-2022 20:25:43 UTC]   #1 <#2> openssl_sign(string, NULL, string) called at [<arcanist>/src/conduit/ConduitClient.php:259]
[20-Aug-2022 20:25:43 UTC]   #2 <#2> ConduitClient::signRequest(string, array, array) called at [<arcanist>/src/conduit/ConduitClient.php:122]
[20-Aug-2022 20:25:43 UTC]   #3 <#2> ConduitClient::callMethod(string, array) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepository.php:2278]
[20-Aug-2022 20:25:43 UTC]   #4 <#2> PhabricatorRepository::newConduitFuture(PhabricatorUser, string, array) called at [<phabricator>/src/applications/repository/storage/PhabricatorRepositoryCommit.php:546]
[20-Aug-2022 20:25:43 UTC]   #5 <#2> PhabricatorRepositoryCommit::newCommitRef(PhabricatorUser) called at [<phabricator>/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php:19]
[20-Aug-2022 20:25:43 UTC]   #6 <#2> PhabricatorRepositoryCommitMessageParserWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:72]
[20-Aug-2022 20:25:43 UTC]   #7 <#2> PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:124]
[20-Aug-2022 20:25:43 UTC]   #8 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:160]
[20-Aug-2022 20:25:43 UTC]   #9 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
[20-Aug-2022 20:25:43 UTC]   #10 PhabricatorTaskmasterDaemon::run() called at [<phabricator>/src/infrastructure/daemon/PhutilDaemon.php:219]
[20-Aug-2022 20:25:43 UTC]   #11 PhutilDaemon::execute() called at [<phabricator>/scripts/daemon/exec/exec_daemon.php:131]

Event Timeline

Using a repository cluster for syncing repositories to two hosts I can push fine via ssh:

JMs-MacBook-Pro~/gitwork/repo(tg_transaction_otp|✔) % git push phab --all                                            
# Request received by "vault.ams.internal", forwarding to cluster host "repo001.ams.internal".
# Acquiring write lock for repository "repo"...
# Acquired write lock immediately.
# Acquiring read lock for repository "repo" on device "repo001.ams.internal"...
# Acquired read lock immediately.
# Device "repo001.ams.internal" is already a cluster leader and does not need to be synchronized.
# Ready to receive on cluster host "repo001.ams.internal.
Enumerating objects: 180, done.
Counting objects: 100% (150/150), done.
Delta compression using up to 4 threads
Compressing objects: 100% (37/37), done.
Writing objects: 100% (108/108), 26.15 KiB | 6.54 MiB/s, done.
Total 108 (delta 72), reused 95 (delta 61), pack-reused 0
remote: Resolving deltas: 100% (72/72), completed with 30 local objects.
# Released cluster write lock.
To ssh://vault.ams.internal/source/repo.git
 * [new branch]      tg_acb_parser -> tg_acb_parser
 * [new branch]      tg_bankaccounts_transactions_filter -> tg_bankaccounts_transactions_filter
 * [new branch]      tg_beneficiary_otp -> tg_beneficiary_otp
 * [new branch]      tg_customer_creation -> tg_customer_creation
 * [new branch]      tg_customer_limit -> tg_customer_limit
 * [new branch]      tg_form_nonce_issue -> tg_form_nonce_issue
 * [new branch]      tg_imports_refactoring -> tg_imports_refactoring
 * [new branch]      tg_otp_login -> tg_otp_login
 * [new branch]      tg_postilion_f01_parser -> tg_postilion_f01_parser
 * [new branch]      tg_provincies_api -> tg_provincies_api
 * [new branch]      tg_statements_pdf_export -> tg_statements_pdf_export
 * [new branch]      tg_system_accounts_filter -> tg_system_accounts_filter
 * [new branch]      tg_transaction_otp -> tg_transaction_otp
valerio.bozzolan subscribed.

(Re-adding Conduit as a non-subproject Tag since we have 5-6 tasks about it)