These are chat archives for reactioncommerce/reaction

8th
Mar 2017
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:00
can you verify your smtp from mailgun somehow?
maybe with another application?
im not sure why else it would fail unless i looked into the code more
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:07
the error your getting
seems to be due to your host being unreachable
so i would suggest to recheck your smtp string
Spencer Norman
@spencern
Mar 08 2017 01:28
I’d agree w/ @tdmoneybanks - not really sure what’s going on. Honestly I’ve never deployed via your method. We deploy using docker, but use a CI step to build everything and use a stackfile that contains all of our envs and also separate out our nginx, db, and app servers
For us though, the MAIL_URL works just fine
I’m curious why it is showing port 5887 for the EHOSTUNREACH as well
smtp port should be 587, so maybe an extra 8 snuck in there?
Jeremy Shimko
@jshimko
Mar 08 2017 01:30
connect EHOSTUNREACH 147.75.195.176:5887 looks like a bad mail config to me. SMTP doesn’t usually happen on a port like 5887
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:32
agreed, didnt even catch the 5887. thats for sure it. in fact, even the error states "_exceptionWithHostPort"
Spencer Norman
@spencern
Mar 08 2017 01:32
:+1:
Mateo Morrison
@mateomorrison
Mar 08 2017 01:41
I did everything again. Let's see how it goes
Reversed thinking

What about now. New error: Error: `139731223557952:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

  at Error (native)

01:45:12.958Z`

Error: 139731223557952:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

  at Error (native)

01:45:12.958Z

This is the output @spencern @tdmoneybanks
Same Email Job Failed
Spencer Norman
@spencern
Mar 08 2017 01:46
Can you paste the part with the email job failed?
Mateo Morrison
@mateomorrison
Mar 08 2017 01:47
It's getting formatted itself :-1: but here:
01:46:54.156Z ERROR Reaction: Email job failed
Error: 139731223557952:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:
at Error (native)
Brent Hoover
@zenweasel
Mar 08 2017 01:48
try using three backticks, then a LF before your code, and then three backticks after. That will format it properly
Mateo Morrison
@mateomorrison
Mar 08 2017 01:48
English please? I'm a newbie
Brent Hoover
@zenweasel
Mar 08 2017 01:48
Use ```
then a newline
then your code
then three more ```
Mateo Morrison
@mateomorrison
Mar 08 2017 01:49
01:46:54.156Z ERROR Reaction: Email job failed Error: 139731223557952:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794: at Error (native)
Brent Hoover
@zenweasel
Mar 08 2017 01:49
those are the characters next to the 1
Spencer Norman
@spencern
Mar 08 2017 01:49
Welp this is a new error, not really sure what’s triggering it. 587 is the secure port for smtp
you could try using the unsecure port 25
Brent Hoover
@zenweasel
Mar 08 2017 01:50
Mateo, if you are trying to evaluate Reaction, was there a reason you didn’t run it locally?
that experience is a lot less painful
Mateo Morrison
@mateomorrison
Mar 08 2017 01:51
@zenweasel I already ran it locally
@spencern On the docker-compose.yml
Spencer Norman
@spencern
Mar 08 2017 01:51
in place of port 587
can you paste your MAIL_URL string (with the sensitive parts censored)
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:53
yes please paste
seems like ssl error but dont know why you would have one
as far as i know, there are no extra requirements to send the mail on port 587
Spencer Norman
@spencern
Mar 08 2017 01:53
same
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:53
it seems to me there is still an issue with your string
any way to get a test string?
just to verify if the app can send ANY email?
Mateo Morrison
@mateomorrison
Mar 08 2017 01:54
Here you go
Think it's sending the picture
Screen Shot 2017-03-07 at 9.52.29 PM.png
That's the ´´´docker-compose.yml´´´
Jeremy Shimko
@jshimko
Mar 08 2017 01:55
does your username have an @ in it?
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:55
im not sure not very familiar with this email provider but...
Mateo Morrison
@mateomorrison
Mar 08 2017 01:55
Nope, some dashes ("-")
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:55
not username
@jshimko i believe this email provider users token:token
Mateo Morrison
@mateomorrison
Mar 08 2017 01:55
That's the API token
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:55
@spencern your familiar with this app
is there any chance
its sending an error
Spencer Norman
@spencern
Mar 08 2017 01:56
yeah, we use postmark
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:56
due to not sending mail from domain localhost?
Spencer Norman
@spencern
Mar 08 2017 01:56
oh, is this localhost?
Jeremy Shimko
@jshimko
Mar 08 2017 01:56
just asking because Mailgun uses an @ in the username and you have to url encode that
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:56
yes
looks like it from his root url env var
Spencer Norman
@spencern
Mar 08 2017 01:56
possibly then. Not sure how you would verify DKIM on localhost
Mateo Morrison
@mateomorrison
Mar 08 2017 01:56
I have mailgun and changed to postmark
I can change my ROOT URL to my actual url right?
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:56
do you have an actual domain @mateomorrison ?
yes you can if your dns record is set correctly
Mateo Morrison
@mateomorrison
Mar 08 2017 01:57
@tdmoneybanks Yes, pointed to the docker machine ip
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:57
yes or docker machine ip
either one
Mateo Morrison
@mateomorrison
Mar 08 2017 01:57
But I didn't set it up thinking my app was not ready
tdmoneybanks
@tdmoneybanks
Mar 08 2017 01:57
try that
yea im not really sure why your doing this docker deploy stuff then
you wont have these verification problems running app in dev mode
till your ready
Mateo Morrison
@mateomorrison
Mar 08 2017 02:04
@spencern Am I putting the wrong API Key of Postmark? It has dashes and it's long right?
Spencer Norman
@spencern
Mar 08 2017 02:04
it should be found in the accounts => servers => credentials section
and there should be a blue button to generate a new key
I’ve not tried it from localhost before though
Jeremy Shimko
@jshimko
Mar 08 2017 02:05
yeah, I have to agree with @tdmoneybanks… I’d recommend getting all of this working in development first. Jumping straight to a production Docker deployment is kind of skipping a lot of steps if you’re new to this stuff.
Mateo Morrison
@mateomorrison
Mar 08 2017 02:05
I'll do it with my domain @spencern I forgot to
Spencer Norman
@spencern
Mar 08 2017 02:06
We do use mailgun successfully on localhost all the time though
Mateo Morrison
@mateomorrison
Mar 08 2017 02:06
@jshimko I already ran it on dev, but trying to get it live
Jeremy Shimko
@jshimko
Mar 08 2017 02:08
you got your email working locally?
Mateo Morrison
@mateomorrison
Mar 08 2017 02:09
The one it auto generates when you run reaction yup
The blabla@localhost and the long password. It fully worked
Jeremy Shimko
@jshimko
Mar 08 2017 02:10
no, get your SMTP url working in a development environment
Mateo Morrison
@mateomorrison
Mar 08 2017 02:12
@spencern Never tried, I will now
New error guys... It's getting my head warmed
Screen Shot 2017-03-07 at 10.11.23 PM.png
Jeremy Shimko
@jshimko
Mar 08 2017 02:13
I think you might be misunderstanding what I’m saying. Your email doesn’t work because you’re configuring it incorrectly. This is entirely a configuration issue. Get your configuration working in development (where the logs are far easier to get useful info from), then use that working config for the production deployment.
Spencer Norman
@spencern
Mar 08 2017 02:13
:point_up:
Also, there’s no error there
Mateo Morrison
@mateomorrison
Mar 08 2017 02:15
I'll do how @jshimko says
Thank you guys! Been great help
tdmoneybanks
@tdmoneybanks
Mar 08 2017 02:17
which error ?
yeah you didnt have an error in that btw just warning. no exception:)
i wonder if we should consider auto verifying the email for admin? @aaronjudd
Patrick Artounian
@partounian
Mar 08 2017 05:27
So no one else has stupidly high usage for CPU?
Brent Hoover
@zenweasel
Mar 08 2017 05:27
Are you talking about in local development?
Patrick Artounian
@partounian
Mar 08 2017 05:27
Yes
Brent Hoover
@zenweasel
Mar 08 2017 05:28
For me, CPU usage is pretty high on a single CPU.
Spencer Norman
@spencern
Mar 08 2017 05:28
I leave reaction running almost 24/7 and my cpu usage sits around 5%
on 0.17.0 (heavily modified)
Brent Hoover
@zenweasel
Mar 08 2017 05:29
@spencern that’s running development version?
Spencer Norman
@spencern
Mar 08 2017 05:29
yeah
Patrick Artounian
@partounian
Mar 08 2017 05:30
Taking a second look overall load is low, but it says 102.7% CPU and 11 threads. I am going to keep monitoring because I have noticed my Macbook's fans turning on possibly because of this.
Spencer Norman
@spencern
Mar 08 2017 05:30
Screenshot 2017-03-07 22.29.44.png
Brent Hoover
@zenweasel
Mar 08 2017 05:30
1__sudo.png
it hovers around 70 - 90%
what app are you using to look at CPU uage @spencern ?
Patrick Artounian
@partounian
Mar 08 2017 05:31
activity monitor
Spencer Norman
@spencern
Mar 08 2017 05:31
that’s activity monitor, not sure how accurate
osx app
Brent Hoover
@zenweasel
Mar 08 2017 05:32
Yeah, 70 something in that as well
which is next to nothing on an 8 core machine
Spencer Norman
@spencern
Mar 08 2017 05:33
is that idle?
Brent Hoover
@zenweasel
Mar 08 2017 05:33
yep
Spencer Norman
@spencern
Mar 08 2017 05:33
seems high to me still, even though it’s just one core
Brent Hoover
@zenweasel
Mar 08 2017 05:33
I think everyone on the Reaction team has comparable numbers
Spencer Norman
@spencern
Mar 08 2017 05:33
interesting
I wonder why I’m so low
Brent Hoover
@zenweasel
Mar 08 2017 05:34
yeah, get it together man
Spencer Norman
@spencern
Mar 08 2017 05:34
lol
Brent Hoover
@zenweasel
Mar 08 2017 05:34
the cool kids are swamping their CPU
Patrick Artounian
@partounian
Mar 08 2017 05:35
blob
Spencer Norman
@spencern
Mar 08 2017 05:35
what are you running in that shell screenshot?
Patrick Artounian
@partounian
Mar 08 2017 05:35
htop
blob
Brent Hoover
@zenweasel
Mar 08 2017 05:35
yeah, htop for me as well
Spencer Norman
@spencern
Mar 08 2017 05:36
I wonder if it’s something that changed between RC 0.17 and 0.19
Patrick Artounian
@partounian
Mar 08 2017 05:36
I have this terrible habbit of wanting to answer question
Brent Hoover
@zenweasel
Mar 08 2017 05:36
what version of Meteor are you running @spencern?
Patrick Artounian
@partounian
Mar 08 2017 05:37
I feel like it is due to node itself
Brent Hoover
@zenweasel
Mar 08 2017 05:37
what do you get for reaction -v @spencern ?
Spencer Norman
@spencern
Mar 08 2017 05:38
I’m on Meteor 1.4.1.2
Node: 6.9.1
NPM: 3.10.8
Docker: 17.03.0-ce
Reaction CLI: 0.6.21
Reaction: 0.17.0
Patrick Artounian
@partounian
Mar 08 2017 05:39
Node: 6.9.1
NPM: 4.3.0
Docker: 17.03.0-ce
Reaction CLI: 0.7.6
Reaction: 0.19.1
Brent Hoover
@zenweasel
Mar 08 2017 05:39
Node: 7.6.0
NPM: 4.1.2
Docker: 17.03.0-ce
Reaction CLI: 0.7.6
Reaction: 0.20.0
I clearly win that game
Spencer Norman
@spencern
Mar 08 2017 05:39
I’m the only one with a shop in production :P
Brent Hoover
@zenweasel
Mar 08 2017 05:39
yeah, fair
Spencer Norman
@spencern
Mar 08 2017 05:40
def changes how bad I want to update things
to never
Brent Hoover
@zenweasel
Mar 08 2017 05:40
you are also the one with the 5% CPU usage, so you win that as well
the only thing I really updated was I got this new computer
Patrick Artounian
@partounian
Mar 08 2017 05:41
I wonder if it can somehow be his older version of NPM
Brent Hoover
@zenweasel
Mar 08 2017 05:41
you are Patrick are running the same version of Node
Patrick Artounian
@partounian
Mar 08 2017 05:41
But not npm
For me seems like anything in node spikes the CPU
Brent Hoover
@zenweasel
Mar 08 2017 05:42
No, I don’t see how that would affect a running Meteor tho.
but also ¯\_(ツ)_/¯
I don’t think you get the same usage when running a built Meteor
the whole thrashing here is Meteor checking for changes
You are running a built Meteor app?
Patrick Artounian
@partounian
Mar 08 2017 05:44
Oops deleted wrong ones
I meant that even running meteor -h or meteor -v spiked my cpu to 100%
Brent Hoover
@zenweasel
Mar 08 2017 05:44
I don’t know about that
Patrick Artounian
@partounian
Mar 08 2017 05:45
I wish I could screenshare here
Brent Hoover
@zenweasel
Mar 08 2017 05:46
there was a Meteor version where I saw CPU usage increases. It was the release that was supposed to make rebuild faster
Spencer Norman
@spencern
Mar 08 2017 05:46
starting up a 0.19.1 instance to see if that makes my cpu rage
what version of meteor are you guys on?
Brent Hoover
@zenweasel
Mar 08 2017 05:46
Spencer Norman
@spencern
Mar 08 2017 05:48
Screenshot 2017-03-07 22.47.31.png
Brent Hoover
@zenweasel
Mar 08 2017 05:48
that’s 19.1?
Spencer Norman
@spencern
Mar 08 2017 05:48
looks like the RC version might be the culprit
yeah
idle
Brent Hoover
@zenweasel
Mar 08 2017 05:48
well, unlikely its RC per-se
Spencer Norman
@spencern
Mar 08 2017 05:49
upstream deps perhaps
Brent Hoover
@zenweasel
Mar 08 2017 05:49
I wonder what happens if you downgrade to 1.4.1.2
Spencer Norman
@spencern
Mar 08 2017 05:49
reaction -v from that dir
Node: 6.9.1
NPM: 3.10.8
Docker: 17.03.0-ce
Reaction CLI: 0.6.21
Reaction: 0.19.1
i’ll do that
Brent Hoover
@zenweasel
Mar 08 2017 05:50
I don’t think it should break anything
Spencer Norman
@spencern
Mar 08 2017 05:50
how to downgrade?
Brent Hoover
@zenweasel
Mar 08 2017 05:51
Just change the value in .meteor/release , I think you can also pass —release
you may need to reaction reset to remove and reinstall the proper deps
Spencer Norman
@spencern
Mar 08 2017 05:54
reinstalling node modules
Spencer Norman
@spencern
Mar 08 2017 06:00
it’s Meteor as you suspected
downgrading to 1.4.1.2 and my CPU runs at a nice cool 8%
Brent Hoover
@zenweasel
Mar 08 2017 06:01
lol
that’s crazy
Spencer Norman
@spencern
Mar 08 2017 06:02
do you feel like it re-builds way faster?
seems like a lot of CPU chugging for a little improvement
Brent Hoover
@zenweasel
Mar 08 2017 06:02
I don’t know about “way” faster, but it’s faster
Spencer Norman
@spencern
Mar 08 2017 06:03
I’ve kinda gotten used to the Meteor break
make a change, check some twitter, make some coffee, see how the change looks
Brent Hoover
@zenweasel
Mar 08 2017 06:04
yeah, when you are running and make a client change, it’s defintely faster.
quite a bit faster
Spencer Norman
@spencern
Mar 08 2017 06:05
nice, well I might have to consider upgrading then
that cpu chug is crazy though
Brent Hoover
@zenweasel
Mar 08 2017 06:05
I mean, 70% usage on a multi-core machine is nothing
Spencer Norman
@spencern
Mar 08 2017 06:05
yeah, but it might mean I can’t develop on long flights for as long
Brent Hoover
@zenweasel
Mar 08 2017 06:06
#firstworldproblems
Spencer Norman
@spencern
Mar 08 2017 06:06
not that that happens very often, but it’s nice to be able to run the RC dev machine and be on battery for hours
Brent Hoover
@zenweasel
Mar 08 2017 06:06
I’ll take those tiny slices of my work day back
because I am of the “change stuff and see what happens” school of development
Spencer Norman
@spencern
Mar 08 2017 06:07
yeah, that’s the tradeoff for sure
definitely worth it
Brent Hoover
@zenweasel
Mar 08 2017 06:07
I realized that there had been a CPU increase, but I didn’t realize it was that dramatic
Spencer Norman
@spencern
Mar 08 2017 06:08
for sure, I wouldn’t have guessed it was so low before until i looked tonight
Brent Hoover
@zenweasel
Mar 08 2017 06:08
I’ve never ever seen it that low for me
until recently I was running on a pretty old MBP
so is Patrick still here? He’s the one who asked the question
Vigy
@vigyano
Mar 08 2017 09:51

