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

Closed
Open
Created Jan 02, 2013 by Administrator@rootOwner

Post receive hook failing

Created by: m4tthumphrey

Since upgrading to 4.0, the post commit hooks are running but when I look in Resque they return this 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'

The arguments for this were:

"repositories/data/repo_name"
"..."
"..."
"refs/heads/develop"
"..."

I'm a bit confused as the repo_path im supplying doesn't (or shouldn't) contain a / so it should never hit project.rb:104....

In my setup the /home/git/repositories is a symlink to /repositories/data, I'm not sure it that is a factor?

Assignee
Assign to
Time tracking