Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3693

Closed
Open
Created Apr 23, 2013 by Administrator@rootOwner

GitLab 5.1: rake import brings empty project

Created by: sroth80021

Using GitLab 5.1 and following the rake import help, when I:

  1. place my bare repository in the repositories directory as configured in config/gitlab.yml
  2. run the import task -- bundle exec rake gitlab:import:repos RAILS_ENV=production

Even though the bare repository was not empty, the repository is imported as an empty repository. No error was reported by the gitlab:import:repos tool. The empty repository is confirmed when I run gitlab:check, which says the 'repository is empty'.

import command output: bundle exec rake gitlab:import:repos RAILS_ENV=production Processing a.git

  • Created a (a.git) Done!

While this ran, the production log said: Connecting to database specified by database.yml Creating scope :opened. Overwriting existing method Issue.opened. Creating scope :closed. Overwriting existing method MergeRequest.closed. Rendered notify/project_access_granted_email.html.haml within layouts/notify (1.3ms) Rendered notify/project_access_granted_email.text.erb (0.3ms) Sent mail to [email protected] (176ms)

And the sidekiq log said: 2013-04-23T20:09:35Z 7310 TID-onsc8 GitlabShellWorker JID-8622acbf78ef3b2f1d4fb837 INFO: start Initialized empty Git repository in /scratch/git/repositories/root/a.git/ 2013-04-23T20:09:35Z 7310 TID-onsc8 GitlabShellWorker JID-8622acbf78ef3b2f1d4fb837 INFO: done: 0.468 sec 2013-04-23T20:09:49Z 7310 TID-onsc8 Sidekiq::Extensions::DelayedMailer JID-50883b71e51e95f93b3a666a INFO: start 2013-04-23T20:09:49Z 7310 TID-onsc8 Sidekiq::Extensions::DelayedMailer JID-50883b71e51e95f93b3a666a INFO: done: 0.205 sec

I am able to successfully import via the browser 'new project' page, accessing a http URL. This leads me to conclude the issue is somewhere specific to the rake import call path.

Also, potentially related -- once the import of the repository has finished, I am unable to transfer it outside of the Administrator namespace -- in the browser, I get the error: 'Cannot move project' -- no error was logged in either the production log or the sidekiq log.

Assignee
Assign to
Time tracking