Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #62087
Closed
Open
Created May 21, 2019 by petrparolek@petrparolek

Unable to fork a project on 11.10.4

Summary

I have installed gitlab (version 11.10.4) from source on fresh Debian 9 Stretch host. During the installation evething went smooth. I created a new GIT project with a few files and when I trierd to fork the project, the UI hangs up. After refresh, I see the project is not forked and in the

When I install gitlab via omnibus, everything is just fine. Does anybody encounter with the same issue?

Steps to reproduce

Install GitLab from source, create a new GIT project with a few files and when I trierd to fork the project, the UI hangs up. After refresh, I see the project is not forked

What is the current bug behavior?

Unsable to fork a project

Relevant logs and/or screenshots

sidekiq.log I can see this Warning.

    2019-05-19T20:56:06.253Z 1067 TID-gn1h2pj83 WARN: ActiveRecord::RecordNotFound: Couldn't find Project with 'id'=2
    2019-05-19T20:56:06.253Z 1067 TID-gn1h2pj83 WARN: /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/activerecord-5.0.7.2/lib/active_record/core.rb:173:in `find'
    /home/git/gitlab/app/workers/repository_fork_worker.rb:11:in `perform'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:185:in `execute_job'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:167:in `block (2 levels) in process'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:128:in `block in invoke'
    /home/git/gitlab/lib/gitlab/sidekiq_status/server_middleware.rb:7:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
    /home/git/gitlab/lib/gitlab/sidekiq_middleware/correlation_logger.rb:10:in `block in call'
    /home/git/gitlab/lib/gitlab/correlation_id.rb:15:in `use_id'
    /home/git/gitlab/lib/gitlab/sidekiq_middleware/correlation_logger.rb:9:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
    /home/git/gitlab/lib/gitlab/sidekiq_middleware/batch_loader.rb:7:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
    /home/git/gitlab/lib/gitlab/sidekiq_middleware/request_store_middleware.rb:8:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sentry-raven-2.9.0/lib/raven/integrations/sidekiq.rb:9:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:130:in `block in invoke'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/middleware/chain.rb:133:in `invoke'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:166:in `block in process'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:108:in `local'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:43:in `block in call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/execution_wrapper.rb:85:in `wrap'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/reloader.rb:68:in `block in wrap'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/execution_wrapper.rb:85:in `wrap'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.2/lib/active_support/reloader.rb:67:in `wrap'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/rails.rb:42:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:243:in `stats'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/job_logger.rb:8:in `call'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/job_retry.rb:73:in `global'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:125:in `block in dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:48:in `with_context'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/logging.rb:42:in `with_job_hash_context'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:124:in `dispatch'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:165:in `process'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:83:in `process_one'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/processor.rb:71:in `run'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:16:in `watchdog'
    /home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/sidekiq-5.2.5/lib/sidekiq/util.rb:25:in `block in safe_thread

Results of GitLab environment info

Expand for output related to GitLab environment info

sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

    System information
    System:         Debian 9.9
    Current User:   git
    Using RVM:      no
    Ruby Version:   2.5.3p105
    Gem Version:    2.7.6
    Bundler Version:1.17.3
    Rake Version:   12.3.2
    Redis Version:  3.2.6
    Git Version:    2.18.0
    Sidekiq Version:5.2.5
    Go Version:     go1.10.3 linux/amd64

    GitLab information
    Version:        11.10.4
    Revision:       62c464651d2
    Directory:      /home/git/gitlab
    DB Adapter:     PostgreSQL
    DB Version:     9.6.13
    URL:            http://gitlab.local
    HTTP Clone URL: http://gitlab.local/some-group/some-project.git
    SSH Clone URL:  git@gitlab.local:some-group/some-project.git
    Using LDAP:     no
    Using Omniauth: yes
    Omniauth Providers:

    GitLab Shell
    Version:        9.0.0
    Repository storage paths:
    - default:      /home/git/repositories
    GitLab Shell path:              /home/git/gitlab-shell
    Git:            /usr/local/bin/git

Possible fixes

Fix path in /home/git/gitaly/config.toml

# wrong
# bin_dir = "/home/git/gitaly/bin"

# fixed
bin_dir = "/home/git/gitaly"

socket_path = "/home/git/gitlab/tmp/sockets/private/gitaly.socket"
[gitaly-ruby]
dir = "/home/git/gitaly/ruby"
[gitlab-shell]
dir = "/home/git/gitlab-shell"
[[storage]]
name = "default"
path = "/home/git/repositories"

Installation script sudo -u git -H bundle exec rake "gitlab:gitaly:install[/home/git/gitaly,/home/git/repositories]" RAILS_ENV=production generate wrong path to gitaly.

I found solution in #48312 (moved)

Edited May 21, 2019 by petrparolek
Assignee
Assign to
Time tracking