@sven
does this key has any acess limitation?
because when i used the command to create a group it returned "Unavailable" what does it mean !!!
+ gerrit_cmd ls-groups
+ ssh -i /home/gerrit/gerrit-site/etc/ssh_host_rsa_key -p 29418 'Gerrit Code Review@localhost' gerrit ls-groups
Administrators
Non-Interactive Users
test-admins
test-users
+ gerrit_cmd create-group test002
+ ssh -i /home/gerrit/gerrit-site/etc/ssh_host_rsa_key -p 29418 "Gerrit Code Review"@localhost gerrit create-group test002
unavailable
+ exit
in the server logs I see the reason as "Not Signed In" !!!
[2021-01-27T19:10:09.621+0530] [SSH gerrit create-group test002] ERROR com.google.gerrit.sshd.BaseCommand : Internal server error during gerrit create-group test002
com.google.gerrit.sshd.BaseCommand$Failure: unavailable
at com.google.gerrit.sshd.commands.CreateGroupCommand.run(CreateGroupCommand.java:119)
at com.google.gerrit.sshd.SshCommand.lambda$start$1(SshCommand.java:61)
at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:473)
at com.google.gerrit.server.logging.LoggingContextAwareRunnable.run(LoggingContextAwareRunnable.java:110)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:610)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Not Signed In
at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideCurrentUser(Unknown Source) (via modules: com.google.gerrit.server.config.GerritGlobalModule -> com.google.gerrit.server.util.ThreadLocalRequestContext$1)
while locating com.google.gerrit.server.IdentifiedUser
1 error
at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:226)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1097)
at com.google.gerrit.server.restapi.group.CreateGroup.apply(CreateGroup.java:168)
at com.google.gerrit.sshd.commands.CreateGroupCommand.createGroup(CreateGroupCommand.java:135)
at com.google.gerrit.sshd.commands.CreateGroupCommand.run(CreateGroupCommand.java:107)
... 11 more
Caused by: com.google.gerrit.exceptions.NotSignedInException: Not Signed In
at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideCurrentUser(ThreadLocalRequestContext.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.inject.internal.ProviderMethod$ReflectionProviderMethod.doProvision(ProviderMethod.java:286)
at com.google.inject.internal.ProviderMethod.doProvision(ProviderMethod.java:173)
at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.provision(InternalProviderInstanceBindingImpl.java:185)
at com.google.inject.internal.InternalProviderInstanceBindingImpl$CyclicFactory.get(InternalProviderInstanceBindingImpl.java:162)
at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1094)
... 14 more