Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP timeout on validation email #103

Closed
Xqua opened this issue Mar 5, 2019 · 4 comments
Closed

SMTP timeout on validation email #103

Xqua opened this issue Mar 5, 2019 · 4 comments
Labels
invalid This doesn't seem right wontfix This will not be worked on

Comments

@Xqua
Copy link

Xqua commented Mar 5, 2019

Describe the bug
From the docker container, I get a SMTP timeout. (I tried 3 STMP servers they all timeout)
I've configured the ENV in the docker-compose, then:
docker-compose up -d
wait for boot go to register, click join, I get a nice POST

orcpub_1   | [qtp801544361-39] INFO datomic.peer - {:event :peer/transact, :uuid #uuid "5c7eac3d-80c3-4d29-ba9a-5dbdf1bdb9bd", :phase :start, :pid 1, :tid 39}
orcpub_1   | [clojure-agent-send-off-pool-2] INFO datomic.peer - {:event :peer/transact, :uuid #uuid "5c7eac3d-80c3-4d29-ba9a-5dbdf1bdb9bd", :phase :end, :pid 1, :tid 28}
orcpub_1   | [clojure-agent-send-off-pool-2] INFO datomic.peer - {:event :peer/notify-data, :msec 2, :id #uuid "5c7eac3d-80c3-4d29-ba9a-5dbdf1bdb9bd", :pid 1, :tid 28}

Then

orcpub_1   | #error {
orcpub_1   |  :cause "Operation timed out (Connection timed out)"
orcpub_1   |  :via
orcpub_1   |  [{:type com.sun.mail.util.MailConnectException
orcpub_1   |    :message "Couldn't connect to host, port: <OBFUSCATESMTPSERVER>, 587; timeout -1"
orcpub_1   |    :at [com.sun.mail.smtp.SMTPTransport openServer "SMTPTransport.java" 2100]}
orcpub_1   |   {:type java.net.ConnectException
orcpub_1   |    :message "Operation timed out (Connection timed out)"
orcpub_1   |    :at [java.net.PlainSocketImpl socketConnect "PlainSocketImpl.java" -2]}]
orcpub_1   |  :trace
orcpub_1   |  [[java.net.PlainSocketImpl socketConnect "PlainSocketImpl.java" -2]
orcpub_1   |   [java.net.AbstractPlainSocketImpl doConnect "AbstractPlainSocketImpl.java" 350]
orcpub_1   |   [java.net.AbstractPlainSocketImpl connectToAddress "AbstractPlainSocketImpl.java" 206]
orcpub_1   |   [java.net.AbstractPlainSocketImpl connect "AbstractPlainSocketImpl.java" 188]
orcpub_1   |   [java.net.SocksSocketImpl connect "SocksSocketImpl.java" 392]
orcpub_1   |   [java.net.Socket connect "Socket.java" 589]
orcpub_1   |   [java.net.Socket connect "Socket.java" 538]
orcpub_1   |   [com.sun.mail.util.SocketFetcher createSocket "SocketFetcher.java" 331]
orcpub_1   |   [com.sun.mail.util.SocketFetcher getSocket "SocketFetcher.java" 238]
orcpub_1   |   [com.sun.mail.smtp.SMTPTransport openServer "SMTPTransport.java" 2066]
orcpub_1   |   [com.sun.mail.smtp.SMTPTransport protocolConnect "SMTPTransport.java" 699]
orcpub_1   |   [javax.mail.Service connect "Service.java" 366]
orcpub_1   |   [postal.smtp$smtp_send_STAR_ invokeStatic "smtp.clj" 33]
orcpub_1   |   [postal.smtp$smtp_send_STAR_ invoke "smtp.clj" 29]
orcpub_1   |   [postal.smtp$smtp_send invokeStatic "smtp.clj" 58]
orcpub_1   |   [postal.smtp$smtp_send doInvoke "smtp.clj" 39]
orcpub_1   |   [clojure.lang.RestFn invoke "RestFn.java" 423]
orcpub_1   |   [postal.core$send_message invokeStatic "core.clj" 35]
orcpub_1   |   [postal.core$send_message invoke "core.clj" 29]
orcpub_1   |   [orcpub.email$send_verification_email invokeStatic "email.clj" 35]
orcpub_1   |   [orcpub.email$send_verification_email invoke "email.clj" 34]
orcpub_1   |   [orcpub.routes$send_verification_email invokeStatic "routes.clj" 291]
orcpub_1   |   [orcpub.routes$send_verification_email invoke "routes.clj" 290]
orcpub_1   |   [orcpub.routes$do_verification invokeStatic "routes.clj" 306]
orcpub_1   |   [orcpub.routes$do_verification doInvoke "routes.clj" 296]
orcpub_1   |   [clojure.lang.RestFn invoke "RestFn.java" 467]
orcpub_1   |   [orcpub.routes$register invokeStatic "routes.clj" 322]
orcpub_1   |   [orcpub.routes$register invoke "routes.clj" 309]
orcpub_1   |   [io.pedestal.interceptor$fn__13088$fn__13089 invoke "interceptor.clj" 41]
orcpub_1   |   [io.pedestal.interceptor.chain$try_f invokeStatic "chain.clj" 52]
orcpub_1   |   [io.pedestal.interceptor.chain$try_f invoke "chain.clj" 42]
orcpub_1   |   [io.pedestal.interceptor.chain$process_all_with_binding invokeStatic "chain.clj" 152]
orcpub_1   |   [io.pedestal.interceptor.chain$process_all_with_binding invoke "chain.clj" 129]
orcpub_1   |   [io.pedestal.interceptor.chain$process_all$fn__20918 invoke "chain.clj" 165]
orcpub_1   |   [clojure.lang.AFn applyToHelper "AFn.java" 152]
orcpub_1   |   [clojure.lang.AFn applyTo "AFn.java" 144]
orcpub_1   |   [clojure.core$apply invokeStatic "core.clj" 665]
orcpub_1   |   [clojure.core$with_bindings_STAR_ invokeStatic "core.clj" 1973]
orcpub_1   |   [clojure.core$with_bindings_STAR_ doInvoke "core.clj" 1973]
orcpub_1   |   [clojure.lang.RestFn invoke "RestFn.java" 425]
orcpub_1   |   [io.pedestal.interceptor.chain$process_all invokeStatic "chain.clj" 163]
orcpub_1   |   [io.pedestal.interceptor.chain$process_all invoke "chain.clj" 159]
orcpub_1   |   [io.pedestal.interceptor.chain$enter_all invokeStatic "chain.clj" 212]
orcpub_1   |   [io.pedestal.interceptor.chain$enter_all invoke "chain.clj" 206]
orcpub_1   |   [io.pedestal.interceptor.chain$execute invokeStatic "chain.clj" 356]
orcpub_1   |   [io.pedestal.interceptor.chain$execute invoke "chain.clj" 329]
orcpub_1   |   [io.pedestal.interceptor.chain$execute invokeStatic "chain.clj" 366]
orcpub_1   |   [io.pedestal.interceptor.chain$execute invoke "chain.clj" 329]
orcpub_1   |   [io.pedestal.http.impl.servlet_interceptor$interceptor_service_fn$fn__24243 invoke "servlet_interceptor.clj" 350]
orcpub_1   |   [io.pedestal.http.servlet.FnServlet service "servlet.clj" 28]
orcpub_1   |   [org.eclipse.jetty.servlet.ServletHolder handle "ServletHolder.java" 845]
orcpub_1   |   [org.eclipse.jetty.servlet.ServletHandler doHandle "ServletHandler.java" 583]
orcpub_1   |   [org.eclipse.jetty.server.handler.ScopedHandler handle "ScopedHandler.java" 143]
orcpub_1   |   [org.eclipse.jetty.server.handler.gzip.GzipHandler handle "GzipHandler.java" 399]
orcpub_1   |   [org.eclipse.jetty.server.handler.ContextHandler doHandle "ContextHandler.java" 1162]
orcpub_1   |   [org.eclipse.jetty.servlet.ServletHandler doScope "ServletHandler.java" 511]
orcpub_1   |   [org.eclipse.jetty.server.handler.ContextHandler doScope "ContextHandler.java" 1092]
orcpub_1   |   [org.eclipse.jetty.server.handler.ScopedHandler handle "ScopedHandler.java" 141]
orcpub_1   |   [org.eclipse.jetty.server.handler.HandlerWrapper handle "HandlerWrapper.java" 134]
orcpub_1   |   [org.eclipse.jetty.server.Server handle "Server.java" 518]
orcpub_1   |   [org.eclipse.jetty.server.HttpChannel handle "HttpChannel.java" 308]
orcpub_1   |   [org.eclipse.jetty.server.HttpConnection onFillable "HttpConnection.java" 244]
orcpub_1   |   [org.eclipse.jetty.io.AbstractConnection$ReadCallback succeeded "AbstractConnection.java" 273]
orcpub_1   |   [org.eclipse.jetty.io.FillInterest fillable "FillInterest.java" 95]
orcpub_1   |   [org.eclipse.jetty.io.SelectChannelEndPoint$2 run "SelectChannelEndPoint.java" 93]
orcpub_1   |   [org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume produceAndRun "ExecuteProduceConsume.java" 246]
orcpub_1   |   [org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume run "ExecuteProduceConsume.java" 156]
orcpub_1   |   [org.eclipse.jetty.util.thread.QueuedThreadPool runJob "QueuedThreadPool.java" 654]
orcpub_1   |   [org.eclipse.jetty.util.thread.QueuedThreadPool$3 run "QueuedThreadPool.java" 572]
orcpub_1   |   [java.lang.Thread run "Thread.java" 748]]}

To Reproduce
Steps to reproduce the behavior:

  1. clone develop branch
  2. edit docker-compose.yaml
  3. docker-compose up -d

Expected behavior
SMTP should not time out

Tried

  • Tried to restart the docker deamon: service docker restart
  • Tried 3 different SMTP servers
  • Ping DNS from inside the container: Works
@datdamnzotz
Copy link

Sounds like a firewall rule or mis-configuration someplace, impossible to tell without more details.
Can you telnet from the container to the mail server 25?

@Xqua
Copy link
Author

Xqua commented Mar 5, 2019

Tried that, but the busybox image form orcpub docker does not have telnet and not means to install it. (except from source I guess ?)

I agree, that's why I pinged from inside the container ... but on 587 TLS ... what kind of a configuration would that be xD

@datdamnzotz
Copy link

What is the mailhost your sending to?

@Xqua
Copy link
Author

Xqua commented Mar 5, 2019

I fucked up !!
My bad !!!

For information in the future of the web references

Scaleway hosting BLOCKS SMTP by default, had you gotta activate it on the web console for your machine !!! Thanks ! I'll close this ! <3 !

@Xqua Xqua closed this as completed Mar 5, 2019
@datdamnzotz datdamnzotz added invalid This doesn't seem right wontfix This will not be worked on labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants