Hi,
I am trying to access the gerrit database via ssh psql and stuck with the "does not have Access Database capability." message:
I did the following steps (with gerrit v2.12.7):
$ java -jar gerrit.war init -d ~/gerrit --batch --dev
$ git config -f gerrit/etc/gerrit.config --add capability.accessDatabase 'group Administrators'
$ git config -f gerrit/etc/gerrit.config --get capability.accessDatabase
group Administrators
$ ~/gerrit/bin/gerrit.sh restart
Stopping Gerrit Code Review: OK
Starting Gerrit Code Review: OK
$ ssh -p 29418 admin@localhost gerrit ls-groups
Administrators
Non-Interactive Users
$ ssh -p 29418 admin@localhost gerrit gsql
fatal: admin does not have "Access Database" capability.
What am I doing wrong?
Best regards,
Simon
--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wed, Feb 15, 2017 at 9:45 AM, <simon....@siemens.com> wrote:Hi,
I am trying to access the gerrit database via ssh psql and stuck with the "does not have Access Database capability." message:
I did the following steps (with gerrit v2.12.7):
$ java -jar gerrit.war init -d ~/gerrit --batch --dev
$ git config -f gerrit/etc/gerrit.config --add capability.accessDatabase 'group Administrators'
$ git config -f gerrit/etc/gerrit.config --get capability.accessDatabase
group AdministratorsCapabilities are not configured in gerrit.config, but in the project.config in the refs/meta/config branch of the All-Projects repository.At best just assign this capability on the All-Projects project from the UI.
Should I stop/restart/start gerrit?
Are there any other implications?