« Gitlab : level=fatal msg="configuring application: filesystem: mkdir /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/lockfiles: permission denied" » : différence entre les versions

De www.yakakliker.org
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
== level=fatal msg="configuring application: filesystem: mkdir /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/lockfiles: permission denied" ==
== level=fatal msg="configuring application: filesystem: mkdir /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/lockfiles: permission denied" ==


* Symptômes : Impossible de supprimer un projet
=== Symptômes ===
* Impossible de supprimer un projet
** Erreur : '''Deletion of project fails with useless error message: "Failed to open TCP connection to localhost:5000"'''
** Erreur : '''Deletion of project fails with useless error message: "Failed to open TCP connection to localhost:5000"'''


* Si on fait un <code>netstat -altupen | grep 5000</code>, pas de port ouvert en écoute sur 5000


Problème de droits suite à une mise à jour.
<syntaxhighlight lang="bash">
root@VLINXXXPRD:~# telnet localhost 5000
 
Trying ::1...
 
Trying 127.0.0.1...
 
telnet: Unable to connect to remote host: Connection refused
</syntaxhighlight>
 
=== Solution ===
 
* Problème de droits suite à une mise à jour.




<code>sudo chown -R registry:registry /var/opt/gitlab/gitlab-rails/shared/registry</code>
<code>sudo chown -R registry:registry /var/opt/gitlab/gitlab-rails/shared/registry</code>
Redémarrer Gitlab au besoin
<code>gitlab-ctl restart</code>
<syntaxhighlight lang="bash">
root@VLINXXX:~# netstat -altupen | grep 5000
tcp        0      0 127.0.0.1:5000          0.0.0.0:*              LISTEN      994        458874422  226407/registry
</syntaxhighlight>


== Liens ==
== Liens ==

Version du 10 janvier 2025 à 17:08

level=fatal msg="configuring application: filesystem: mkdir /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/lockfiles: permission denied"

Symptômes

  • Impossible de supprimer un projet
    • Erreur : Deletion of project fails with useless error message: "Failed to open TCP connection to localhost:5000"
  • Si on fait un netstat -altupen | grep 5000, pas de port ouvert en écoute sur 5000
root@VLINXXXPRD:~# telnet localhost 5000

Trying ::1...

Trying 127.0.0.1...

telnet: Unable to connect to remote host: Connection refused

Solution

  • Problème de droits suite à une mise à jour.


sudo chown -R registry:registry /var/opt/gitlab/gitlab-rails/shared/registry

Redémarrer Gitlab au besoin

gitlab-ctl restart

root@VLINXXX:~# netstat -altupen | grep 5000
tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      994        458874422  226407/registry

Liens

https://gitlab.com/gitlab-org/gitlab-foss/-/issues/62759