Errno::EACCES - Permission denied - git lfs
When pushing a project using git-lfs we are getting the following error
Sent file /git-data/lfs-objects/5b/2c/56e5544ae58b85d62188498bd764dce16db35d91738f1731d31745dcf70d (0.9ms)
Completed 200 OK in 287ms (ActiveRecord: 29.1ms)
Completed 500 Internal Server Error in 387ms (ActiveRecord: 18.6ms)
Errno::EACCES (Permission denied @ chown_internal - /git-data/lfs-objects/tmp/cache/1495614057-1361-0038-8948/434b0a2f9db8f559a2e8eb8efc511d0fd0d96f5db91399291dcb1cf94e6b20c1888245155):
app/controllers/projects/lfs_storage_controller.rb:73:in `block in move_tmp_file_to_storage'
app/controllers/projects/lfs_storage_controller.rb:72:in `open'
app/controllers/projects/lfs_storage_controller.rb:72:in `move_tmp_file_to_storage'
app/controllers/projects/lfs_storage_controller.rb:65:in `store_file'
app/controllers/projects/lfs_storage_controller.rb:28:in `upload_finalize'
app/controllers/application_controller.rb:281:in `set_locale'
lib/gitlab/middleware/multipart.rb:93:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:16:in `call'
lib/gitlab/etag_caching/middleware.rb:10:in `call'
lib/gitlab/request_context.rb:18:in `call'
This is happening after the upgrade of gitlab CE from 9.1 to 9.2.1 on an clean Ubuntu 14.04 LTS.
Edited by Stan Hu