unable to docker build master branch in my local, getting following error:

[-] Building Meteor application...

/opt/build_scripts/build-meteor.sh: line 30:   273 Killed                  meteor build --directory $APP_BUNDLE_DIR > /dev/null
The command '/bin/sh -c cd $APP_SOURCE_DIR &&             bash $BUILD_SCRIPTS_DIR/build-meteor.sh &&             bash $BUILD_SCRIPTS_DIR/post-build-cleanup.sh' returned a non-zero code: 137

any idea?

tkdanhpro
@tkdanhpro
Mar 08 2017 14:27
@zenweasel Dear sir, I try to replace some translations in private/data/i18n/vi.json and restart server. but nothing changes. what can i do to edit some translations sir?
Spencer Norman
@spencern
Mar 08 2017 19:52
New weird issue of the day for me:
We’ve got ES6 features (let, const) that are sneaking into minified production code and causing our prerender to fail making our site uncrawlable
function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.replaceStr=void 0;var n=e("./utils");let r={};const o={unknown:"[?]",replace:[],replaceAfter:[],ignore:[],trim:!0};let i={};const a=t.replaceStr=((e,t)=>{for(const r of t){if(r[0]instanceof RegExp)
and similar
that’s a line taken from our minified js file (https://getoutfitted.com/95fb649623ee791553b71220553297908a01fabb.js?meteor_js_resource=true)
I’m not certain when this started happening, but as recently as a month ago, we weren’t seeing this issue and our prerender stuff was working fine
If anyone has any experience with something like this, I’m not really sure what I should be looking for. Is it likely to be an npm package? meteor package? code that we’ve added to imports ?
tdmoneybanks
@tdmoneybanks
Mar 08 2017 19:57
did you do any updates within that month? it seems like an issue with the transpiliation
Spencer Norman
@spencern
Mar 08 2017 19:57
yeah, we’ve done a lot of updates
agreed it’s a transpilation issue
tdmoneybanks
@tdmoneybanks
Mar 08 2017 19:57
maybe try downgrading the ver of meteor's tanspiler
see if that fixes it?
Spencer Norman
@spencern
Mar 08 2017 19:58
I did switch from standard-minifier-js to abernix:standard-minifier-js recently to fix a build issue
I wonder if that could be part of it - not sure if that transpilese or just minifies
tdmoneybanks
@tdmoneybanks
Mar 08 2017 20:01
i believe it does both
Spencer Norman
@spencern
Mar 08 2017 20:24
well… this is interesting
building locally seems to have replaced the let and const with var
Spencer Norman
@spencern
Mar 08 2017 20:38
es6-stuff.gif
tdmoneybanks
@tdmoneybanks
Mar 08 2017 20:53
really
huh
same ver of everything?
Spencer Norman
@spencern
Mar 08 2017 20:53
should be
tdmoneybanks
@tdmoneybanks
Mar 08 2017 20:53
when you said "building locally" do you mean just running app in dev moe
mode
or actually running a meteor build
Spencer Norman
@spencern
Mar 08 2017 20:53
no, meteor build
tdmoneybanks
@tdmoneybanks
Mar 08 2017 20:53
alright thanks just wanted to verify
i wonder if maybe the transpiliation step was skipped for some reason
i dont know enough about the internals of that build tool to know for sure sadly
Spencer Norman
@spencern
Mar 08 2017 20:54
yeah, same. I’m pretty sure meteor build is used during my CI build process that deploys to production as well
but it’s running on a different arch
this screenshot is from the js bundle that gets sent to clients on our prod site, and then bundle/programs/web.browser - which I think is the same file
but can’t be 100% certain
Mateo Morrison
@mateomorrison
Mar 08 2017 21:01
Hello @spencern @tdmoneybanks I already tested my API Key of Postmark in my localhost. It says it's working. Now what to do?
Spencer Norman
@spencern
Mar 08 2017 21:03
What are you trying to accomplish right now?
Mateo Morrison
@mateomorrison
Mar 08 2017 21:04
Get my web running in production
Spencer Norman
@spencern
Mar 08 2017 21:04
There shouldn’t be any differences for your MAIL_URL between production and local. If it works on local, it should work on production
Mateo Morrison
@mateomorrison
Mar 08 2017 21:04
With Docker. Which is already deployed but can't confirm my account because it doesnt send emails
Spencer Norman
@spencern
Mar 08 2017 21:05
can you just start over with the docker process?
Mateo Morrison
@mateomorrison
Mar 08 2017 21:05
It's already deployed, running and everything. Just that last night you guys told me to get my Postmark API Key running on my localhost.
Spencer Norman
@spencern
Mar 08 2017 21:06
yeah, and that seemed to work
what I’m saying is, if you can’t get emails working on your production server, it’s a config issue if you’ve confirmed they work on your local
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:06
so your able to send and recieve mail locally?
sounds like it might be an issue with your server config? im not familiar with needing to do anything with your port config in order to send mail but im sorta out of answers here ha
Mateo Morrison
@mateomorrison
Mar 08 2017 21:07
Not really send and receive mails, just set it up
Screen Shot 2017-03-08 at 5.06.57 PM.png
How to send/receive
Spencer Norman
@spencern
Mar 08 2017 21:07
the sending is all baked into reaction
not sure what you mean by receiving
Mateo Morrison
@mateomorrison
Mar 08 2017 21:08
In the Dashboard?
Spencer Norman
@spencern
Mar 08 2017 21:08
no, core code
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:08
do the reaction logs say the same thing?
Spencer Norman
@spencern
Mar 08 2017 21:08
you can try to send a password reset email
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:08
that the email job failed?
Mateo Morrison
@mateomorrison
Mar 08 2017 21:09
It says this
Screen Shot 2017-03-07 at 10.11.04 PM.png
Not really sure what THAT means
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:09
like looking into the reaction server logs
does it say the error we had yesterday
with email job failing
can you print out the server logs here?
Mateo Morrison
@mateomorrison
Mar 08 2017 21:10
Nope, it doesn't show that error
Screen Shot 2017-03-07 at 10.11.23 PM.png
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:12
can you print out to where is says the application is running on on some url
its true i dont see any errors there, but i dont even see the logs that the function is firing at all
Spencer Norman
@spencern
Mar 08 2017 21:13
I don’t think the password reset function has any logs
Mateo Morrison
@mateomorrison
Mar 08 2017 21:13
You mean printing docker logs?
Spencer Norman
@spencern
Mar 08 2017 21:13
@mateomorrison can you check in your postmark dashboard to see if an email got sent?
the other thing I’d try, is now that you have the email thing figured out, try deploying from scratch instead of an existing instance
Mateo Morrison
@mateomorrison
Mar 08 2017 21:18
@tdmoneybanks You mean printing docker logs of that container?
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:19
i mean printing the logs you get from reaction app in the docker container
if you look locally, there should be more logs than what your showing
Mateo Morrison
@mateomorrison
Mar 08 2017 21:19
It starts with => Starting app on port 3000...
And ends with 20:54:10.014Z WARN Reaction: Failed to get currency exchange rates.
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:20
is there any way for you to print out the whole thing?
from the logs
Mateo Morrison
@mateomorrison
Mar 08 2017 21:21
Screen Shot 2017-03-08 at 5.20.28 PM.png
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:22
yea this is a pretty strange issue
Mateo Morrison
@mateomorrison
Mar 08 2017 21:28
@tdmoneybanks Can you guide me how to deploy my Reaction Commerce without this headache?
Remember I used docker-compose because docker run ... it's not even working.
Mateo Morrison
@mateomorrison
Mar 08 2017 21:34
Yup! The docker run part hangs in there. I once left it loading for over an hour and nothing happened
When I saw docker-compose up -d works in seconds, I was relieved. But now, I can't even confirm my account. Just need that to get my happy face
Spencer Norman
@spencern
Mar 08 2017 21:35
i’ve used docker-compose for testing things locally, but not for running machines elsewhere, so this is a bit out of my league unfortunately
did you try running your prod container with an external mongo instance?
tdmoneybanks
@tdmoneybanks
Mar 08 2017 21:36
@mateomorrison how do you know the docker run stuff is stalling?
Mateo Morrison
@mateomorrison
Mar 08 2017 21:44
@spencern Much of a newbie using DigitalOcean to deploy a server and when it's stable moving to AWS. Don't know any DaaS better than Composer.io but don't need it until It's stable.
@tdmoneybanks Already tried. When I run it without the REACTION_MAIL env, it runs perfectly but can't get access. When I add that ENV (or USER or AUTH) it just keep hanging
Spencer Norman
@spencern
Mar 08 2017 21:45
Reason I ask, is I’m not sure how well those instructions work if you’re trying to host your db on the same instance as your app
Jeremy Shimko
@jshimko
Mar 08 2017 21:45
no difference
Spencer Norman
@spencern
Mar 08 2017 21:45
welp, there you go. Authoritiative source
Mateo Morrison
@mateomorrison
Mar 08 2017 21:46
Hello @jshimko I already tried running on my dev, it works and everything (meaning, no error when configuring my SMTP).
docker-compose doesn't seem like any of you guys use. And docker runkeeps hanging for me
Jeremy Shimko
@jshimko
Mar 08 2017 21:49
I launch Reaction with and without Docker Compose literally every day and I’m positive it works, so I’m pretty sure there’s a config issue or a missed step somewhere.
Mateo Morrison
@mateomorrison
Mar 08 2017 21:53
@jshimko Checking the docker compose file. It's sending through port 25. Maybe there is the error?
Jeremy Shimko
@jshimko
Mar 08 2017 21:56
I have no idea what your mail provider needs. You could try logging into the development version of the app and setting mail up in the dashboard. If you pick a provider preset, you can then see what settings it used right there in the dashaboard.
Mateo Morrison
@mateomorrison
Mar 08 2017 21:57
@jshimko I will use MailGun (used Postmark but too hard IMO). The username has an [at] (@)?
Jeremy Shimko
@jshimko
Mar 08 2017 21:57
the screen shots are the old design that just got replaced, but the dialogs are pretty much the same.
https://docs.reactioncommerce.com/reaction-docs/master/email
that walks through setting up Mailgun right in the dashboard
And you can’t have two @’s, so you need to URL encode that as %40 in the username. But only if you manually set the MAIL_URL. Setting it in the dashboard takes care of that for you.
saving the settings in the dashboard also tests the configuration when you hit the save button
Mateo Morrison
@mateomorrison
Mar 08 2017 22:02
It perfectly works with Mailgun sending from localhost. The problem is that I set the MAIL_URL with two "@"!
Mateo Morrison
@mateomorrison
Mar 08 2017 22:10
@jshimko So the wrong way to do it is MAIL_URL: "user@mail.com:password@smtp.mailgun.org:587
But the right is MAIL_URL: "user%40mail.com:password@smtp.mailgun.org:587
amp9020
@amp9020
Mar 08 2017 22:14
hello, when GoogleBot crawls on a Reaction site, google caches your site as "This site requires JavaScript. Please enable it in your browser settings." ,.... how can we work with around this ?
Brent Hoover
@zenweasel
Mar 08 2017 22:15
You can use either the spiderable package or prerender.io
amp9020
@amp9020
Mar 08 2017 22:19
@zenweasel thanks. so with spiderable.... run "meteor add spiderable" and thats it?
Brent Hoover
@zenweasel
Mar 08 2017 22:20
pretty much, yeah
amp9020
@amp9020
Mar 08 2017 22:21
@zenweasel thanks for the quick reply. both solutions are acceptable. i'll try out spiderable first.
Brent Hoover
@zenweasel
Mar 08 2017 22:22
and when I say spiderable I mean https://github.com/ongoworks/spiderable
Spencer Norman
@spencern
Mar 08 2017 22:23
re prerender.io - I’ve been tracking down a bug that was causing getoutfitted pages to be crawled improperly and I think I’ve just got it nailed down
amp9020
@amp9020
Mar 08 2017 22:28
@zenweasel @spencern Great thanks. Do you guys recommend one over the other?
Spencer Norman
@spencern
Mar 08 2017 22:29
We never had very much luck with spiderable which is why we’re on prerender - was probably implementation error on my part
Brent Hoover
@zenweasel
Mar 08 2017 22:33
prerender is a commercial service that requires $$$, so that may affect your decision
but then it’s also supported so….
the support that Spencer added for prerender is baked into core
Mateo Morrison
@mateomorrison
Mar 08 2017 22:37
I set up the MAIL_URL env with the %40 and it shows the Email job failed again
Screen Shot 2017-03-08 at 6.37.27 PM.png
Screen Shot 2017-03-08 at 6.38.21 PM.png
Mateo Morrison
@mateomorrison
Mar 08 2017 22:43
Hello?
tdmoneybanks
@tdmoneybanks
Mar 08 2017 22:44
under email failed
can you print that whole error string
it gets cut off at the right end
Mateo Morrison
@mateomorrison
Mar 08 2017 22:45
I think it's something to do with ufw
Since it's talking about SSL
Screen Shot 2017-03-08 at 6.44.43 PM.png
tdmoneybanks
@tdmoneybanks
Mar 08 2017 22:46
can you log the connection string you have again?
or just the end of it where the port stuff is
Mateo Morrison
@mateomorrison
Mar 08 2017 22:47
587 is the Port
Screen Shot 2017-03-08 at 6.47.25 PM.png
tdmoneybanks
@tdmoneybanks
Mar 08 2017 22:51
super weird... what hosting provider are you using?
maybe ask them?
Mateo Morrison
@mateomorrison
Mar 08 2017 22:51
DigitalOcean
tdmoneybanks
@tdmoneybanks
Mar 08 2017 22:51
as it seems like it cant recognize the ssl protocol
Mateo Morrison
@mateomorrison
Mar 08 2017 22:51
Maybe I haven't set up the UFW for OpenSSH
tdmoneybanks
@tdmoneybanks
Mar 08 2017 22:52
i dont believe you need to do any ssl setup to send mail with port 587. can anyone else confirm on that?
Mateo Morrison
@mateomorrison
Mar 08 2017 23:30
@tdmoneybanks Changing the port will resolve the issue? Maybe port 25?
Mateo Morrison
@mateomorrison
Mar 08 2017 23:52
Guys got it running. A question: I will use Dominican Pesos (DOP) and the right currency format is RD$0.00 (I want to delete cents, just RD$0 or RD$0,000) the current format is RD$0,00 ("," comma being the cents)
Brent Hoover
@zenweasel
Mar 08 2017 23:53
You should be able to change the shop currency
Mateo Morrison
@mateomorrison
Mar 08 2017 23:53
Sure, I am. But how to change the format of the currency
Brent Hoover
@zenweasel
Mar 08 2017 23:53
for each entry in the currency array there is a format string
Mateo Morrison
@mateomorrison
Mar 08 2017 23:54
But how to change the format of the currency? Which file, where to go?
Keeping only 2 languages (English, Spanish) get the drop down look like this:
Mateo Morrison
@mateomorrison
Mar 08 2017 23:55
Screen Shot 2017-03-08 at 7.54.28 PM.png
Brent Hoover
@zenweasel
Mar 08 2017 23:56
you changed your languages to just those two in the dashboard?
Mateo Morrison
@mateomorrison
Mar 08 2017 23:56
Yes
Brent Hoover
@zenweasel
Mar 08 2017 23:58
yeah, I see something similar
Basic_Reaction_Product.png