Gerrit ssh cli commands not found

700 views
Skip to first unread message

euphxenos

unread,
Feb 15, 2017, 7:15:31 PM2/15/17
to Repo and Gerrit Discussion
We're running Gerrit 2.13.4.  I have an abandoned change that I want to delete.  We have the force-draft plugin installed, so I was going to turn the review into a draft, then delete it.  I was able to use force-draft, but ran into a problem with Gerrit not finding the review command:

[alawrence@localhost ~]$ ssh -p 29418 gerrit force-draft 6522,1
Patch set successfully set to draft.
Every patch set in change is draft, change set to draft.

[alawrence@localhost ~]$ ssh -p 29418 gerrit review --delete 6522,1
fatal: Gerrit Code Review: review: not found

Clearly, I am able to access the server over ssh and run a cli command, since force-draft worked, but I can't run other commands over ssh.  It doesn't even find version:

[alawrence@localhost ~]$ ssh -p 29418 gerrit version
fatal: Gerrit Code Review: version: not found

Why would it let me run one command over ssh but not even be able to find the others?


thanks,
--Andrew

David Ostrovsky

unread,
Feb 16, 2017, 12:05:49 AM2/16/17
to Repo and Gerrit Discussion

On Thursday, February 16, 2017 at 1:15:31 AM UTC+1, euphxenos wrote:
We're running Gerrit 2.13.4.  I have an abandoned change that I want to delete.  We have the force-draft plugin installed, so I was going to turn the review into a draft, then delete it.  I was able to use force-draft, but ran into a problem with Gerrit not finding the review command:

[alawrence@localhost ~]$ ssh -p 29418 gerrit force-draft 6522,1
Patch set successfully set to draft.
Every patch set in change is draft, change set to draft.

[alawrence@localhost ~]$ ssh -p 29418 gerrit review --delete 6522,1
fatal: Gerrit Code Review: review: not found

it should be:

  $ ssh -p 29418 gerrit gerrit review --delete 6522,1

What you must provide is: ssh host command options

host: "gerrit"
command: "gerrit"

euphxenos

unread,
Feb 16, 2017, 12:59:28 PM2/16/17
to Repo and Gerrit Discussion
Thanks David; I just wasn't seeing it.  That was the problem.


thanks again,
--Andrew 

Reply all
Reply to author
Forward
0 new messages