Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SMTP Connection Timeout?

David Cheong February 12, 2018

I'm setting up the Jira Software using the docker and everything work just fine until I try to configure the SMTP mail server. I check on my configuration detail is correct but still having the error of 

 

Unfortunately no connection was possible. Review the errors below and rectify:

  • SocketTimeoutException: Read timed out

 

 

4 answers

0 votes
Vickey Palzor Lepcha
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2018

I would suggest - build another container with SMTP Server, connect jira container and smtp container under a network.

use the same mail configuration and check if smtp and jira containers talk to each other.

0 votes
David Cheong February 12, 2018

I using the docker images which i found at https://hub.docker.com/r/cptactionhank/atlassian-jira/

 

When I try to access into the docker, it's only using the deamon user, where I can't telnet or do any root access task. Is that something miss configuration on the docker image it self?

Vickey Palzor Lepcha
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2018

@David Cheong

 

Your docker container network and your mail server network - they should be able to able to reach each other.

Here it looks like a network issue - your container network and mail server network have restrictions and cannot communicate , check that.

0 votes
Danyal Iqbal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 12, 2018

Jira can'T communicate with the SMTP mail server.

I check on my configuration detail is correct.... i dont think so :)

Check theconfiguration again, consider proxies/basic networking stuff/etc.

0 votes
Thomas Deiler
Community Champion
February 12, 2018

Dear @David Cheong,

have tried to manually connect to the mail server from the Jira software server? Is it at all available?

So long

Thomas

Thomas Deiler
Community Champion
February 12, 2018

Again, log on the Jira server and try a

telnet <mailserver> <port>

I it reachable? Also a timeout?

So long

Thomas

Thomas Deiler
Community Champion
February 13, 2018

Dear @David Cheong,

if you want to find the reason, you have to login via SSH on your Jira server. There you can do the telnet. Eventually, the route is blocked from this host. But you have to check it out, before you you continue.

So long

Thomas

David Cheong February 18, 2018

I not able to install the telnet command in the Docker container

Thomas Deiler
Community Champion
February 19, 2018

Dear @David Cheong,

you need to find a way to get on this machine for troubleshooting. Otherwise it will get really hard to help you.

Can you post the exception found in the log file?

So long

Thomas

David Cheong February 19, 2018

The following is the log that I found in the server

 

bash-4.4$ cat atlassian-jira.log | grep smtp                                                                                                                                                                                 

2018-02-12 09:04:47,447 http-nio-8080-exec-16 ERROR david 544x8970x1 1rc8xwx 192.168.75.30 /secure/admin/VerifySmtpServerConnection!update.jspa [c.a.j.p.mail.webwork.VerifyMailServer] Unable to connect to the server at sm

tp.gmail.com due to the following exception: java.net.SocketTimeoutException: Read timed out                                                                                                                                 

2018-02-12 09:05:41,216 http-nio-8080-exec-7 ERROR david 545x8978x1 1rc8xwx 192.168.75.30 /secure/admin/VerifySmtpServerConnection!update.jspa [c.a.j.p.mail.webwork.VerifyMailServer] Unable to connect to the server at smt

p.gmail.com due to the following exception: java.net.SocketTimeoutException: Read timed out

Thomas Deiler
Community Champion
February 20, 2018

Yup - Jira cannot reach the server. The name will get resolved, but the response of the mail server is not received within the timeout.

Seems, that you looged in on the server. Can you telnet <mail_server> <port>?

Suggest an answer

Log in or Sign up to answer