I am trying to push my first changes but pipeline if failed everytime

I am on a remote server and when I try to push (my first push) my changes, I am getting the following error

Identity added: /root/.ssh/id_rsa_ci (/root/.ssh/id_rsa_ci)
$ git submodule sync --recursive
Synchronizing submodule url for ‘xxxxxxxxx’
Synchronizing submodule url for ‘xxxxxxxxx’
Synchronizing submodule url for ‘xxxxxxxxx’
error: could not lock config file /bts_xxxxxxxxx/xxxxxxxxx/xxxxxxxxx/.git/config: Permission denied
fatal: failed to update remote for submodule ‘xxxxxxxxx’
Cleaning up file based variables
ERROR: Job failed: exit code 1

username = yyyy

From the internet, I got a solution to run the following command

sudo chown yyyy -R
after typing the password, it says

Sorry, user yyyy is not allowed to execute ‘/bin/chown yyyy -R’ as root on serverXXX

It will be great if you can propose any solution to fix the issue.

Thanks!

Hi @sonu90das
your user doesn’t have permissions to modify bts_xxxxxxxxx/xxxxxxxxx/xxxxxxxxx/.git/config
you can use ls -l bts_xxxxxxxxx/xxxxxxxxx/xxxxxxxxx/.git/config to see what permissions are set and who is set as owner and group.
Then ask owner of the file or someone with root privileges to update it’s permissions so you get access.

As an alternative you could create your own workspace and clone the repo.

1 Like