# \[Solved\] Mattermost Omnibus SSL ticket issue

**URL:** <https://forum.mattermost.com/t/solved-mattermost-omnibus-ssl-ticket-issue/17917>\
**Category:** Troubleshooting\
**Created:** [February 9, 2024, 8:09am UTC](https://forum.mattermost.com/t/solved-mattermost-omnibus-ssl-ticket-issue/17917 "2024-02-09T08:09:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkjake](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/darkjake/32/7588_2.png) [@darkjake](https://forum.mattermost.com/u/darkjake)\
**Post date:** [February 9, 2024, 8:09am UTC](https://forum.mattermost.com/t/solved-mattermost-omnibus-ssl-ticket-issue/17917/1 "2024-02-09T08:09:05Z")

</div>

For feature requests, please see: [https://mattermost.com/suggestions/](https://mattermost.com/suggestions/).

For troubleshooting questions, please post in the following format:

**Summary**  
Can’t get past SSL certificate generation, I am fairly new to Nginx hence why I chose Omnibus to set it up, but the setup cant seem to reach the domain.

**Steps to reproduce**  
Latest version, setup ubuntu server LTS (latest release), went through tutorial, after running the apt installer for omnibus when it reaches the SSL certificate generation it errors out

**Expected behavior**  
Not to error out

**Observed behavior**  
It errors out with the below error

> TASK [Generate SSL Certificate] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> fatal: [localhost]: FAILED! =\> {“changed”: true, “cmd”: [“certbot”, “certonly”, “–nginx”, “-d”, “johchat.online”, “-n”, “–agree-tos”, “–email”, “[darkjake007@gmail.com](mailto:darkjake007@gmail.com)”], “delta”: “0:00:17.805464”, “end”: “2024-02-09 07:17:51.842387”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2024-02-09 07:17:34.036923”, “stderr”: “Saving debug log to /var/log/letsencrypt/letsencrypt.log\nSome challenges have failed.\nAsk for help or search for solutions at [https://community.letsencrypt.org](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”, “Some challenges have failed.”, “Ask for help or search for solutions at [https://community.letsencrypt.org](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 johchat.online\n\nCertbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:\n Domain: johchat.online\n Type: connection\n Detail: 27.96.192.65: Fetching [JOH - Extreme Edition](http://johchat.online/.well-known/acme-challenge/cmciYlbNLt3aFQuZUHmISWHN_CGqLv_iBZJe-sK8RNc:) Timeout during connect (likely firewall problem)\n\nHint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.”, “stdout\_lines”: [“Requesting a certificate for johchat.online”, “”, “Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:”, " Domain: johchat.online", " Type: connection", " Detail: 27.96.192.65: Fetching [JOH - Extreme Edition](http://johchat.online/.well-known/acme-challenge/cmciYlbNLt3aFQuZUHmISWHN_CGqLv_iBZJe-sK8RNc:) Timeout during connect (likely firewall problem)", “”, “Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.”]}

Please see here for dns records  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/b/ba80045f9246773989d0745efea0abdef97e5a14.png)

---

<div class="post-metadata">

**Author:** ![darkjake](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/darkjake/32/7588_2.png) [@darkjake](https://forum.mattermost.com/u/darkjake)\
**Post date:** [February 15, 2024, 12:01pm UTC](https://forum.mattermost.com/t/solved-mattermost-omnibus-ssl-ticket-issue/17917/2 "2024-02-15T12:01:02Z")

</div>

Resolved, my provider was blocking the ports.

---

<div class="post-metadata">

**Author:** ![NDI](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@NDI](https://forum.mattermost.com/u/NDI)\
**Post date:** [September 5, 2024, 2:56am UTC](https://forum.mattermost.com/t/solved-mattermost-omnibus-ssl-ticket-issue/17917/3 "2024-09-05T02:56:35Z")

</div>

What did you do exactly to resolve this problem? I am having the exact same issue.

```auto
user@server:~$ sudo dpkg-reconfigure mattermost-omnibus
Creating a data only backup before updating the platform
pg_dump: error: connection to database "mattermost" failed: connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user "mmuser"
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user "mmuser"
ERROR: error running database backup command: exit status 1
Couldn't take a backup, skipping...
config file "/etc/mattermost/mmomni.yml" successfully saved
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match
'all'

PLAY [localhost] *******************************************************************************************************

TASK [Gathering Facts] *************************************************************************************************
ok: [localhost]

TASK [Update debconf variables with json file values] ******************************************************************
ok: [localhost] => (item={'key': 'mattermost-omnibus/domain', 'value': 'example.domain.com'})
ok: [localhost] => (item={'key': 'mattermost-omnibus/email', 'value': 'email@domain.com'})

TASK [Ensure that NGINX is running] ************************************************************************************
ok: [localhost]

TASK [Check if certificate already exists] *****************************************************************************
ok: [localhost]

TASK [Generate SSL Certificate] ****************************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["certbot", "certonly", "--nginx", "-d", "example.domain.com", "-n", "--agree-tos", "--email", "email@domain.com"], "delta": "0:00:14.926553", "end": "2024-09-05 03:44:27.609331", "msg": "non-zero return code", "rc": 1, "start": "2024-09-05 03:44:12.682778", "stderr": "Saving debug log to /var/log/letsencrypt/letsencrypt.log\nSome challenges have failed.\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", "Some challenges have failed.", "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 example.domain.com\n\nCertbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:\n Domain: example.domain.com\n Type: connection\n Detail: 12.12.123.123: Fetching http://example.domain.com/.well-known/acme-challenge/gynGkRyX-IvpHug6dSW6w4GsWslPCD_qvm9sgC0GGx0: Timeout during connect (likely firewall problem)\n\nHint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.", "stdout_lines": ["Requesting a certificate for example.domain.com", "", "Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:", " Domain: example.domain.com", " Type: connection", " Detail: 12.12.123.123: Fetching http://example.domain.com/.well-known/acme-challenge/gynGkRyX-IvpHug6dSW6w4GsWslPCD_qvm9sgC0GGx0: Timeout during connect (likely firewall problem)", "", "Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet."]}

PLAY RECAP *************************************************************************************************************
localhost : ok=4 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

ERROR: error running reconfigure: exit status 2

###############################################################
# Omnibus configuration failed. #
# #
# Please run "dpkg-reconfigure mattermost-omnibus" to #
# try again or join the Mattermost Community for help at #
# https://mattermost.com/pl/default-ask-mattermost-community/ #
###############################################################

```

---

<div class="post-metadata">

**Author:** ![NDI](https://avatars.discourse-cdn.com/v4/letter/n/ee7513/32.png) [@NDI](https://forum.mattermost.com/u/NDI)\
**Post date:** [September 5, 2024, 5:53am UTC](https://forum.mattermost.com/t/solved-mattermost-omnibus-ssl-ticket-issue/17917/4 "2024-09-05T05:53:36Z")

</div>

What exactly did you do to fix it? I am having the exact same problem.
