You need to sign in or sign up before continuing.
Export project through rails console hungs for large repo.
Hi,
We are using GitLab Community Edition 10.6.4 and not able to export a project via rails console and it's getting hung.
PFB
]# sudo gitlab-rails console
Loading production environment (Rails 4.2.10)
irb(main):001:0> project = Project.find_by_full_path("AaS/service")
=> #<Project id:165 AaS/service>
irb(main):002:0> admin_user = User.find_by(username: "jason")
=> #<User id:165 @jason>
irb(main):003:0> exporter = Projects::ImportExport::ExportService.new(project, admin_user)
=> #<Projects::ImportExport::ExportService:0x00007f8 @project=#<Project id:165 AaS/service>, @current_user=#<User id:165@jason>, @params={}>
irb(main):004:0> exporter.execute
--> We have monitor the same for many hours but no use.
--> Repo size in the path "/var/opt/gitlab/gitlab-rails/shared/tmp/project_exports/AaS/service" is just "12K" , But the original size of the repo is "4.7GB."
--> status was checked through API. { "id": 165, "description": "", "name": "service", "name_with_namespace": "AaS/service", "path": "service", "path_with_namespace": "AaS/service", "created_at": "2017-06-23T04:35:55.973Z", "export_status": "started" }
==> IS THERE ANY FIX/WORKAROUND FOR THIS ISSUE ? ANY MODIFICATIONS IN gitlab.rb HELPS ?
Edited by Mark Fletcher