« 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
(Page créée avec « == Erreur Gitlab : 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"''' Problème de droits suite à une mise à jour. <code>sudo chown -R registry:registry /var/opt/gitlab/gitlab-rails/shar... ») |
Aucun résumé des modifications |
||
(2 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
== | == 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"''' | ** 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 == | ||
Ligne 15 : | Ligne 39 : | ||
[[Catégorie:Gitlab]] | [[Catégorie:Gitlab]] | ||
<html> | |||
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a> | |||
</html> |
Dernière version du 17 février 2025 à 18:09
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