Page MenuHomePhabricator

pre-receive hook declined failure during git push
Closed, ResolvedPublic


This past 2 days, I recently ran into this issue while trying to push to our hosted instance of phabricator.

  1. Push received by "designcentersw-01", forwarding to cluster host.
  2. Waiting up to 120 second(s) for a cluster write lock...
  3. Acquired write lock immediately.
  4. Waiting up to 120 second(s) for a cluster read lock on "designcentersw-02"...
  5. Acquired read lock immediately.
  6. Device "designcentersw-02" is already a cluster leader and does not need to be synchronized.
  7. Ready to receive on cluster host "designcentersw-02".

Counting objects: 3, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 440 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 2 (delta 1)
remote: [2017-02-06 23:35:42] EXCEPTION: (CommandException) Command failed with error #128!
remote: COMMAND
remote: git log --format='%H' 'ac4220f1eb15dd3c74f096d9a4783754afd6fdec' --not --all
remote: STDOUT
remote: (empty)
remote: STDERR
remote: fatal: bad object ac4220f1eb15dd3c74f096d9a4783754afd6fdec
remote: at [<phutil>/src/future/exec/ExecFuture.php:369]
remote: arcanist(head=stable, ref.master=e5be662d15a8, ref.stable=e17fe43ca3fe), libphremoteuser(head=master, ref.master=eedcadbdd28b), phabricator(head=stable, ref.master=07ea4e6f74e2, ref.stable=27464c96e80d, custom=1), phutil(head=stable, ref.master=9c03af69571f, ref.stable=89984ac20059)
remote: #0 ExecFuture::resolvex() called at [<phabricator>/src/applications/diffusion/engine/DiffusionCommitHookEngine.php:565]
remote: #1 DiffusionCommitHookEngine::findGitContentUpdates(array) called at [<phabricator>/src/applications/diffusion/engine/DiffusionCommitHookEngine.php:250]
remote: #2 DiffusionCommitHookEngine::findContentUpdates(array) called at [<phabricator>/src/applications/diffusion/engine/DiffusionCommitHookEngine.php:133]
remote: #3 DiffusionCommitHookEngine::execute() called at [<phabricator>/scripts/repository/commit_hook.php:186]

Released cluster write lock.

To ssh://
! [remote rejected] cgm_sw_r2.0.1er2 -> cgm_sw_r2.0.1er2 (pre-receive hook declined)
! [remote rejected] r6.1.2-er1 -> r6.1.2-er1 (pre-receive hook declined)
! [remote rejected] r6.1.2-ga -> r6.1.2-ga (pre-receive hook declined)
error: failed to push some refs to 'ssh://'
git push --all designcentersw

Event Timeline

We don't accept bug reports from out of date installs, nor without steps the upstream can follow and reproduce.

Can you update your install and provide more detailed steps for us to follow? See Contributing Bug Reports for more information.

UPDATE: This issue seems to have been addressed by upgrading to the latest codebase.

okay I will try to update and test