push events don't display ,when i update to 4.0
Closed
push events don't display ,when i update to 4.0
Created by: ethanfu
in v3.1 ,push events displays very well,when i update to 4.0,it turned to push events don't display,but comments events display ok . why?
Created by: ethanfu
when i run
sudo -u git -H lib/support/rewrite-hooks.sh
,occurs some errors:ln: creating symbolic link `/home/git/repositories/admin/hooks/post-receive': No such file or directory ln: creating symbolic link `/home/git/repositories/devgroup/hooks/post-receive': No such file or directory ln: creating symbolic link `/home/git/repositories/fuxueliang0924/hooks/post-receive': No such file or directory ln: creating symbolic link `/home/git/repositories/jackychi/hooks/post-receive': No such file or directory ln: creating symbolic link `/home/git/repositories/qiaojie1023/hooks/post-receive': No such file or directory ln: creating symbolic link `/home/git/repositories/static/hooks/post-receive': No such file or directory
resque the same occurs errors:
Worker itari1:13253 on POST_RECEIVE at just now Class PostReceive Arguments "home/git_repo/testproject" "adf45848f2719a1d1f34c25a77f9b775c985d983" "af8bfe395973255ed8dccc7fcbaa78eb57a3bea8" "refs/heads/v1.0.1.rc" "fuxueliang0924_rayootech_com_1355409624" Exception NoMethodError Error undefined method `id' for nil:NilClass /home/gitlab/gitlab/app/models/project.rb:104:in `find_with_namespace' /home/gitlab/gitlab/app/workers/post_receive.rb:9:in `perform'
@randx can help me?
By Administrator on 2012-12-24T10:47:06 (imported from GitLab project)
Created by: Razer6
Same here:
rsserver:1782 on POST_RECEIVE at about a minute ago Retry or Remove Class PostReceive Arguments "rpool/repositories/repositories/tugraz/sweb" "95ef5a59f62a73a25ffb2247ac40bccc847eab62" "44088a722cb6b146fbf8aba4dad63be86f6b2fc2" "refs/heads/ethernet" "schilling_ro_gmail_com_1349535621" Exception NoMethodError Error undefined method `id' for nil:NilClass /home/gitlab/gitlab/app/models/project.rb:104:in `find_with_namespace' /home/gitlab/gitlab/app/workers/post_receive.rb:9:in `perform'
By Administrator on 2012-12-24T11:08:38 (imported from GitLab project)
Created by: ethanfu
when i run
sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
,Checking Environment ... gitlab user is in git group? ... yes Has no "-e" in ~git/.profile ... yes Git configured for gitlab user? ... yes Has python2? ... yes python2 is supported version? ... yes Checking Environment ... Finished Checking Gitolite ... Using recommended version ... yes Repo umask is 0007 in .gitolite.rc? ... yes Allow all Git config keys in .gitolite.rc ... yes Config directory exists? ... yes Config directory owned by git:git ... yes Config directory access is drwxr-x---? ... yes Repo base directory exists? ... yes Repo base owned by git:git? ... yes Repo base access is drwsrws---? ... yes Can clone gitolite-admin? ... Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts. yes Can commit to gitolite-admin? ... yes post-receive hook exists? ... yes post-receive hook up-to-date? ... yes post-receive hooks in repos are links: ... devgroup / osqa ... ok devgroup / GAP-DD ... ok testProject ... ok indexPager ... ok Git config in repos: ... devgroup / osqa ... ok devgroup / GAP-DD ... ok testProject ... ok indexPager ... ok Checking Gitolite ... Finished Checking Resque ... Running? ... yes Checking Resque ... 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? ... no Try fixing it: Redownload the init script For more information see: doc/install/installation.md in section "Install Init Script" Please fix the error above and rerun the checks. Projects have satellites? ... devgroup / osqa ... yes devgroup / GAP-DD ... yes testProject ... yes indexPager ... yes Checking GitLab ... Finished
By Administrator on 2012-12-25T00:32:31 (imported from GitLab project)
Created by: Razer6
For me,
gitlab:check
is green. Maybe #2365 (closed) is related since there is the same error message.By Administrator on 2012-12-25T10:40:38 (imported from GitLab project)
Created by: Razer6
Hmm, I found out some strange things. I have a group
tugraz
. On my repository path, ther are folders for each user, one for the grouptugraz
, and for all other repos. ADDITIONALLY there are*.git
folders for each project which is already intugraz
. They are twice! Maybe the postreceive hooks are rewritten wrong?By Administrator on 2012-12-25T11:28:39 (imported from GitLab project)
Created by: dzaporozhets
@Razer6 its ok. So post-receive should be ok. Maybe moved projects just left in gitolite config in 2 places. I've pushed a service task recently - take a look https://github.com/gitlabhq/gitlabhq/blob/45b6103997ef07644d78d603938d357a2b3d035a/lib/tasks/gitlab/gitolite_rebuild.rake#L24
By Administrator on 2012-12-25T12:28:19 (imported from GitLab project)
Created by: Razer6
I cleaned gitolite config with
bundle exec rake gitlab:gitolite:cleanup Remove=True
. The task had to do something but the repos outside the groups folder are still present. Going to resque tab works for me, but all post receive jobs fail with the error message above. (Running on 4.1.0pre c8ba5c2d)By Administrator on 2012-12-25T13:45:37 (imported from GitLab project)
Created by: ethanfu
In my case /home/git/repositories >>/home/git_repo :
sudo service gitlab stop cd /home/git/ sudo tar czvf ~/repositories_20121226.tar.gz /home/git_repo #back up the repositories folder,dont back repositories,because it's only a symlink sudo -u git -H rm -rf home/git/repositories sudo -u git -H cp -r /home/git_repo/* /home/git/repositories/ sudo service gitlab start
@Razer6 you can have a try!
By Administrator on 2012-12-26T12:37:31 (imported from GitLab project)