Gitlab Registry custom storage

After change to my directory(Created by gitlab user)
Os Centos 7
/etc/gitlab/gitlab.rb

gitlab_rails['registry_path'] = "/path/to/registry/storage"

I can login to registry but can’t push it retrying several time
and then return 500 Internal error