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
  • #2359

Closed
Open
Created 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

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?

Linked issues
0


  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: ethanfu

    If you resolved the problem, Pls tell me ,thx @Razer6 @ariejan @randx can tell my why? i can't understand RoR ,Look forward to your reply

    By Administrator on 2012-12-24T15:22:51 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: riyad

    What does gitlab:check say?

    By Administrator on 2012-12-24T17:29:01 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: ethanfu

    @riyad I think the reason that push events don't display is resque occurs errors.I sign in the backend ,rescue shows : Google Chrome

    By Administrator on 2012-12-25T00:48:23 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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 group tugraz, and for all other repos. ADDITIONALLY there are *.gitfolders for each project which is already in tugraz. They are twice! Maybe the postreceive hooks are rewritten wrong?

    By Administrator on 2012-12-25T11:28:39 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: ethanfu

    Need to try executing the service task? my post_receive jobs all failed.@randx

    By Administrator on 2012-12-25T13:18:37 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: dzaporozhets

    @fxl545826 nope. It just cleanup gitolite config from garbage repos.

    By Administrator on 2012-12-25T13:28:20 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: dzaporozhets

    I will try to reproduce an issue tomorrow. Navigating to resque tab still produce an error constantly?

    By Administrator on 2012-12-25T13:30:23 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: ethanfu

    In my case,all post receive jobs else failed, this problem had been bothering me for two days, and look forward to your solution

    By Administrator on 2012-12-25T14:05:35 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: ethanfu

    I have resolved the problem,my ubuntu server had installed gitweb,repositories was a link (ln -s),after rm the link ,all were ok

    By Administrator on 2012-12-26T11:37:20 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: Razer6

    What did you exactly do? For may case home/git/repositories is a symlink to another folder where the repos actually are..

    By Administrator on 2012-12-26T12:26:12 (imported from GitLab project)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    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)

  • Administrator
    Administrator @root · 12 years ago
    Owner

    Created by: mike-sirs

    use "mount -o bind" instead of symlink

    By Administrator on 2013-01-16T12:31:49 (imported from GitLab project)

  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
0 Assignees
Assign to
Milestone
No milestone
None
None
Time tracking
Due date
None
None
0
Labels
None
Assign labels
  • No matching results
  • Manage project labels
Confidentiality
Not confidential

You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

Lock issue
Unlocked
participants
Reference: