Skip to content

gitlab-ce deployment on minikube using Helm: 422: The change you requested was rejected

I tried to deploy gitlab-ce on minikube running on my local machine using Helm and it seemed to be successful but when I try to log-in using root username, I see a page with following message:

422: The change you requested was rejected
Make sure you have access to the thing you tried to change.

Please contact your GitLab administrator if you think this is a mistake.

Go back

I tried to remove all browsing history several times on different browsers and set my local machine time with the git-lab container time but none was helpful.

I did also use initial password found by

kubectl get secret gitlab-gitlab-initial-root-password -o jsonpath="{.data.password}" | base64 --decode

or changed password using

user = User.find_by(username: 'root')
user.password = 'newpassword'
user.password_confirmation = 'newpassword'
user.save!
user.valid_password?('newpassword')

or

gitlab-rake "gitlab:password:reset"

deleting the gitlab secret, pods, deployments, services, pvcs, etc.

kubectl delete secret gitlab-gitlab-initial-root-password -n gitlab

But after all the login page shows similar message/error!

I don't know what to do? The only way I could make it work was using a deployment+service+pv+pvc.yaml file but as gitlab recommends to use Helm I removed that one and tried to install using Helm.

values-gitlab.yaml file:

global:
  hosts:
    domain: ap.com  
    externalIP: 192.168.49.2  
  edition: ce

certmanager-issuer:
  email: me@ap.com

webservice:
  service:
    type: NodePort 
    externalTrafficPolicy: Local 
    ports:
      - name: http-webservice
        port: 8080
        targetPort: 8080
        nodePort: 30000  
      - name: http-workhorse
        port: 8181
        targetPort: 8181
        nodePort: 30001  
      - name: http-metrics-ws
        port: 8083
        targetPort: 8083
        nodePort: 30002  
  ingress:
    enabled: false  

nginx-ingress:
  controller:
    enabled: true
    ingressClass: nginx
    service:
      annotations: {}
      externalTrafficPolicy: Local

postgresql:
  install: true  

redis:
  install: true  
  master:
    install: true  
  replica:
    install: true 

gitlab:
  enabled: true
  install:
    crd: true
  prometheus:
    enabled: true

service:
  type: NodePort