Automatic certificat installation failed (how to fix or manually install)

i already did few certificat installation with no problems, but this one is not working…
i tried to delete domain and reinstall few times, but still not working for me…

do you know if there is a doc how to install certificate ?

for some reason can’t make it automatically via interface, i have this error…

IN A MY_DOMAIN 91.134.xx.xx

Certificate installation for MY_DOMAIN.org failed ! Exception: [Errno 2] No such file or directory: ‘/etc/nginx/conf.d/SITE.org.d/000-acmechallenge.conf’

2017-05-08 15:01:25,062 INFO moulinette.actionsmap process - processing action [23727.1401]: yunohost.domain.cert-install
2017-05-08 15:01:25,232 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:01:25,234 INFO yunohost.certmanager _certificate_install_letsencrypt - [23727.1401] Now attempting install of certificate for domain MY_DOMAIN.org!
2017-05-08 15:01:25,359 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:01:25,361 INFO yunohost.certmanager _configure_for_acme_challenge - [23727.1401] Adding Nginx configuration file for Acme challenge for domain MY_DOMAIN.org.
2017-05-08 15:01:25,361 ERROR yunohost.certmanager _certificate_install_letsencrypt - [23727.1401] Certificate installation for MY_DOMAIN.org failed !
Exception: [Errno 2] No such file or directory: ‘/etc/nginx/conf.d/MY_DOMAIN.org.d/000-acmechallenge.conf’
2017-05-08 15:01:25,362 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:01:25] “POST /domains/cert-install/MY_DOMAIN.org HTTP/1.1” 201 148 0.314888
2017-05-08 15:01:25,464 INFO moulinette.actionsmap process - processing action [23727.1402]: yunohost.domain.cert-status
2017-05-08 15:01:25,627 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:01:25,631 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:01:25] “GET /domains/cert-status/MY_DOMAIN.org?full&locale=en HTTP/1.1” 200 395 0.183611

afterwards, i decided to manyally create file (i checked that content is same everywhere) and got error below
.org.d/000-acmechallenge.conf’

2017-05-08 15:17:09,603 INFO moulinette.actionsmap process - processing action [23727.1403]: yunohost.user.list
2017-05-08 15:17:09,605 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:09] “GET /users?locale=en HTTP/1.1” 200 388 0.029308
2017-05-08 15:17:11,500 INFO moulinette.actionsmap process - processing action [23727.1404]: yunohost.domain.list
2017-05-08 15:17:11,501 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:11] “GET /domains?locale=en HTTP/1.1” 200 293 0.019143
2017-05-08 15:17:11,583 INFO moulinette.actionsmap process - processing action [23727.1405]: yunohost.tools.maindomain
2017-05-08 15:17:11,584 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:11] “PUT /domains/main HTTP/1.1” 200 186 0.017986
2017-05-08 15:17:13,939 INFO moulinette.actionsmap process - processing action [23727.1406]: yunohost.tools.maindomain
2017-05-08 15:17:13,940 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:13] “PUT /domains/main HTTP/1.1” 200 186 0.016023
2017-05-08 15:17:14,026 INFO moulinette.actionsmap process - processing action [23727.1407]: yunohost.app.list
2017-05-08 15:17:14,058 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:14] “GET /apps?installed&locale=en HTTP/1.1” 200 1580 0.052509
2017-05-08 15:17:16,303 INFO moulinette.actionsmap process - processing action [23727.1408]: yunohost.domain.cert-status
2017-05-08 15:17:16,487 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:17:16,513 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:16] “GET /domains/cert-status/MY_DOMAIN.net?full&locale=en HTTP/1.1” 200 391 0.224500
2017-05-08 15:17:20,746 INFO moulinette.actionsmap process - processing action [23727.1409]: yunohost.domain.cert-install
2017-05-08 15:17:20,913 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:17:20,915 INFO yunohost.certmanager _certificate_install_letsencrypt - [23727.1409] Now attempting install of certificate for domain MY_DOMAIN.net!
2017-05-08 15:17:21,057 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:17:21,058 INFO yunohost.certmanager _configure_for_acme_challenge - [23727.1409] Adding Nginx configuration file for Acme challenge for domain MY_DOMAIN.net.
2017-05-08 15:17:21,059 ERROR yunohost.certmanager _certificate_install_letsencrypt - [23727.1409] Certificate installation for MY_DOMAIN.net failed !
Exception: [Errno 2] No such file or directory: ‘/etc/nginx/conf.d/MY_DOMAIN.net.d/000-acmechallenge.conf’
2017-05-08 15:17:21,060 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:21] “POST /domains/cert-install/MY_DOMAIN.net HTTP/1.1” 201 148 0.328504
2017-05-08 15:17:21,162 INFO moulinette.actionsmap process - processing action [23727.1410]: yunohost.domain.cert-status
2017-05-08 15:17:21,336 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:17:21,339 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:17:21] “GET /domains/cert-status/MY_DOMAIN.net?full&locale=en HTTP/1.1” 200 391 0.194083
2017-05-08 15:19:50,951 INFO moulinette.actionsmap process - processing action [23727.1411]: yunohost.domain.cert-install
2017-05-08 15:19:51,121 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:19:51,123 INFO yunohost.certmanager _certificate_install_letsencrypt - [23727.1411] Now attempting install of certificate for domain MY_DOMAIN.net!
2017-05-08 15:19:51,260 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:19:51,262 INFO yunohost.certmanager _configure_for_acme_challenge - [23727.1411] Nginx configuration file for ACME challenge already exists for domain, skipping.
2017-05-08 15:19:51,263 INFO yunohost.certmanager _fetch_and_enable_new_certificate - [23727.1411] Prepare key and certificate signing request (CSR) for MY_DOMAIN.net…
2017-05-08 15:19:51,667 INFO yunohost.certmanager _prepare_certificate_signing_request - [23727.1411] Saving to /tmp/acme-challenge-private/MY_DOMAIN.net.csr.
2017-05-08 15:19:51,668 INFO yunohost.certmanager _fetch_and_enable_new_certificate - [23727.1411] Now using ACME Tiny to sign the certificate…
2017-05-08 15:19:51,668 INFO yunohost.certmanager get_crt - [23727.1411] Parsing account key…
2017-05-08 15:19:51,680 INFO yunohost.certmanager get_crt - [23727.1411] Parsing CSR…
2017-05-08 15:19:51,690 INFO yunohost.certmanager get_crt - [23727.1411] Registering account…
2017-05-08 15:19:52,216 INFO yunohost.certmanager get_crt - [23727.1411] Already registered!
2017-05-08 15:19:52,217 INFO yunohost.certmanager get_crt - [23727.1411] Verifying MY_DOMAIN.net…
2017-05-08 15:19:52,766 ERROR yunohost.certmanager _fetch_and_enable_new_certificate - [23727.1411] Wrote file to /tmp/acme-challenge-public/rGExfd0w0wKTSjCBUifnoQEB60k3kaKPQeu7CoN2Y0Q, but couldn’t download http://MY_DOMAIN.net/.well-known/acme-challenge/rGExfd0w0wKTSjCBUifnoQEB60k3kaKPQeu7CoN2Y0Q
2017-05-08 15:19:52,767 ERROR yunohost.certmanager _certificate_install_letsencrypt - [23727.1411] Certificate installation for MY_DOMAIN.net failed !
Exception: [Errno 22] Signing the new certificate failed
2017-05-08 15:19:52,768 INFO geventwebsocket.handler log_request - 127.0.0.1 - - [2017-05-08 15:19:52] “POST /domains/cert-install/MY_DOMAIN.net HTTP/1.1” 201 148 1.848022
2017-05-08 15:19:52,927 INFO moulinette.actionsmap process - processing action [23727.1412]: yunohost.domain.cert-status
2017-05-08 15:19:53,088 INFO urllib3.connectionpool _new_conn - Starting new HTTP connection (1): 91.134.xx.xx
2017-05-08 15:19:53,092 INFO geventwebsocket.han
i decided to try

