Question

err_connection_timed_out (discourse)

Posted May 11, 2020 298 views
DigitalOceanDeployment

I thought my one-click discourse download was okay. but when I try to connect at my domain, i found this error in my browser -> errconnectiontimed_out

couldn’t see discourse’s congratulation screen

reopening console, there was some texts with “no mail”....

*can you help me? I wanna know about my droplet’s problem. *

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @mapal,

What you need to do after deploying the Discourse Droplet is to SSH to the Droplet and add the following details:

  • Email Address for the Discourse Admin Account
  • The hostname (domain or subdomain) you will use for Discourse
  • Details for the SMTP server your Discourse install will use to send email
  • Email Address to use if you wish to set up a LetsEncrypt SSL certificate

Once you’ve done that then you will be able to visit your domain name and see your Discourse installation.

If you have already done this, I would recommend checking if the Apache Docker container is running, you can do that by connecting to your server via SSH, and running this command:

  • sudo docker ps -a

If it is not running, I would recommend trying to start it and checking the logs.

To try and start the container run:

  • sudo docker start container_id_here

And then to check the logs run:

  • sudo docker logs container_id_here

Hope that this helps!
Regards,
Bobby

  • thank about your reply, but I’m in trouble yet.

    I already typed this all.

    • Email Address for the Discourse Admin Account
    • The hostname (domain or subdomain) you will use for Discourse
    • Details for the SMTP server your Discourse install will use to send email
    • Email Address to use if you wish to set up a LetsEncrypt SSL certificate
    sudo docker ps -a
    

    This is my console’s output.

    CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                                      NAMES
    225d49c57fd7        local_discourse/app   "/sbin/boot"        22 hours ago        Up About a minute   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   app
    
    

    and I followed your codes all.

    sudo docker start 225d49c57fd7
    

    output

    225d49c57fd7
    

    And this

    sudo docker logs 225d49c57fd7
    

    output (much longer than this code but most of it was reputation)

    nginx: [emerg] cannot load certificate "/shared/ssl/forum.cultrobal.com.cer": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
    Shutting Down
    run-parts: executing /etc/runit/3.d/01-nginx
    ok: down: nginx: 1s, normally up, want up
    run-parts: executing /etc/runit/3.d/02-unicorn
    (2831) exiting
    ok: down: unicorn: 0s, normally up
    run-parts: executing /etc/runit/3.d/10-redis
    ok: down: redis: 0s, normally up
    run-parts: executing /etc/runit/3.d/99-postgres
    ok: down: postgres: 0s, normally up
    ok: down: cron: 0s, normally up
    ok: down: nginx: 3s, normally up
    ok: down: postgres: 1s, normally up
    ok: down: redis: 2s, normally up
    ok: down: rsyslog: 0s, normally up
    ok: down: unicorn: 2s, normally up
    run-parts: executing /etc/runit/1.d/00-ensure-links
    run-parts: executing /etc/runit/1.d/00-fix-var-logs
    run-parts: executing /etc/runit/1.d/anacron
    run-parts: executing /etc/runit/1.d/cleanup-pids
    Cleaning stale PID files
    run-parts: executing /etc/runit/1.d/copy-env
    run-parts: executing /etc/runit/1.d/letsencrypt
    [Tue 12 May 2020 10:07:13 AM UTC] Single domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:13 AM UTC] Getting domain auth token for each domain
    [Tue 12 May 2020 10:07:14 AM UTC] Getting webroot for domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:15 AM UTC] Verifying: forum.cultrobal.com
    [Tue 12 May 2020 10:07:18 AM UTC] Pending
    [Tue 12 May 2020 10:07:20 AM UTC] Pending
    [Tue 12 May 2020 10:07:22 AM UTC] Pending
    [Tue 12 May 2020 10:07:25 AM UTC] Pending
    [Tue 12 May 2020 10:07:27 AM UTC] forum.cultrobal.com:Verify error:Fetching http://forum.cultrobal.com/.well-known/acme-challenge/MYMkrQaiBCwDhqBx7hOrd10indiqaFoJQwnk2yfsHuc: Timeout during connect (likely firewall problem)
    [Tue 12 May 2020 10:07:27 AM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
    Error loading file ca.cer
    [Tue 12 May 2020 10:07:28 AM UTC] Single domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:28 AM UTC] Getting domain auth token for each domain
    [Tue 12 May 2020 10:07:29 AM UTC] Getting webroot for domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:30 AM UTC] Verifying: forum.cultrobal.com
    [Tue 12 May 2020 10:07:32 AM UTC] Pending
    [Tue 12 May 2020 10:07:35 AM UTC] Pending
    [Tue 12 May 2020 10:07:37 AM UTC] Pending
    [Tue 12 May 2020 10:07:39 AM UTC] Pending
    [Tue 12 May 2020 10:07:42 AM UTC] forum.cultrobal.com:Verify error:Fetching http://forum.cultrobal.com/.well-known/acme-challenge/RBrK97NjQODKGTkgWXnSizTZy_wVl4_ZGLaQz1NJ9V4: Timeout during connect (likely firewall problem)
    [Tue 12 May 2020 10:07:42 AM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
    [Tue 12 May 2020 10:07:42 AM UTC] Installing key to:/shared/ssl/forum.cultrobal.com.key
    [Tue 12 May 2020 10:07:42 AM UTC] Installing full chain to:/shared/ssl/forum.cultrobal.com.cer
    cat: /shared/letsencrypt/forum.cultrobal.com/fullchain.cer: No such file or directory
    [Tue 12 May 2020 10:07:43 AM UTC] Single domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:43 AM UTC] Getting domain auth token for each domain
    [Tue 12 May 2020 10:07:44 AM UTC] Getting webroot for domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:44 AM UTC] Verifying: forum.cultrobal.com
    [Tue 12 May 2020 10:07:47 AM UTC] Pending
    [Tue 12 May 2020 10:07:49 AM UTC] Pending
    [Tue 12 May 2020 10:07:51 AM UTC] Pending
    [Tue 12 May 2020 10:07:54 AM UTC] Pending
    [Tue 12 May 2020 10:07:56 AM UTC] forum.cultrobal.com:Verify error:Fetching http://forum.cultrobal.com/.well-known/acme-challenge/_fsWTKTcnLHnWHRl8t_Um5oR26FHmneFcf-eblkBk0U: Timeout during connect (likely firewall problem)
    [Tue 12 May 2020 10:07:56 AM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
    Error loading file ca.cer
    [Tue 12 May 2020 10:07:57 AM UTC] Single domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:57 AM UTC] Getting domain auth token for each domain
    [Tue 12 May 2020 10:07:58 AM UTC] Getting webroot for domain='forum.cultrobal.com'
    [Tue 12 May 2020 10:07:58 AM UTC] Verifying: forum.cultrobal.com
    [Tue 12 May 2020 10:08:01 AM UTC] Pending
    [Tue 12 May 2020 10:08:03 AM UTC] Pending
    [Tue 12 May 2020 10:08:06 AM UTC] Pending
    [Tue 12 May 2020 10:08:08 AM UTC] Pending
    [Tue 12 May 2020 10:08:11 AM UTC] forum.cultrobal.com:Verify error:Fetching http://forum.cultrobal.com/.well-known/acme-challenge/a8cZXKMq9yeIJYlU3B8v0EqqbJdRiRCh13EIUvAou6U: Timeout during connect (likely firewall problem)
    [Tue 12 May 2020 10:08:11 AM UTC] Please check log file for more details: /shared/letsencrypt/acme.sh.log
    [Tue 12 May 2020 10:08:11 AM UTC] Installing key to:/shared/ssl/forum.cultrobal.com_ecc.key
    [Tue 12 May 2020 10:08:11 AM UTC] Installing full chain to:/shared/ssl/forum.cultrobal.com_ecc.cer
    cat: /shared/letsencrypt/forum.cultrobal.com_ecc/fullchain.cer: No such file or directory
    Error loading file ca.cer
    Error loading file ca.cer
    Started runsvdir, PID is 5213
    ok: run: redis: (pid 5225) 0s
    ok: run: postgres: (pid 5226) 0s
    chgrp: invalid group: ‘syslog’
    nginx: [emerg] cannot load certificate "/shared/ssl/forum.cultrobal.com.cer": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
    rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
    rsyslogd: activation of module imklog failed [v8.1901.0 try https://www.rsyslog.com/e/2145 ]
    supervisor pid: 5223 unicorn pid: 5248
    
    

    I’m sorry about bothering you.
    I need a expert’s advice.
    can you help me once more?

    • Hi there @mapal,

      Actually the Docker container seems to be running correctly and it is listening on the correct port.

      Do you by any chance have a firewall on your Droplet which could be blocking the connections to port 80?

      Regards,
      Bobby

      • my droplet’s firewalls are ssh, http, https
        (before there was only ssh)
        I made these just clicking “create firewall” -> “new rule” the end.

        after making firewalls, browsers’ error message became different.

        opening console, entered my domain first.
        this was my page’s context.


        Welcome to nginx!
        If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

        For online documentation and support please refer to nginx.org.
        Commercial support is available at nginx.com.

        Thank you for using nginx.

        refreshing my browser, this was browser’s context.

        ERRCONNECTIONREFUSED

        before was “ERRCONNECTIONTIMED_OUT”

        Can you access my domain at your computer? (maybe not)

        My domain is forum.cultrobal.com

Submit an Answer