"500 internal server error" in Gerrit

2,752 views
Skip to first unread message

Gaurav Negi

unread,
Mar 16, 2015, 9:28:06 PM3/16/15
to Repo and Gerrit Discussion
Dear Gerrit Experts
 I have installed gerrit in my staging environment but trying to add the ssh keys giving me 

"500 internal server error"


Inline image 1

 I am not able to add my keys also. 


Gerrit logs says something like. 

[2015-03-16 18:20:06,808] ERROR com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET /accounts/self/sshkeys

java.lang.IllegalStateException: Missing project All-Projects

        at com.google.gerrit.server.project.ProjectCacheImpl.getAllProjects(ProjectCacheImpl.java:101)

If you have any idea, please let me know. 
I am using postresql database.

Thanks
-Gaurav

David Pursehouse

unread,
Mar 16, 2015, 9:41:42 PM3/16/15
to Gaurav Negi, Repo and Gerrit Discussion
On 03/17/2015 10:28 AM, Gaurav Negi wrote:
> Dear Gerrit Experts
> I have installed gerrit in my staging environment but trying to add
> the ssh keys giving me
>
> "500 internal server error"
>
>
> Inline image 1
>
> I am not able to add my keys also.
>
>
> Gerrit logs says something like.
>
> /[2015-03-16 18:20:06,808] ERROR
> com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET
> /accounts/self/sshkeys/
>
> /java.lang.IllegalStateException: Missing project All-Projects/
>

Does All-Projects.git exist under the /git folder in the site path? Is
it readable by the gerrit user?


> / at
> com.google.gerrit.server.project.ProjectCacheImpl.getAllProjects(ProjectCacheImpl.java:101)/
>
> If you have any idea, please let me know.
> I am using postresql database.
>
> Thanks
> -Gaurav
>
> --
> --
> 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
> <mailto:repo-discuss...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Gaurav Negi

unread,
Mar 16, 2015, 9:45:22 PM3/16/15
to David Pursehouse, Repo and Gerrit Discussion
Hi David,

//Does All-Projects.git exist under the /git folder in the site path?  Is it readable by the gerrit user?

Yes All-Projects.git exist under ~site/git
It is owned by gerrit user.

Thanks
-Gaurav



On Mon, Mar 16, 2015 at 6:41 PM, David Pursehouse <david.pu...@sonymobile.com> wrote:
On 03/17/2015 10:28 AM, Gaurav Negi wrote:
Dear Gerrit Experts
  I have installed gerrit in my staging environment but trying to add
the ssh keys giving me

"500 internal server error"


Inline image 1

  I am not able to add my keys also.


Gerrit logs says something like.

/[2015-03-16 18:20:06,808] ERROR
com.google.gerrit.httpd.restapi.RestApiServlet : Error in GET
/accounts/self/sshkeys/

/java.lang.IllegalStateException: Missing project All-Projects/


Does All-Projects.git exist under the /git folder in the site path?  Is it readable by the gerrit user?


/        at
com.google.gerrit.server.project.ProjectCacheImpl.getAllProjects(ProjectCacheImpl.java:101)/

If you have any idea, please let me know.
I am using postresql database.

Thanks
-Gaurav

--
--
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

Gaurav Negi

unread,
Mar 17, 2015, 12:05:52 AM3/17/15
to David Pursehouse, Repo and Gerrit Discussion
David and others,
  I installed Gerrit in my sandbox environment
I am getting "500 internal server error"

When I tried to clone All-projects.git under site/git.
Getting following error. Any idea? Is my git repo not getting created correctly? What can be done to fix it?

$ git clone file:////home/gerrit2/GERRIT/git/All-Projects.git

Initialized empty Git repository in /home/gerrit2/tmp/All-Projects/.git/

error: Trying to write ref HEAD with nonexistant object aca83cc213d8f32a57c626679aea35ebb70510a0

fatal: Cannot update the ref 'HEAD'.

Reply all
Reply to author
Forward
0 new messages