Repository mirroring: 2:NoMethodError: undefined method 'id' for nil:NilClass
Summary
Repository mirroring fails with error 2:NoMethodError: undefined method 'id' for nil:NilClass on selfhosted Gitlab Community Edition 12.0.3.
Steps to reproduce
- Have 2 Gitlab instances server 1 and server 2.
- Activate 2FA Authentication on server 2.
- Create the same user testuser on both instances.
- Create a Personal Access Token with scope api on server 2 for testuser.
- Create a new project testproject with testuser on both Gitlab instances. On server 1 go to project settings > Repository > Mirroring repositories and use the following settings:
- Git repository URL: https://oauth2@server2ip/testuser/testproject.git
- Mirror direction: Push
- Authentication method: Password
- Password: PersonalAccessToken
What is the expected correct behavior?
Repository testproject should be mirrored from server 1 to server 2.
Edited by gitlabuser