Can't access Admin->Projects-><projectname>/Access

91 views
Skip to first unread message

Eberhard

unread,
Jun 26, 2012, 10:17:04 AM6/26/12
to repo-d...@googlegroups.com
Since upgrading to 2.3 I'm no longer able to open the Access page for any project.

After upgrading to 2.4.2 I can't open any changelists anymore.

I'm using mysql as backend.

Any ideas?

Thanks,
--Eberhard

Magnus Bäck

unread,
Jun 26, 2012, 10:22:27 AM6/26/12
to repo-d...@googlegroups.com
On Tuesday, June 26, 2012 at 10:17 EDT,
Eberhard <e...@sil.org> wrote:

> Since upgrading to 2.3 I'm no longer able to open the Access page for
> any project.
>
> After upgrading to 2.4.2 I can't open any changelists anymore.
>
> I'm using mysql as backend.

It's not clear from your description exactly what "can't open" means.
Do you get a blank page? An error page? Is there something in Gerrit's
error log?

--
Magnus Bäck
ba...@google.com

Eberhard

unread,
Jun 26, 2012, 10:39:57 AM6/26/12
to repo-d...@googlegroups.com


On Tuesday, June 26, 2012 4:22:27 PM UTC+2, Magnus Bäck wrote:
On Tuesday, June 26, 2012 at 10:17 EDT,
It's not clear from your description exactly what "can't open" means.
Do you get a blank page? An error page? Is there something in Gerrit's
error log?
 
On the list of changes (e.g. status:open), when I click on a change, the "Working..." box appears and then disappears and that's it - I'm still on the same page with the same content. No entry in the error log, the httpd log shows "POST /gerrit/rpc/ChangeDetailService HTTP/1.1" - the same as before when it still worked.

Saša Živkov

unread,
Jun 26, 2012, 11:08:50 AM6/26/12
to Eberhard, repo-d...@googlegroups.com
Can you use Firefox+Firebug and check the requests and responses sent from
the page that displays the open changes. What are the HTTP response codes
and what do you see in the response bodies?

Saša
>
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en

Eberhard

unread,
Jun 26, 2012, 11:30:52 AM6/26/12
to repo-d...@googlegroups.com, Eberhard
I haven't used Firebug before, so bear with me if this is not what you asked for.

HTTP response code is 200 OK. The returned JSON data looks like it's returning the data for the change I clicked. Yet the UI didn't update - strange. Did I miss something when I did the upgrade?

Eberhard

Shawn Pearce

unread,
Jun 26, 2012, 11:34:23 AM6/26/12
to Eberhard, repo-d...@googlegroups.com
On Tue, Jun 26, 2012 at 8:30 AM, Eberhard <e...@sil.org> wrote:
> I haven't used Firebug before, so bear with me if this is not what you asked
> for.
>
> HTTP response code is 200 OK. The returned JSON data looks like it's
> returning the data for the change I clicked. Yet the UI didn't update -
> strange. Did I miss something when I did the upgrade?

This sounds like a JavaScript error in the browser is preventing the
data from being displayed. Look at the JavaScript console, do you have
errors?

Eberhard

unread,
Jun 26, 2012, 11:42:10 AM6/26/12
to repo-d...@googlegroups.com, Eberhard


On Tuesday, June 26, 2012 5:34:23 PM UTC+2, Shawn Pearce wrote:
On Tue, Jun 26, 2012 at 8:30 AM, Eberhard wrote:
> I haven't used Firebug before, so bear with me if this is not what you asked
> for.
>
> HTTP response code is 200 OK. The returned JSON data looks like it's
> returning the data for the change I clicked. Yet the UI didn't update -
> strange. Did I miss something when I did the upgrade?

This sounds like a JavaScript error in the browser is preventing the
data from being displayed. Look at the JavaScript console, do you have
errors?

I see this in Firebug:

'Class$GYb: One or more exceptions caught, see full set in UmbrellaException#getCauses' when calling method: [nsIDOMEventListener::handleEvent]
Filtered chrome url chrome://firebug/content/net/spy.js
 

Shawn Pearce

unread,
Jun 26, 2012, 1:04:37 PM6/26/12
to Eberhard, repo-d...@googlegroups.com
So this version of Gerrit is apparently not compatible with the
version of Firefox you are running?

This is certainly the first report we have heard. What version of
Firefox? Do you have any extensions running that might be mucking with
the page content?

Eberhard

unread,
Jun 26, 2012, 3:56:53 PM6/26/12
to repo-d...@googlegroups.com, Eberhard


On Tuesday, June 26, 2012 7:04:37 PM UTC+2, Shawn Pearce wrote:

Firefox 13.0.1 on Linux. But I also get the same problem in Chromium on Linux, and with Firefox 13.0 on Windows. Haven't tried with IE yet, will do that tomorrow. Since this happens with different browsers (that have different extensions installed) I don't think it's an extension problem.

Eberhard

unread,
Jun 27, 2012, 4:44:11 AM6/27/12
to repo-d...@googlegroups.com, Eberhard
Found the problem!

I had a [gitweb] section in my gerrit.config file and that was causing the problems. After I removed it, it works now, both displaying the changes and accessing the Access pages.

In case it's of interest, my gitweb section looked like this:
[gitweb]
        url = http://gerrit-test.local/webgit
        type = custom
        project = /$project
        revision = /${project}/commit/${commit}
        branch = /${project}/tree/${branch}

Eberhard

Edwin Kempin

unread,
Jun 27, 2012, 4:53:38 AM6/27/12
to Eberhard, repo-d...@googlegroups.com
Can you please try to set the gitweb.filehistory parameter [1] and check whether this solves the problem?

[1] https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#_a_id_gitweb_a_section_gitweb

2012/6/27 Eberhard <e...@sil.org>
--
Reply all
Reply to author
Forward
0 new messages