fatal error -galaxy installation -TASK [usegalaxy_eu.certbot : Request certificate]

2 lines


TASK [usegalaxy_eu.certbot : Request certificate] ******************************

fatal: [galaxyimu]: FAILED! => {“changed”: true, “cmd”: [“/opt/certbot/bin/certbot”, “certonly”, “–test-cert”, “–non-interactive”, “–webroot”, “–register-unsafely-without-email”, “–agree-tos”, “-w”, “/srv/nginx/_well-known_root”, “-d”, “galaxyimu”], “delta”: “0:00:02.063752”, “end”: “2022-06-27 19:06:29.794965”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-06-27 19:06:27.731213”, “stderr”: “Saving debug log to /var/log/letsencrypt/letsencrypt.log\nAn unexpected error occurred:\nError creating new order :: Cannot issue for "galaxyimu": Domain name needs at least one dot\nAsk for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.”, “stderr_lines”: [“Saving debug log to /var/log/letsencrypt/letsencrypt.log”, “An unexpected error occurred:”, “Error creating new order :: Cannot issue for "galaxyimu": Domain name needs at least one dot”, “Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.”], “stdout”: “Requesting a certificate for galaxyimu”, “stdout_lines”: [“Requesting a certificate for galaxyimu”]}


TASK [galaxyproject.nginx : Fail due to previous configuration installation or validation errors] ***
fatal: [galaxyimu]: FAILED! => {“changed”: false, “msg”: “The new nginx configuration failed to install or validate, so the previous configuration has been restored. Please investigate the errors above for more information.”}

If I figured out properly, you were using the usegalaxy_eu.certbot ansible role to request a SSL certificate for your domain. The domain needs to be a fully qualified domain name like e.g. www.google.com
galaxyimu it’s not a f.q.d.n.

TASK [usegalaxy_eu.certbot : Request certificate] ******************************
fatal: [galaxyimu.utpal.local]: FAILED! => {“changed”: true, “cmd”: [“/opt/certbot/bin/certbot”, “certonly”, “–test-cert”, “–non-interactive”, “–webroot”, “–register-unsafely-without-email”, “–agree-tos”, “-w”, “/srv/nginx/_well-known_root”, “-d”, “galaxyimu.utpal.local”], “delta”: “0:00:02.088648”, “end”: “2022-06-27 20:21:10.797111”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2022-06-27 20:21:08.708463”, “stderr”: “Saving debug log to /var/log/letsencrypt/letsencrypt.log\nAn unexpected error occurred:\nError creating new order :: Cannot issue for "galaxyimu.utpal.local": Domain name does not end with a valid public suffix (TLD)\nAsk for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.”, “stderr_lines”: [“Saving debug log to /var/log/letsencrypt/letsencrypt.log”, “An unexpected error occurred:”, “Error creating new order :: Cannot issue for "galaxyimu.utpal.local": Domain name does not end with a valid public suffix (TLD)”, “Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.”], “stdout”: “Requesting a certificate for galaxyimu.utpal.local”, “stdout_lines”: [“Requesting a certificate for galaxyimu.utpal.local”]}

do i need to have a registered website? How do i create one? Can you instruct me how to do it? can i use something like galaxyimu.utpal.local.eu

If your server is in a public network, and you have a static ip, you can register a domain name through a Domain Name Registrar like https://www.godaddy.com/
But .local suggest to me that you are in a private network.

Is there a way to do local install with a private network? Can you show some instruction on how to do it.