Redirect loop while attempting to download repo archive
Hi folks,
I am plagued with redirect loop while attempting to download repository archive after performing update from 7.2 to 7.10.1. I have a classic setup (non-omnibus) with MySQL. It is using nginx with https/ssl and LDAP. Any help in this regard is appreciated.
Steps to reproduce:
- Pick a random repository
- Click on "Download Zip" (repository/archive.zip)
- Goes into redirect loop/302 (see log)
- Chrome/Browser give up with too many redirects message and nothing downloaded
- Hitting refresh on the same page after a while will start the download (and will consistently ship the file subsequently)
Please help!
-- SNIP --
Started GET "//api/v3/internal/discover?key_id=779" for 127.0.0.1 at 2015-05-04 02:11:21 -0700
Started GET "/group/project1/repository/archive.zip" for 127.0.0.1 at 2015-05-04 02:11:21 -0700
Processing by Projects::RepositoriesController#archive as ZIP
Parameters: {"namespace_id"=>"group", "project_id"=>"project1"}
Started POST "//api/v3/internal/allowed" for 127.0.0.1 at 2015-05-04 02:11:21 -0700
--
Started GET "//api/v3/internal/discover?key_id=543" for 127.0.0.1 at 2015-05-04 02:11:26 -0700
Redirected to https://gitlab.example.com/group/project1/repository/archive.zip
Completed 302 Found in 5444ms (ActiveRecord: 4.8ms)
Started GET "/group/project1/repository/archive.zip" for 127.0.0.1 at 2015-05-04 02:11:27 -0700
Processing by Projects::RepositoriesController#archive as ZIP
Parameters: {"namespace_id"=>"group", "project_id"=>"project1"}
--
Started GET "//api/v3/internal/discover?key_id=779" for 127.0.0.1 at 2015-05-04 02:11:32 -0700
Redirected to https://gitlab.example.com/group/project1/repository/archive.zip
Completed 302 Found in 5198ms (ActiveRecord: 6.5ms)
Started GET "/group/project1/repository/archive.zip" for 127.0.0.1 at 2015-05-04 02:11:32 -0700
Processing by Projects::RepositoriesController#archive as ZIP
Parameters: {"namespace_id"=>"group", "project_id"=>"project1"}
--
Started POST "//api/v3/internal/allowed" for 127.0.0.1 at 2015-05-04 02:11:37 -0700
Redirected to https://gitlab.example.com/group/project1/repository/archive.zip
Completed 302 Found in 5151ms (ActiveRecord: 5.3ms)
--
Started GET "//api/v3/internal/discover?key_id=274" for 127.0.0.1 at 2015-05-04 02:11:37 -0700
Started GET "/group/project1/repository/archive.zip" for 127.0.0.1 at 2015-05-04 02:11:37 -0700
Processing by Projects::RepositoriesController#archive as ZIP
Parameters: {"namespace_id"=>"group", "project_id"=>"project1"}
Started POST "//api/v3/internal/allowed" for 127.0.0.1 at 2015-05-04 02:11:37 -0700
--
Started GET "//api/v3/internal/discover?key_id=2182" for 127.0.0.1 at 2015-05-04 02:11:41 -0700
Redirected to https://gitlab.example.com/group/project1/repository/archive.zip
Completed 302 Found in 5487ms (ActiveRecord: 6.3ms)
Started GET "/group/project1/repository/archive.zip" for 127.0.0.1 at 2015-05-04 02:11:43 -0700
Processing by Projects::RepositoriesController#archive as ZIP
Parameters: {"namespace_id"=>"group", "project_id"=>"project1"}
-- SNIP --
System information
System: Ubuntu 12.04
Current User: git
Using RVM: no
Ruby Version: 2.1.2p95
Gem Version: 2.2.2
Bundler Version:1.7.2
Rake Version: 10.4.2
Sidekiq Version:3.3.0
GitLab information
Version: 7.10.1
Revision: d5c71c8
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: https://gitlab.example.com
HTTP Clone URL: https://gitlab.example.com/some-project.git
SSH Clone URL: git@gitlab.example.com:some-project.git
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 2.6.2
Repositories: /mnt/netapp-002/gitlab/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git