Permission denied @ rb_sysopen Gemfile.lock


I have this error when i execute “gitlab-ctl reconfigure” :

Permission denied @ rb_sysopen - /opt/gitlab/embedded/service/gitlab-rails/Gemfile.lock (Errno::EACCES)

But when i check this file have all access :

-rwxr-xr-x. 1 root root 53005 Dec 21 10:33 Gemfile.lock

Can you help me please ?

Thanks in advance

You need to run that command as root, or use sudo before it if you ran it as a normal user.


Thanks for you arnswer but i run as root