Empty repo after import
Closed
Empty repo after import
Created by: Thijmen
Hi,
After I imported old projects by using: bundle exec rake gitlab:import:repos RAILS_ENV=production
The projects are being generated, but when I try to view the files, I am getting the screen what you usually see when you create a project.
Bug of fuckup of me?
Created by: jaymzcd
I'm having a similar issue - did an install of 5.0 as per the instructions.md. The import all worked ok but any sort of cloning or interaction with the repo's tells me that they dont exist or are empty - yet the bare repos exist in the correct folder and gitlab:check tells me it's configured correctly.
Trying to make a new project via the admin completes ok but nothing is ever created in the repos folder and trying to push gives errors due to it not existing.
Other than that it runs fine and without error - can't see anything suggesting a serious misconfiguration in logs or the interface itself.
git@koopa:~/gitlab$ ls /home/git/repositories/redmine.git/ branches config description HEAD hooks info objects refs git@koopa:~/gitlab$ bundle exec rake gitlab:check RAILS_ENV=production # Checking Environment ... Git configured for git user? ... yes Has python2? ... yes python2 is supported version? ... yes Checking Environment ... Finished Checking Gitlab Shell ... GitLab Shell version? ... OK (1.1.0) Repo base directory exists? ... yes Repo base directory is a symlink? ... no Repo base owned by git:git? ... yes Repo base access is drwxrws---? ... yes post-receive hook up-to-date? ... yes post-receive hooks in repos are links: ... Administrator / redmine ... repository is empty ... Checking Gitlab Shell ... Finished Checking Sidekiq ... Running? ... yes Checking Sidekiq ... Finished Checking GitLab ... Database config exists? ... yes Database is SQLite ... no All migrations up? ... yes GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Init script exists? ... yes Init script up-to-date? ... yes Projects have satellites? ... Administrator / redmine ... can't create, repository is empty ...
On a local machine:
[12:31][bowser][jaymz][tmp]$ git clone git@gitlab-host:root/redmine.git Cloning into 'redmine'... fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. [12:31][bowser][jaymz][tmp]$ ssh git@gitlab-host PTY allocation request failed on channel 0 Welcome to GitLab, ! Connection to gitlab-host closed.
If I use a user for that gitlab server that has shell access I can clone out the repo ok:
[12:33][bowser][jaymz][tmp]$ git clone ssh://jaymz@gitlab-host/home/git/repositories/redmine.git Cloning into 'redmine'... remote: Counting objects: 2366, done. remote: Compressing objects: 100% (1887/1887), done. remote: Total 2366 (delta 434), reused 2131 (delta 338) Receiving objects: 100% (2366/2366), 3.99 MiB, done. Resolving deltas: 100% (434/434), done.
By Administrator on 2013-03-25T12:37:10 (imported from GitLab project)
Created by: bbodenmiller
Does this issue still exist on the latest master? Thanks for the issue report. Please reformat your issue to conform to the issue tracker guidelines found in our contributing guidelines.
By Administrator on 2013-06-15T21:30:17 (imported from GitLab project)