Ode '125': docker: invalid reference format: repository name must be lowercase

Veuillez remplir les champs ci-dessous pour que nous puissions vous aider. Remarque : vous devez fournir votre nom de domaine pour obtenir de l’aide. Les noms de domaine des certificats émis sont tous rendus publics dans les journaux de Transparence de Certificat (par exemple, https://crt.sh/?q=example.com). Par conséquent, le fait de ne pas indiquer votre nom de domaine ici n’aide pas à le garder secret, mais rend plus difficile pour nous le fait de vous aider.

Je peux lire des réponses en Anglais : non

Mon nom de domaine est :monserveur2016.hopto.org

J’ai exécuté cette commande :j’essaie d’installer let’s encrypt via docker

Elle a produit cette sortie :

Mon serveur Web est (inclure la version) :

Le système d’exploitation sur lequel mon serveur Web s’exécute est (version incluse) :OMV 4

Mon hébergeur, le cas échéant, est :

Je peux me connecter à un shell root sur ma machine (oui ou non, ou je ne sais pas) :oui

J’utilise un panneau de configuration pour gérer mon site (non, ou fournit le nom et la version du panneau de configuration) :

Bonsoir à tous. Je suis nouveau et ne sais pas trop si c’est le bon endroit pas bon je tente. J’essaie d’intaller let’s encrypt sur mon serveur OMV via docker et j’obtiens systématiquement des erreurs. Aussi je vous transmets le fichier d’erreur pour voir si vous pouvez m’aider :

Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; docker run -d --restart=always -v /etc/localtime:/etc/localtime:ro --net=bridge -p 0.0.0.0:450:443/tcp -p 0.0.0.0:90:80/tcp -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e PS1="(whoami)@(hostname):(pwd)\$ " -e HOME="/root" -e TERM="xterm" -e DHLEVEL="2048" -e ONLY_SUBDOMAINS="false" -e AWS_CONFIG_FILE="/config/dns-conf/route53.ini" -e S6_BEHAVIOUR_IF_STAGE2_FAILS="2" -e PUID="1000" -e PGID="100" -e TZ="Europe/Paris" -e URL="monserveur2016.hopto.org" -e EMAIL="xxxxxxxx@gmail.com" -e SUBDOMAINS="airsonic,nextcloud,omv,plex,ftp" -e VALIDATION="http" -v "/sharedfolders/Documents/letsencrypt":"/config":rw --name="letsencrypt" --label omv_docker_extra_args="–cap-add=NET_ADMIN –network my-docker-net" –cap-add=NET_ADMIN –network my-docker-net "linuxserver/letsencrypt:latest" 2>&1' with exit code '125': docker: invalid reference format: repository name must be lowercase. See 'docker run --help'. Erreur #0: OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; docker run -d --restart=always -v /etc/localtime:/etc/localtime:ro --net=bridge -p 0.0.0.0:450:443/tcp -p 0.0.0.0:90:80/tcp -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e PS1="(whoami)@(hostname):(pwd)$ " -e HOME="/root" -e TERM=“xterm” -e DHLEVEL=“2048” -e ONLY_SUBDOMAINS=“false” -e AWS_CONFIG_FILE="/config/dns-conf/route53.ini" -e S6_BEHAVIOUR_IF_STAGE2_FAILS=“2” -e PUID=“1000” -e PGID=“100” -e TZ=“Europe/Paris” -e URL=“monserveur2016.hopto.org” -e EMAIL="monsieurn2001@gmail.com" -e SUBDOMAINS=“airsonic,nextcloud,omv,plex,ftp” -e VALIDATION=“http” -v “/sharedfolders/Documents/letsencrypt”:"/config":rw --name=“letsencrypt” --label omv_docker_extra_args="–cap-add=NET_ADMIN –network my-docker-net" –cap-add=NET_ADMIN –network my-docker-net “linuxserver/letsencrypt:latest” 2>&1’ with exit code ‘125’: docker: invalid reference format: repository name must be lowercase.
See ‘docker run --help’. in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/docker.inc(597): OMV\System\Process->execute()
#1 [internal function]: OMVRpcServiceDocker->runContainer(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod(‘runContainer’, Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call(‘Docker’, ‘runContainer’, Array, Array, 1)
#5 {main}

1 Like

Make sure this is two ASCII dashes (--) rather than an "EN Dash" (, U+2013).

If it is the wrong dash, it will cause the error you are getting.

It is possible that the forum caused the dash to be converted when you created this post, though. Could you post the same output to pastebin.org or somewhere like that?

2 Likes

I can read responses in English: no

Assurez-vous qu'il s'agit de deux tirets ASCII (--) plutôt que d'un «EN Dash» ( , U+2013).
Si ce n'est pas le bon tiret, cela provoquera l'erreur que vous obtenez.
Il est possible que le forum ait provoqué la conversion du tableau de bord lorsque vous avez créé ce message. Pourriez-vous publier la même sortie sur pastebin.org ou quelque part comme ça?

1 Like

j'ai essayé avec les 2 tirets et avec 1 seul (celui du moins - [+]) et j'ai toujours l'erreur. Je viens de la recopier afin de vous montrer si cela change quelque chose :

Erreur #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; docker run -d --restart=always -v /etc/localtime:/etc/localtime:ro --net=bridge -p 0.0.0.0:450:443/tcp -p 0.0.0.0:90:80/tcp -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e PS1="$(whoami)@$(hostname):$(pwd)$ " -e HOME="/root" -e TERM="xterm" -e DHLEVEL="2048" -e ONLY_SUBDOMAINS="false" -e AWS_CONFIG_FILE="/config/dns-conf/route53.ini" -e S6_BEHAVIOUR_IF_STAGE2_FAILS="2" -e PUID="1000" -e PGID="100" -e TZ="Europe/France" -e URL="monserveur2016.hopto.org" -e SUBDOMAINS="airsonic,nextcloud,omv,plex,www" -e EMAIL="monsieurn2001@gmail.com" -e VALIDATION="http" -v "/sharedfolders/Documents/letsencrypt":"/config":rw --name="letsencrypt" --label omv_docker_extra_args="--cap-add=NET_ADMIN --network my-net" --cap-add=NET_ADMIN --network my-net "linuxserver/letsencrypt:amd64-latest" 2>&1' with exit code '125': docker: conflicting options: cannot attach both user-defined and non-user-defined network-modes.
See 'docker run --help'. in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/docker.inc(597): OMV\System\Process->execute()
#1 [internal function]: OMVRpcServiceDocker->runContainer(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('runContainer', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Docker', 'runContainer', Array, Array, 1)
#5 {main}

J'ai suivi ce tuto : https://www.youtube.com/watch?v=pRt7UlQSB2g

utilisé deux fois:

ça a l’air de marcher au niveau de la création du docker mais lorsque j’exécute la commande :
docker logs -f letsencrypt
j’obtiens cette erreur :

The following errors were reported by the server :
Domain: monserveur2016.hopto.org
Type : unauthorized
Detail Invalid response from http://monserveur2016.hopto.org/.well-known/acme-challenge/QnKKTdDf0dI6AF7-HBWtfYS2xeG6AFriNC128wBCnpk
[IP]: "\n\n\t<head>\n\t\t\topenmediavault - HTTP 404
error\n\t\t<meta charset=“UTF-8”>\n\t\t<meta
http-equiv=“X-U”

je testerais que l’emplacement fonctionne avec le fichier:
http://monserveur2016.hopto.org/.well-known/acme-challenge/fichierdetest1234

quand je clique sur le fichier test, il ne se passe rien.
voici le fichier log :

*[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 01-envfile: executing…
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing…


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donate/

GID/UID

User uid: 1000
User gid: 100

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing…
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing…
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 50-config: executing…
Variables set:
PUID=1000
PGID=100
TZ=Europe/Paris
URL=monserveur2016.hopto.org
SUBDOMAINS=
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
DHLEVEL=2048
VALIDATION=http
DNSPLUGIN=
EMAIL=monsieurn2001@gmail.com
STAGING=

2048 bit DH parameters present
No subdomains defined
E-mail address entered: monsieurn2001@gmail.com
http validation is selected
Generating new certificate
/usr/lib/python3.8/site-packages/jmespath/visitor.py:32: SyntaxWarning: “is” with a literal. Did you mean “==”?
if x is 0 or x is 1:
/usr/lib/python3.8/site-packages/jmespath/visitor.py:32: SyntaxWarning: “is” with a literal. Did you mean “==”?
if x is 0 or x is 1:
/usr/lib/python3.8/site-packages/jmespath/visitor.py:34: SyntaxWarning: “is” with a literal. Did you mean “==”?
elif y is 0 or y is 1:
/usr/lib/python3.8/site-packages/jmespath/visitor.py:34: SyntaxWarning: “is” with a literal. Did you mean “==”?
elif y is 0 or y is 1:
/usr/lib/python3.8/site-packages/jmespath/visitor.py:260: SyntaxWarning: “is” with a literal. Did you mean “==”?
if original_result is 0:
/usr/lib/python3.8/site-packages/digitalocean/LoadBalancer.py:19: SyntaxWarning: “is” with a literal. Did you mean “==”?
if type is ‘cookies’:
/usr/lib/python3.8/site-packages/CloudFlare/cloudflare.py:65: SyntaxWarning: “is” with a literal. Did you mean “==”?
if self.email is ‘’ or self.token is ‘’:
/usr/lib/python3.8/site-packages/CloudFlare/cloudflare.py:65: SyntaxWarning: “is” with a literal. Did you mean “==”?
if self.email is ‘’ or self.token is ‘’:
/usr/lib/python3.8/site-packages/CloudFlare/cloudflare.py:89: SyntaxWarning: “is” with a literal. Did you mean “==”?
if self.email is ‘’ or self.token is ‘’:
/usr/lib/python3.8/site-packages/CloudFlare/cloudflare.py:89: SyntaxWarning: “is” with a literal. Did you mean “==”?
if self.email is ‘’ or self.token is ‘’:
/usr/lib/python3.8/site-packages/CloudFlare/cloudflare.py:113: SyntaxWarning: “is” with a literal. Did you mean “==”?
if self.certtoken is ‘’ or self.certtoken is None:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for monserveur2016.hopto.org
Waiting for verification…
Challenge failed for domain monserveur2016.hopto.org
http-01 challenge for monserveur2016.hopto.org
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: monserveur2016.hopto.org
    Type: unauthorized
    Detail: Invalid response from
    http://monserveur2016.hopto.org/.well-known/acme-challenge/QeJm55VW2_0gzjHDnUbplwrIHGx0-utVAT-Kz5QB18M
    [89.3.171.63]: "\n\n\t\n\t\topenmediavault - HTTP 404
    error\n\t\t<meta charset=“UTF-8”>\n\t\t<meta
    http-equiv=“X-U”

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.
    ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container*

Mes excuses, je voulais que vous créiez ce fichier de test avant de tester. Nous devons être sûrs que les fichiers peuvent être servis à partir de cet emplacement.

Où dois-je créer ce fichier ? dans mes dossiers partagés ?ou en ssh dans le dossier acme ? une adresse de dossier svp car je débute.

Le fichier doit se trouver dans le dossier challenge.
S’il n’est pas spécifié de manière unique, il se trouverait dans le dossier racine du document, puis à l’emplacement /.well-known/acme-challenge/.

1 Like

Merci de votre aide. J’y suis parvenu. Le problème venait de mon transfert de port. Car ma box ouvrait juste les ports et ne faisait pas de fonction NAT. Merci de votre patience et votre aide.

1 Like