# \[ GitLab \] - Fresh Install, no Admin Area

**URL:** <https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478>\
**Category:** Support apps\
**Tags:** gitlab, french, english\
**Created:** [April 27, 2024, 8:19am UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478 "2024-04-27T08:19:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigveuch](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigveuch](https://forum.yunohost.org/u/bigveuch)\
**Post date:** [April 27, 2024, 8:19am UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478/1 "2024-04-27T08:19:30Z")

</div>

Hi Gitlab on YNH users,

### My YunoHost server

**Hardware:** Proxmox Debian 11 VM.  
**YunoHost version:** 11.2.11.3  
**I have access to my server :** Yes, all methods  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no  
**gitlab Version :** 16.11.1-ynh1  
**Acces URL :** Dedicated sub YNH domain with a path and let’s encrypt SSLed

### Description of my issue

I **just install Gitlab** on my YNH at home and i can login in it, but **i can’t see the Gitlab “Admin Area”** anywhere.  
Everything appends like if i’m a standard user, but without any possibility to access/activate the “Admin Area”.

What i’ve tried :

- I created and used a dedicated ynh ldap admin gitlab user.
- I activated the the 2FA for this User.
- I enabled the flag show\_admin\_mode\_in\_active\_session like mentioned here : [Sign-in restrictions | GitLab Docs](https://docs.gitlab.com/ee/administration/settings/sign_in_restrictions.html#check-if-your-session-has-admin-mode-enabled).

I’m missing something, but don’t know what, then i’m asking some help or ideas.

Thank’s in advance.

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [April 28, 2024, 6:14pm UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478/2 "2024-04-28T18:14:40Z")

</div>

Hello,

the admin is a little hide to see where you get it, perhaps it is why you did not found it…  
You have to click on the `Search or Go to` (my Gitlab is in french so I traduce approximately) or command `/`  
Then you should see the `Admin Interface` choice

 ![Capture d’écran du 2024-04-28 20-12-14](https://forum.yunohost.org/uploads/default/original/2X/f/f82dd90f266d6218127bce939f85d92ff28a1000.png)

Not sure is your issue, but perhaps 🤔

---

<div class="post-metadata">

**Author:** ![bigveuch](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigveuch](https://forum.yunohost.org/u/bigveuch)\
**Post date:** [April 29, 2024, 4:32am UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478/3 "2024-04-29T04:32:51Z")

</div>

**FR**  
Oui, j’ai vu que fonction des versions de Gitlab, le point d’entrée de l’interface d’admin avait changé, mais je ne la vois nulle part.  
Je tente une réinstalation dans YNH avec les paramètres par défaut (excepté le user d’admin).  
Je vous ferai un retour.  
**EN**  
Yes, i saw that the menu entry changed throw gitlab versions, but i can’t find it anywhere.  
I’m testing a knew gitlab install in YNH with default parameters except the admin user.  
Soon, some news.

---

<div class="post-metadata">

**Author:** ![bigveuch](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bigveuch](https://forum.yunohost.org/u/bigveuch)\
**Post date:** [May 1, 2024, 9:16am UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478/4 "2024-05-01T09:16:10Z")

</div>

**FR**  
J’ai trouvé 😉  
en plus d’activer le double authentification sur le user, il faut le déclarer ‘admin’ via la console Gitlab :

1. Se connecter en ssh sur le serveur YNH
2. Lancer la console gitlab : gitlab-rails console -e production
3. Retrouver l’utilisateur par son mail ou autre : user = User.find\_by(email: ‘kurt@domain.com’)
4. Le passer ‘admin’ : user.admin = true
5. Enregistrer : user.save!
6. Ferme la console : exit

Et pour finir se reconnecter sur Gitlab.  
On trouve alors ‘Admin Area’ dans la zone ‘search or go to’

 ![image](https://forum.yunohost.org/uploads/default/original/2X/b/b4a6630c1a764a63bb844f667b835b956c0105a3.png)

**EN**  
I found. You have to declare the user as an ‘Admin’ manually in the Gitlab Console :

1. SSH connect on the YNH server
2. Launch the gitlab console : gitlab-rails console -e production
3. Find the user by it’s mail address : user = User.find\_by(email: ‘kurt@domain.com’)
4. Decalre it ‘admin’ : user.admin = true
5. Save it : user.save!
6. Close the console : exit

Ref. : [How do I change my profile to Admin? - How to Use GitLab - GitLab Forum](https://forum.gitlab.com/t/how-do-i-change-my-profile-to-admin/35888)

---

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [May 2, 2024, 11:36pm UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478/5 "2024-05-02T23:36:27Z")

</div>

Merci pour la solution, j’hésitais à lancer la mise à jour, mais au mois il y a grâce à toi une solution si les comptes admin disparaissent…

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [May 17, 2024, 11:37pm UTC](https://forum.yunohost.org/t/gitlab-fresh-install-no-admin-area/29478/6 "2024-05-17T23:37:05Z")

</div>

Closed on May 17, 2024, 11:37pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
