New installation - Can't save project. Please try again later
Created by: klodoma
Summary: I cannot create a new project Steps to reproduce: After a new installation Expected behavior:
I have installed gitlab by these guide: https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
OS is UBUNTU 10.04 LTS.
The web-front-end is working, but I cannot add a project. When I try to "clone" a project from an existing git, something si being done, a partial checkout in the repository is done, but the task is never finished.
If I manually execute the git clone command everything works.
The only error I see in the logs is this one: undefined method `first' for nil:NilClass
Also the "can't create, repository is empty" message is strange.
Please advise, I feel blocked right now.
Regards,
Output of checks
/home/git/gitlab$ git show
commit 42131d0189bbc0e88be72e6a76405140cbd79fc8
Author: Dmitriy Zaporozhets <[email protected]>
Date: Mon Dec 23 20:43:59 2013 +0200
Version to 6.4.3
Signed-off-by: Dmitriy Zaporozhets <[email protected]>
diff --git a/VERSION b/VERSION
index a4c853e..133cad2 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-6.4.2
+6.4.3
/home/git/gitlab$ sudo -u git -H 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 >= 1.7.9 ? ... OK (1.8.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
update hook up-to-date? ... yes
update hooks in repos are links: ...
test / ggr ... repository is empty
Andrei Bintintan / ddemo ... repository is empty
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/home/git/repositories: OK
/home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.3
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... 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 namespace: ...
test / ggr ... yes
Andrei Bintintan / ddemo ... yes
Projects have satellites? ...
test / ggr ... can't create, repository is empty
Andrei Bintintan / ddemo ... can't create, repository is empty
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.5)
Checking GitLab ... Finished
sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Ubuntu 10.04
Current User: git
Using RVM: no
Ruby Version: 1.9.3p484
Gem Version: 2.2.0
Bundler Version:1.5.1
Rake Version: 10.1.0
GitLab information
Version: 6.4.3
Revision: 42131d0
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://localhost:8080
HTTP Clone URL: http://localhost:8080/some-project.git
SSH Clone URL: git@localhost:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.8.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
/home/git/gitlab/log# tail production.log
Project Exists (0.6ms) SELECT 1 AS one FROM `projects` WHERE (`projects`.`name` = BINARY 'test' AND `projects`.`namespace_id` = 2) LIMIT 1
Project Exists (0.4ms) SELECT 1 AS one FROM `projects` WHERE (`projects`.`path` = BINARY 'test' AND `projects`.`namespace_id` = 2) LIMIT 1
(0.5ms) SELECT COUNT(*) FROM `projects` INNER JOIN `namespaces` ON `projects`.`namespace_id` = `namespaces`.`id` WHERE `namespaces`.`owner_id` = 3 AND `namespaces`.`type` IS NULL
SQL (0.4ms) INSERT INTO `projects` (`created_at`, `creator_id`, `description`, `import_url`, `name`, `namespace_id`, `path`, `snippets_enabled`, `updated_at`, `wall_enabled`) VALUES ('2013-12-30 10:43:39', 3, '', '', 'test', 2, 'test', 0, '2013-12-30 10:43:39', 0)
SQL (0.5ms) UPDATE `projects` SET `projects`.`last_activity_at` = '2013-12-30 10:43:39' WHERE `projects`.`id` = 30
ForkedProjectLink Load (0.4ms) SELECT `forked_project_links`.* FROM `forked_project_links` WHERE `forked_project_links`.`forked_to_project_id` = 30 ORDER BY `forked_project_links`.`id` ASC LIMIT 1
(4.7ms) ROLLBACK
Rendered projects/_errors.html.haml (0.7ms)
Rendered projects/create.js.haml (2.4ms)
Completed 200 OK in 48ms (Views: 4.8ms | ActiveRecord: 8.6ms)
/home/git/gitlab/log# tail sidekiq.log
2013-12-30T10:45:14Z 4013 TID-34depg ERROR: undefined method `first' for nil:NilClass
2013-12-30T10:45:14Z 4013 TID-34depg ERROR: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.17.0/lib/sidekiq/scheduled.rb:35:in `block (3 levels) in poll'
2013-12-30T10:45:29Z 4013 TID-34depg ERROR: undefined method `first' for nil:NilClass
2013-12-30T10:45:29Z 4013 TID-34depg ERROR: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.17.0/lib/sidekiq/scheduled.rb:35:in `block (3 levels) in poll'
2013-12-30T10:45:44Z 4013 TID-34depg ERROR: undefined method `first' for nil:NilClass
2013-12-30T10:45:44Z 4013 TID-34depg ERROR: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.17.0/lib/sidekiq/scheduled.rb:35:in `block (3 levels) in poll'
2013-12-30T10:45:59Z 4013 TID-34depg ERROR: undefined method `first' for nil:NilClass
2013-12-30T10:45:59Z 4013 TID-34depg ERROR: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.17.0/lib/sidekiq/scheduled.rb:35:in `block (3 levels) in poll'
2013-12-30T10:46:14Z 4013 TID-34depg ERROR: undefined method `first' for nil:NilClass
2013-12-30T10:46:14Z 4013 TID-34depg ERROR: /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/sidekiq-2.17.0/lib/sidekiq/scheduled.rb:35:in `block (3 levels) in poll'
/home/git/gitlab/log# tail unicorn.stderr.log
I, [2013-12-30T11:33:31.731102 #3993] INFO -- : Refreshing Gem list
I, [2013-12-30T11:34:18.796226 #3993] INFO -- : listening on addr=/home/git/gitlab/tmp/sockets/gitlab.socket fd=16
I, [2013-12-30T11:34:18.796756 #3993] INFO -- : listening on addr=0.0.0.0:8080 fd=17
I, [2013-12-30T11:34:18.818604 #4038] INFO -- : worker=0 ready
I, [2013-12-30T11:34:18.839912 #4041] INFO -- : worker=1 ready
I, [2013-12-30T11:34:18.840374 #3993] INFO -- : master process ready
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.