IQSS logo

IRC log for #dataverse, 2018-03-22

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
07:27 tyrel joined #dataverse
08:13 jri joined #dataverse
08:14 jri joined #dataverse
11:06 jri joined #dataverse
11:12 jri joined #dataverse
13:31 pameyer joined #dataverse
14:23 andrewSC joined #dataverse
17:22 andrewSC hey guys, has anyone come accross a "SMTPSendFailedException" in the log output when trying to send a system email (Forgot Password)?
17:22 andrewSC I've double checked my mail host, user, sender address, and looked at additional properties and http://guides.dataverse.org/en/latest/installation/installation-main.html
17:23 andrewSC https://gist.github.com/andrewSC/1a2dcdfb5fae4450e1a6618e0bfd46a7
17:23 andrewSC that's all i get in the logs with both the Debug check box checked and the property "mail.debug" set to "true"
17:24 pdurbin andrewSC: thanks for the gist, especially. Which version of Dataverse are you running?
17:24 andrewSC 4.8.5
17:24 andrewSC O
17:25 andrewSC I'm going to remove all the extraneous properties from javamail, restart, and try one more time
17:25 andrewSC just to have a good base to start from
17:25 pdurbin Ok. Have you read through http://guides.dataverse.org/en/4.8.5/installation/installation-main.html#problems-sending-email ?
17:25 andrewSC mhmm haha
17:26 andrewSC i've also just double checked that i can telnet to smtp.gmail.com so it isn't a connectivity issue
17:26 pdurbin so you're configuring authentication, right?
17:27 andrewSC mhmmm
17:27 andrewSC the kicker is that at one point this was working correctly
17:27 pdurbin huh, weird
17:27 andrewSC i'm not sure when that stopped being the case
17:27 andrewSC yeah
17:29 pdurbin bah, we don't print the actual exception: https://github.com/IQSS/dataverse/blob/v4.8.5/src/main/java/edu/harvard/iq/dataverse/MailServiceBean.java#L141
17:30 andrewSC womp wompppp
17:30 andrewSC fyi here's the config i'm about to try out https://d2ffutrenqvap3.cloudfront.net/items/1q1T1Q0o3M0L2t1G1T1i/Screen%20Shot%202018-03-22%20at%201.28.06%20PM.png
17:31 pdurbin andrewSC: do you feel like recompiling a war file? You could add this above the line I just linked to: logger.info("ssfe: " + ssfe);
17:32 pdurbin otherwise it's hard to know what's failing exactly
17:32 andrewSC oh for sure, after the glassfish server comes back and the properties i removed didn't/don't seem to have helped i'm more than happy to deep dive
17:32 andrewSC right
17:32 andrewSC yeah if you don't have log info you're kinda... SOL lol
17:32 pdurbin yeah
17:33 pdurbin I guess you could/should make it "logger.warning" rather than "logger.info". Then I would suggest making a pull request. If you add that line.
17:35 andrewSC was just notified that our infra will be down for an hour to fix some sort of emergency netapp issue?
17:35 andrewSC -____________-
17:35 pdurbin oh dear. that sounds much more important
17:36 andrewSC but yeah seems that i still can't send mail :x
17:36 andrewSC haha
17:36 pdurbin andrewSC: whelp, please let me know if you add that logging line
17:36 andrewSC yeah seems like it might be a problem..
17:36 andrewSC pdurbin: will do! infra said 1 hour tops so we'll see
17:36 pdurbin thanks
17:36 andrewSC npnp
17:44 pameyer `failed to load any providers, using defaults` makes me wonder if authenticated email server is non-default, and it's not getting picked up
17:44 pameyer but I don't think I've seen this one before
18:26 andrewSC pdurbin: https://gist.github.com/andrewSC/e99f796d61d2bbe5c3ade74488d570da
18:26 andrewSC lmao wat
18:27 andrewSC L23 in particular
18:28 andrewSC I'll log the msg and rebuild the war
18:28 pdurbin ssfe: com.sun.mail.smtp.SMTPSendFailedException: 550-5.7.1 This message has been rejected due to matching a prohibited domain in 550 5.7.1 the body of your email. - gcdp d11sm4838263qth.97 - gsmtp
18:28 pdurbin looks like you added the logging line. great! now what?
18:29 andrewSC lol i was going to log the msg being generated and rebuild the war and redeploy
18:29 andrewSC because that doesn't make any sense to me
18:29 pdurbin You're starting to lose me.
18:30 pdurbin we now see the error right? in that "ssfe" output ^^
18:31 andrewSC pdurbin: right right, sorry if i'm being confusing :x
18:32 pdurbin no, it's fine. it sounds like maybe your server is on a blacklist or something. "prohibited domain". so it can't send mail?
18:32 andrewSC correct, I've added the logging line and redployed and we see the actual reason for the exception but it's still lost on me why the content of the email might contain a prohibited domain
18:32 pdurbin oh, in the *body* of the email. huh
18:32 andrewSC so I'm going to add another logging line to actually dump the message variable so i can see what the msg content is
18:32 andrewSC right
18:33 pdurbin sounds good. you can also bump up the logging levels on the fly but at this point it's probably easier for you to add your own debug statements.
18:33 pdurbin andrewSC: oh, and please do consider making a pull request for that ssfe line
18:33 pdurbin super useful to see what the error is
18:35 andrewSC can do :) Should we name the string to something besides "ssfe: "? Maybe something like "SMTPSendFailedException: "?
18:36 pdurbin yeah, that would be much better, actually. You could even add it to the existing line, really.
18:36 andrewSC mmmmm touche
18:41 andrewSC pdurbin: want me to create an issue (so i can name the branch like the documentation says i should) or just open a PR?
18:41 pdurbin andrewSC: issue first if you are willing
18:41 andrewSC npnp kk
19:01 andrewSC https://github.com/IQSS/dataverse/issues/4535
19:01 andrewSC https://github.com/IQSS/dataverse/pull/4536
19:02 andrewSC I think I got everything guideline related?
19:04 pameyer looks reasonable to me - but I *might* not be the best standard
19:04 pameyer and it looks like pdurbin already approved it
19:07 andrewSC :D
19:07 andrewSC lol
19:07 pdurbin yep, I just left a comment and moved it to QA
19:07 andrewSC nicee
19:08 pdurbin Having the issue is nice because it's more approachable. Less techie.
19:09 pdurbin You can tell a story.
19:24 pdurbin andrewSC: the travis build passed, which is always a good sign: https://travis-ci.org/IQSS/dataverse/builds/357041026 :)
19:34 andrewSC agreed re: gissue
19:34 andrewSC nice
19:34 andrewSC how do you guys like travisci?
19:35 andrewSC i just put in a request to get funding for travisci at the lab
19:35 andrewSC since most of our repos are private
19:45 pdurbin I like it. It's a nice sanity check that our Java code compiles at least. And there's some fancier stuff going on at https://github.com/IQSS/dataverse-ansible/issues/14
19:54 pameyer I'm leaning more towards jenkins; partly because we've got got some private repos too, and I can run it locally
19:54 pdurbin pameyer: yeah, I'm super interested in the stuff you've got cooking. Tech talk some day, please! :)
19:55 pameyer there's probably more urgent stuff; but I'd be open to it
19:56 pdurbin we could get lunch paid for, I bet :)
21:52 pameyer left #dataverse

| Channels | #dataverse index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Connect via chat.dataverse.org to discuss Dataverse (dataverse.org, an open source web application for sharing, citing, analyzing, and preserving research data) with users and developers.