/etc/nginx/conf.d# yunohost domain cert-install MY_DOMAIN.net --debug

38 DEBUG loading actions map namespace ‘yunohost’
43 DEBUG extra parameter classes loaded: [‘ask’, ‘password’, ‘required’, ‘pattern’]
43 DEBUG initializing base actions map parser for cli
44 DEBUG registering new callback action ‘yunohost.utils.packages.ynh_packages_version’ to [‘-v’, ‘–version’]
93 DEBUG initialize authenticator ‘ldap-anonymous’ with: uri=‘ldap://localhost:389’, base_dn=‘dc=yunohost,dc=org’, user_rdn=‘None’
95 DEBUG lock has been acquired
691 INFO processing action [17432.1]: yunohost.domain.cert-install with args={‘no_checks’: False, ‘force’: False, ‘domain_list’: [‘MY_DOMAIN.net’], ‘self_signed’: False, ‘auth’: <moulinette.authenticators.ldap.Authenticator object at 0x7f4b310cd610>, ‘staging’: False}
929 INFO Starting new HTTP connection (1): 91.134.xx.xx
930 DEBUG “HEAD / HTTP/1.1” 302 0
931 DEBUG Domain ‘MY_DOMAIN.net’ IP address is resolved to a, expect it to be 91.134.xx.xx or in the 127.0.0.0/8 address block
931 INFO Now attempting install of certificate for domain MY_DOMAIN.net!
1068 INFO Starting new HTTP connection (1): 91.134.xx.xx
1069 DEBUG “HEAD / HTTP/1.1” 302 0
1070 DEBUG Domain ‘MY_DOMAIN.net’ IP address is resolved to 91.134.xx.xx, expect it to be 91.134.xx.xx or in the 127.0.0.0/8 address block
1070 INFO Nginx configuration file for ACME challenge already exists for domain, skipping.
1071 DEBUG Making sure tmp folders exists…
1071 INFO Prepare key and certificate signing request (CSR) for MY_DOMAIN.net…
1849 INFO Saving to /tmp/acme-challenge-private/MY_DOMAIN.net.csr.
1850 INFO Now using ACME Tiny to sign the certificate…
1850 INFO Parsing account key…
1858 INFO Parsing CSR…
1865 INFO Registering account…
2393 INFO Already registered!
2394 INFO Verifying MY_DOMAIN.net…
2926 ERROR Wrote file to /tmp/acme-challenge-public/rGExfd0w0wKTSjCBUifnoQEB60k3kaKPQeu7CoN2Y0Q, but couldn’t download http://MY_DOMAIN.net/.well-known/acme-challenge/rGExfd0w0wKTSjCBUifnoQEB60k3kaKPQeu7CoN2Y0Q
2927 ERROR Certificate installation for MY_DOMAIN.net failed !
Exception: [Errno 22] Signing the new certificate failed
2928 DEBUG action [17432.1] ended after 2.236s
2928 DEBUG lock has been released

i also tried but no luck

/etc/nginx/conf.d# yunohost domain cert-install MY_DOMAIN.net --no-checks