The page you requested was not found, or you do not have permission to view this page.

3,829 views
Skip to first unread message

Philip Colmer

unread,
Jan 2, 2014, 5:28:54 AM1/2/14
to repo-d...@googlegroups.com
I've upgraded our gerrit installation from 2.6.1 to 2.8. I'm now getting this error when I try to access projects.

I am an administrator on the installation.

Has a new permission been introduced that would result in this behaviour? I couldn't find anything in the release notes for 2.7 or 2.8 that seemed to suggest this.

If not, how can I turn on debug logging or similar so that I can try and troubleshoot this?

Thanks.

Philip

Thomas Swindells (tswindel)

unread,
Jan 2, 2014, 6:05:03 AM1/2/14
to Philip Colmer, repo-d...@googlegroups.com

Which pages is it that you are trying to access?

 

Remember administrator permissions doesn’t give you project specific access, so if you have restrictions on who can view a project files it could probably cause this in some places.

 

Thomas

 

--
--
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/groups/opt_out.

Philip Colmer

unread,
Jan 2, 2014, 6:33:23 AM1/2/14
to Thomas Swindells (tswindel), repo-d...@googlegroups.com
I'm clicking on links under "All > Open" and also under "Projects > List > project name".

I understand that being an administrator doesn't automatically give me access but this used to work on the previous version of gerrit we were using.

If I click on the "Access" tab for a project I'm getting the error from, it shows this:

Rights Inherit From: All-Projects
History: (gitweb)
Reference:
refs/*
Owner Exclusive
 Administrators

I've got into "All-Projects" and added more Read permissions to the difference references but it doesn't seem to have altered the behaviour. The references listed are:

refs/*
refs/for/refs/*
refs/heads/*
refs/meta/config

Many thanks.

Philip

Steffen Gebert

unread,
Jan 2, 2014, 7:56:16 AM1/2/14
to repo-d...@googlegroups.com
Hi Philip,

you're running a reverse proxy in front of Gerrit, don't you?

Since 2.7, the required proxy settings have changed:
https://gerrit-review.googlesource.com/Documentation/config-reverseproxy.html#_troubleshooting

Yours
Steffen

Saša Živkov

unread,
Jan 2, 2014, 7:57:29 AM1/2/14
to Philip Colmer, repo-d...@googlegroups.com
I would try using "Developer Tools" in Chrome (Tools > Developer Tools), then load a page again
and look under the "Network" tab in the developer tools.
Check those requests with 4xx responses... there you can see for which URL you received a 4xx response.

Philip Colmer

unread,
Jan 2, 2014, 9:08:17 AM1/2/14
to Saša Živkov, repo-d...@googlegroups.com
If I go to view an entry under "All > Open", the 404 error is coming from:


I'm not entirely sure, though, how to use this information. I'm still failing to understand what access right is missing that is causing this problem.

Regards

Philip

Shawn Pearce

unread,
Jan 2, 2014, 10:04:37 AM1/2/14
to Philip Colmer, Saša Živkov, repo-d...@googlegroups.com
On Thu, Jan 2, 2014 at 6:08 AM, Philip Colmer <philip...@linaro.org> wrote:
> If I go to view an entry under "All > Open", the 404 error is coming from:
>
> http://review.android.git.linaro.org/projects/platform%2Fmanifest/config
>
> I'm not entirely sure, though, how to use this information. I'm still
> failing to understand what access right is missing that is causing this
> problem.

$ curl -I http://review.android.git.linaro.org/projects/platform%2Fmanifest/config

HTTP/1.1 404 Not Found
Date: Thu, 02 Jan 2014 15:02:52 GMT
Server: Apache/2.2.22 (Ubuntu)
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

So yes, you are running a reverse proxy. Since 2.6 tThe reverse proxy
configuration needs to be updated:

https://gerrit-documentation.storage.googleapis.com/ReleaseNotes/ReleaseNotes-2.6.html#_reverse_proxy_configuration_changes

Philip Colmer

unread,
Jan 2, 2014, 10:43:35 AM1/2/14
to Shawn Pearce, Saša Živkov, repo-d...@googlegroups.com
So yes, you are running a reverse proxy. Since 2.6 tThe reverse proxy
> configuration needs to be updated:

Thank you!

That sorted it :-).

Many, many thanks.

Philip

hari

unread,
Oct 27, 2014, 1:01:23 AM10/27/14
to repo-d...@googlegroups.com, s...@google.com, ziv...@gmail.com
I have the same issue when I upgraded to Gerrit 2.9 with Apache 2.2.3. whenever I try to click a change I get "The page you requested was not found, or you do not have permission to view this page."  I have the correct reverse proxy settings too as per the https://gerrit.googlesource.com/gerrit/+/2aa6725b88385a55daa42ac150b25647c0a434c5/Documentation/config-reverseproxy.txt

Pls let me know if am missing something. Here's my reverse proxy settings. 
_______________________________________________________________

<Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass /r http://172.XX.XXX.XXX:8081/r nocanon

    AllowEncodedSlashes On

-------------------------------------------------------------------------------------------------------------------------------------------
Thank you. 
Reply all
Reply to author
Forward
0 new messages