My Gerrit environment details,
Gerrit Version: 2.15
Database: MYSQL-5.7.22
Gerrit portal Authentication: Crowd (Microsoft AD based)
Problem:-
Recently we have upgraded our gerrit version from 2.14.7 to 2.15, post migration, I am unable to view the (accounts and account_external_ids) from our MYSQL DB.
I have gone through the release notes of gerrit –V-2.15 and found that accounts details are fully stored in NoteDB.
MYSQL Command - show tables; doesn’t show the account details, As I need to delete few user accounts from the MYSQL-DB, So could you help me to view and delete (accounts & account_external_ids) details from our MYSQL-DB.
Recently we have upgraded our gerrit version from 2.14.7 to 2.15, post migration, I am unable to view the (accounts and account_external_ids) from our MYSQL DB.
I have gone through the release notes of gerrit –V-2.15 and found that accounts details are fully stored in NoteDB.
MYSQL Command - show tables; doesn’t show the account details, As I need to delete few user accounts from the MYSQL-DB, So could you help me to view and delete (accounts & account_external_ids) details from our MYSQL-DB.
--
--
To unsubscribe, email repo-discuss...@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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Team, So I need to add the below in our All-Users repository under access section correct?
If yes what all are the reference do I need add, please advise.
1) refs/users/* (user branches)
2) refs/meta/external-ids (external IDs)
3) refs/starred-changes/* (star labels)
4) refs/sequences/accounts (account sequence numbers, not needed for Gerrit slaves)
Team, So I need to add the below in our All-Users repository under access section correct?
If yes what all are the reference do I need add, please advise.
1) refs/users/* (user branches)
2) refs/meta/external-ids (external IDs)
3) refs/starred-changes/* (star labels)
4) refs/sequences/accounts (account sequence numbers, not needed for Gerrit slaves)
Team, as per the release notes instruction (https://gerrit-review.googlesource.com/Documentation/config-accounts.html)
I have cloned the ALL-Users repository locally and currently I am unable to view branches details, logs and folders inside in master branch. below screenshot is for reference.
Am i checking in right way or not, kindly guide me.
Also unable to checkout external-ids branch. i am using gerrit 2.15 Version.
$ git checkout refs/meta/external-ids
error: pathspec 'refs/meta/external-ids' did not match any file(s) known to git.
On Thursday, May 3, 2018 at 9:27:52 AM UTC+5:30, Mohan Kumar wrote:Team, as per the release notes instruction (https://gerrit-review.googlesource.com/Documentation/config-accounts.html)
I have cloned the ALL-Users repository locally and currently I am unable to view branches details, logs and folders inside in master branch. below screenshot is for reference.
Am i checking in right way or not, kindly guide me.
On Wednesday, May 2, 2018 at 5:59:09 PM UTC+5:30, Mohan Kumar wrote:Ok thank you for the clarification. Yes i would need to delete 3 accounts manually in our MYSQL DB. Earlier had deleted from DB. Now for the same when I tried to desc accounts it doesn't exists since it moved to NoteDB. Now I m looking for way to delete.
--
Okay. I tried below steps, still couldn’t I am unable to get it.
1) $ git clone ssh://moh...@100.101.102.103:29418/All-Users
Cloning into 'All-Users'...
warning: remote HEAD refers to nonexistent ref, unable to checkout.
2) $ cd All-Users/
3) $ git fetch --all
Fetching origin
4) $ git branch –av
Okay. I tried below steps, still couldn’t I am unable to get it.
1) $ git clone ssh://moh...@100.101.102.103:29418/All-Users
Cloning into 'All-Users'...
warning: remote HEAD refers to nonexistent ref, unable to checkout.
2) $ cd All-Users/
3) $ git fetch --all
On Thu, May 3, 2018 at 8:55 AM Mohan Kumar <moha...@gmail.com> wrote:Okay. I tried below steps, still couldn’t I am unable to get it.
1) $ git clone ssh://moh...@100.101.102.103:29418/All-Users
Cloning into 'All-Users'...
warning: remote HEAD refers to nonexistent ref, unable to checkout.
2) $ cd All-Users/
3) $ git fetch --all
Are you sure that this fetches non refs/heads/ branches?
Okay, is there any way is there to deactivate the user account instead of deleting. Also still I am unable to fetch the branches.
$ git fetch origin refs/users/*
fatal: Invalid refspec 'refs/users/*'
$ git fetch origin refs/meta/external-ids
fatal: Couldn't find remote ref refs/meta/external-ids
Ok since directly modifying the repo files will impact the DB. So i will try to deactive the accounts through ssh.setaccount commands. Thanks team for continues help.
Team,
$ ssh -p 29418 gerrit-server mohan.s set-account --full-name ‘Karthi Keyan S' --inactive
fatal: Gerrit Code Review: set-account: not found
Getting above error, do I need to add any settings in my gerrit.config file? Kindly confirm.
Team,
$ ssh -p 29418 gerrit-server mohan.s set-account --full-name ‘Karthi Keyan S' --inactive
fatal: Gerrit Code Review: set-account: not found
Getting above error, do I need to add any settings in my gerrit.config file? Kindly confirm.
On Thursday, May 3, 2018 at 5:54:11 PM UTC+5:30, Mohan Kumar wrote:Hi Gert, Thank you. Acutally i was trying to clone from another machine which didn't work.then as per your instruction tried in gerrit server itself. I m able to view the accounts and extetnal I'D details.Ok since directly modifying the repo files will impact the DB. So i will try to deactive the accounts through ssh.setaccount commands. Thanks team for continues help.
--
Yes it worked. Actually I thought gerrit is account login-id(same i replaced with my gerrit admin account). Thank you.