Error occured when editing/creating files in repository
Summary
Error occured when I click "Commit changes" button after created/edited a file on a repository. Error message is "GitLab: The project you were looking for could not be found." But "git push" on client works well.
Steps to reproduce
Project => Repository => Create new file => write contents => Commit changes => Error("GitLab: The project you were looking for could not be found.")
What is the current bug behavior?
Files can't be edited/created on UI because error occur when commiting.
Relevant logs and/or screenshots
$ sudo gitlab-ctl tail gitlab-rails
Started POST "/pooq-system/pooq-microservice-kube-specs-dev/create/master" for 192.168.200.84 at 2017-07-18 23:55:33
+0900
Processing by Projects::BlobController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"8WODBfAGAvmcja7Ns1oRn81u3d+02PhxQHS2hyCDYzUsUKav4gGG4Dgm/VEqUjn/asfB92nCa0BrWArQkFTGCQ==", "file_name"=>"asdfa", "encoding"=>"text", "commit_message"=>"Add new file", "branch_name"=>"master", "original_branch"=>"master", "content"=>"safdas", "namespace_id"=>"pooq-system", "project_id"=>"pooq-microservice-kube-specs-dev", "id"=>"master"}
Started POST "/api/v4/internal/allowed" for 127.0.0.1 at 2017-07-18 23:55:33 +0900
Completed 200 OK in 247ms (Views: 64.2ms | ActiveRecord: 8.6ms)
Started GET "/uploads/system/user/avatar/2/avatar.png" for 192.168.200.84 at 2017-07-18 23:55:34 +0900
Processing by UploadsController#show as HTML
Parameters: {"model"=>"user", "mounted_as"=>"avatar", "id"=>"2", "filename"=>"avatar.png"}
Sent file /data/gitlab-data/bin/embedded/service/gitlab-rails/public/uploads/system/user/avatar/2/avatar.png (0.1ms)
Completed 200 OK in 7ms (ActiveRecord: 0.6ms)
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.3.3p222 Gem Version: 2.6.6 Bundler Version:1.13.7 Rake Version: 10.5.0 Redis Version: 3.2.5 Git Version: 2.13.0 Sidekiq Version:5.0.0 Go Version: unknown
GitLab information Version: 9.3.6 Revision: b9a169c Directory: /data/gitlab-data/bin/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.pooq.co.kr HTTP Clone URL: https://gitlab.pooq.co.kr/some-group/some-project.git SSH Clone URL: git@gitlab.pooq.co.kr:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.1.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...
GitLab Shell version >= 5.1.1 ? ... OK (5.1.1) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 16/4 ... ok 15/5 ... repository is empty 12/6 ... repository is empty 21/20 ... ok 22/22 ... ok 2/24 ... ok Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Access to /var/opt/gitlab/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... no Try fixing it: Install 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. Init script up-to-date? ... can't check because of previous errors Projects have namespace: ... 16/4 ... yes 15/5 ... yes 12/6 ... yes 21/20 ... yes 22/22 ... yes 2/24 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.3 ? ... yes (2.3.3) Git version >= 2.7.3 ? ... yes (2.13.0) Active users: ... 14
Checking GitLab ... Finished