Project not found when create project from command line

46 views
Skip to first unread message

李大明

unread,
Aug 3, 2017, 1:14:23 AM8/3/17
to Repo and Gerrit Discussion
When I create project via gerrit ssh command line. I can see project in project list. But when I click the project, Gerrit reponds "The page you requested was not found, or you do not have permission to view this page."I can only access "Access" page, but when I access "General" "Branch" page I got file not found issue. When I create project via Web UI. There is no such issue. And I can push branch via ssh without any problem.

The version of Gerrit I am using is 2.14. I set up reverse proxy and using http basic authentication and default H2 database.

Is there any hint to solve this problem?





李大明

unread,
Aug 3, 2017, 2:42:12 AM8/3/17
to Repo and Gerrit Discussion
Update:

I found this caused by the project name contain slash. 

I following the discussion here and solve part of this issue:


Now the problem becomes I get trigger HTTP basic authentication. The server response:

Configuration Error and says I must check my Apache server setting:

    <Location /r/login/>
      AuthType Basic
      AuthName "Gerrit Code Review"
      Require valid-user
      ...
    </Location>

I follow the instruction but with no luck.

Here is my virtual host setting:

<VirtualHost *:80>

    ServerName 172.22.10.110

    ProxyRequests Off
    ProxyVia Off
    ProxyPreserveHost On

    <Proxy *>
          Order deny,allow
          Allow from all
    </Proxy>

    <Location /r/login/ >
        AuthType Basic
        AuthName "Gerrit Code Review"
        AuthBasicProvider file
        AuthUserFile /home/gerrit/.htpasswd
        Require valid-user
    </Location>

    AllowEncodedSlashes On
    ProxyPass /r http://172.22.10.8081/r nocanon

</VirtualHost>

I am not familiar with Apache but this seems I can not trigger the authentication.

Any suggestion? 

李大明於 2017年8月3日星期四 UTC+8下午1時14分23秒寫道:
Reply all
Reply to author
Forward
0 new messages