These are chat archives for reactioncommerce/reaction

19th
May 2017
Emem Umoh
@ememumoh
May 19 2017 01:42
Hello?
Brent Hoover
@zenweasel
May 19 2017 01:42
Hi!
Emem Umoh
@ememumoh
May 19 2017 01:43
Please how can I access reaction admin portal?
Brent Hoover
@zenweasel
May 19 2017 01:44
Just login using the admin credentials then you should see the dashboard icon
Emem Umoh
@ememumoh
May 19 2017 01:45
Ok I understand, but I thought that should be for visitors to the site when deployed to production
ok thanks @zenweasel
M
@B16sixER_twitter
May 19 2017 07:58
Hi, is there a guide on installing reaction? (besides the guide in /Docs)
I've followed the guide twice on two different servers and I can't get it to install properly
There are a few warnings when running reaction init (sudo), and after it does install, I need to run reaction with --allow-superusers. The install is a bit messy, I'm wondering if I'm missing something here
Brent Hoover
@zenweasel
May 19 2017 08:01
Well, you shouldn’t be installing it using sudo
M
@B16sixER_twitter
May 19 2017 08:01
But if I don't use sudo it will refuse to install
Brent Hoover
@zenweasel
May 19 2017 08:01
that will never work
it does not require sudo to work
you may have an issue with how you installed node
M
@B16sixER_twitter
May 19 2017 08:02
I installed node as root
Couldn't install that without sudo either
I'll format the server and try again
M
@B16sixER_twitter
May 19 2017 08:08
Got it, thank you
Brent Hoover
@zenweasel
May 19 2017 08:08
Awesome
M
@B16sixER_twitter
May 19 2017 08:09
You made me remember to check the file perms, for some reason some of the files had root as the owner, and some files had reaction
So I chowned my entire reaction directory with the proper user
and now it's installing and running
Brent Hoover
@zenweasel
May 19 2017 08:10
Great. I think you do need to install node as root at least on Debian/Ubuntu
M
@B16sixER_twitter
May 19 2017 08:10
I run an ecommerce site based on woocommerce, but I've been really interested in performance improvements lately
And I don't feel too comfortable running ecommerce on top of wordpress
In saying that though, I've heavily optimized my build. My ttfb is only 10ms, and if I throw 10k users at my server, that number stays below 150ms
Brent Hoover
@zenweasel
May 19 2017 08:11
Right. WooCommerce seems fine if you have a pretty simple store/needs
that’s a pretty impressive stat
M
@B16sixER_twitter
May 19 2017 08:12
Yeah it is, but once you start adding plugins and getting ideas on things to add based on customer behaviour, it starts to bog down a bit
Thanks. I'm running it on nginx, redis, and varnish
Brent Hoover
@zenweasel
May 19 2017 08:13
ah yeah, Varnish give you a pretty big boost if your site doesn’t change a lot
M
@B16sixER_twitter
May 19 2017 08:13
Yeah, but then the issue there is you can't personalise the site or run commands based on user behaviour
That's why I wanna move to a node js platform
Brent Hoover
@zenweasel
May 19 2017 08:14
Right, it’s not great for dynamic sites
great, if you are largely content
M
@B16sixER_twitter
May 19 2017 08:14
I'm getting a bit sick of PHP (although php 7 has made very big improvements)
Brent Hoover
@zenweasel
May 19 2017 08:14
I’m not a big fan of PHP but I can’t argue with the results
M
@B16sixER_twitter
May 19 2017 08:16
And with the nature of wordpress there's too much room for failure. I don't like the idea of one of my plugins somehow having a new exploit, allowing accesss to the entire system. Wordpress itself is maintained well, and woocommerce is too. But then you're relying on all the plugin authors for your security
Brent Hoover
@zenweasel
May 19 2017 08:16
Right, plus the future of Wordpress is Node
Yeah, I think you could say that of almost any ecosystem that relies on third-party components. It’s a problem for node/npm as well
Although we monitor it quite closely
M
@B16sixER_twitter
May 19 2017 08:17
Was that actually happening? I remember the new interface back in 2015 but I don't think they have any plans to move away from php
Brent Hoover
@zenweasel
May 19 2017 08:18
afaik Automattic announced that last year
M
@B16sixER_twitter
May 19 2017 08:18
Definitely. But the problem with wordpress is you need a plugin even for the most simple tasks
Brent Hoover
@zenweasel
May 19 2017 08:18
I could have that twisted though. Few people know less about Wordpress than me.
Vigy
@vigyano
May 19 2017 08:19
@zenweasel - did you get a chance to see my screenshots for example plugin config issue?
Brent Hoover
@zenweasel
May 19 2017 08:19
It’ not really an issue per se, that’s how it’s supposed to work
@vigyano It only uses that template for the workflow specified in the register.js
You need to add additional layout records to specify everywhere you want to use it
If you want to just have a global change, you could just change the layout template itself
Vigy
@vigyano
May 19 2017 08:21
I see
Brent Hoover
@zenweasel
May 19 2017 08:21
I mean, your custom layout template
Vigy
@vigyano
May 19 2017 08:22
yeah, thats what I did. instead of using layoutHeader from structure, I directly gave the custom header and footer instead of {layoutHeader} and {layoutFooter} from struct.
I was not sure if that is the correct way, so thought of changing through register
but it seems I need to override all the layout to have the header across all the pages.
Brent Hoover
@zenweasel
May 19 2017 08:23
I thnk you want to do that more if you had different headers and footers you wanted in different contexts
M
@B16sixER_twitter
May 19 2017 08:29
Is it just me or is the reaction website getting a lot of SSL errors?
HSTS to be specific
I have to keep refreshing
Brent Hoover
@zenweasel
May 19 2017 08:29
which one?
M
@B16sixER_twitter
May 19 2017 08:29
The home page, and the docs
Brent Hoover
@zenweasel
May 19 2017 08:29
Not seeing that
M
@B16sixER_twitter
May 19 2017 08:30
Again just now
Strange
Brent Hoover
@zenweasel
May 19 2017 08:30
I have all of our sites open and am not seeing it
M
@B16sixER_twitter
May 19 2017 08:31
I'll run it through ssllabs
Revocation status Validation error
OCSP ERROR: Exception: Read timed out [http://ocsp.int-x3.letsencrypt.org/]
Looks like LE is having an issue at the moment
Brent Hoover
@zenweasel
May 19 2017 08:32
Could that be a timeout from where you are?
M
@B16sixER_twitter
May 19 2017 08:33
That error was from a test using SSL Labs
In a different location (I assume the US)
Brent Hoover
@zenweasel
May 19 2017 08:33
Weird
None of our monitors see it and I don’t see it
It's ok it looks like a temporary LE issue
Visiting the LE forum gives me the same SSL error
Their forum has a few threads on this topic, looks like it's not the first time it's happened
Brent Hoover
@zenweasel
May 19 2017 08:36
Hmmm
SSL_Server_Test__docs_reactioncommerce_com__Powered_by_Qualys_SSL_Labs_.png
M
@B16sixER_twitter
May 19 2017 08:37
Their status page is reporting that that specific server is operational - but there are issues elsewhere
yeah scroll down a bit to where it says OCSP Error
Brent Hoover
@zenweasel
May 19 2017 08:37
Ok, but you were seeing an error in your browser?
M
@B16sixER_twitter
May 19 2017 08:37
Yeah still am
One of the Lets Encrypt servers is having an outage
So Chrome is unable to verify the certificate
Brent Hoover
@zenweasel
May 19 2017 08:38
Yeah, not seeing that
M
@B16sixER_twitter
May 19 2017 08:39
Looks like the issue specifically is one of the data centres, we're probably connecting to different DC's you and I
Brent Hoover
@zenweasel
May 19 2017 08:39
I see no errors for Chrome/Safari/FF/Brave
Ah, ok. I am in SEA
M
@B16sixER_twitter
May 19 2017 08:39
Me too
lol
Anyway it's all good I'm running off hotspot from my phone and I can connect fine now
Brent Hoover
@zenweasel
May 19 2017 08:39
ha!
yeah, I guess that’s the downside of LE
M
@B16sixER_twitter
May 19 2017 08:41
I use LE on 3 of my own websites and I haven't had this issue before. Not even having them now lol
Oh wait I don't use HSTS
Brent Hoover
@zenweasel
May 19 2017 08:41
it’s weird that we get an A+ rating if you can’t even connect via your browser
that’s a very broad interpretation of A+
M
@B16sixER_twitter
May 19 2017 08:42
Well, I guess they test the protocols you're using and the ciphers
Not really whether your web server is working at the moment
But they do tell you that you have a validation error
Brent Hoover
@zenweasel
May 19 2017 08:43
Right, but still A+
M
@B16sixER_twitter
May 19 2017 08:43
But if they detect a validation error..how have they given you an A+ if they can't validate your certificate?
I see what you mean
Brent Hoover
@zenweasel
May 19 2017 08:43
Seems lke that’s at least an A-
M
@B16sixER_twitter
May 19 2017 08:43
Maybe because it's signed by LE they just skip the validation and continue the test
Brent Hoover
@zenweasel
May 19 2017 08:44
/shrug
Dunno
M
@B16sixER_twitter
May 19 2017 08:44
Who knows
Brent Hoover
@zenweasel
May 19 2017 08:44
Still can’t see it here, so I don’ t know how widespread it is
M
@B16sixER_twitter
May 19 2017 08:44
I'm gonna move on to actually using reaction now, time to get started
Brent Hoover
@zenweasel
May 19 2017 08:44
Right. Have a great rest of your day
M
@B16sixER_twitter
May 19 2017 08:45
You too
It's almost 7 pm here actually. I didn't even realise
Brent Hoover
@zenweasel
May 19 2017 08:46
where are you?
M
@B16sixER_twitter
May 19 2017 08:46
Brisbane
Australia
Brent Hoover
@zenweasel
May 19 2017 08:46
Ah
M
@B16sixER_twitter
May 19 2017 08:47
The sky was very grey, and it's been raining all day. So you couldn't tell the difference between 7 am and 4 pm
Brent Hoover
@zenweasel
May 19 2017 08:47
Yeah, pouring rain here in Manila
M
@B16sixER_twitter
May 19 2017 08:47
Oh cool, Manila. I have a few friends there from my days at uni, I'd like to visit some time
Do you run a dev studio there or something?
Brent Hoover
@zenweasel
May 19 2017 08:48
No, I work for Reaction Commerce
M
@B16sixER_twitter
May 19 2017 08:48
Oh right
Vigy
@vigyano
May 19 2017 09:17
@zenweasel - I have tried to override PDP by registering the new PDP component but where to configure to override the default one?
Brent Hoover
@zenweasel
May 19 2017 09:18
I think you need to change it on the product record, or on the drop-down
Vigy
@vigyano
May 19 2017 09:19
on each product record through UI?
Brent Hoover
@zenweasel
May 19 2017 09:19
  template: {
    label: "Template",
    type: String,
    defaultValue: "productDetailSimple"
  },
Or directly in tbe db
Vigy
@vigyano
May 19 2017 09:24
inside each product record in Products collection?
currently I checked and there is no template: {} for each record.
Brent Hoover
@zenweasel
May 19 2017 09:24
Yeah, just top level products
Vigy
@vigyano
May 19 2017 09:25
can it be configured somewhere in register.js or shops.js level for all products?
Brent Hoover
@zenweasel
May 19 2017 09:25
I believe that’s how you are supposed to do that. It’s a pretty new feature. You can try changing it through the UI on one and see if that gives you the results you want
M
@B16sixER_twitter
May 19 2017 09:29
Is there a specific home directory already made? I'm setting up nginx as my web server now
Brent Hoover
@zenweasel
May 19 2017 09:33
Not sure what you mean, but you would just configure Nginx like you would for any Node app
Vigy
@vigyano
May 19 2017 09:34
changing the dropdown in product settings adds a field "template" : "productDetailSimple"
Brent Hoover
@zenweasel
May 19 2017 09:34
Right
You would just change it to use your component
M
@B16sixER_twitter
May 19 2017 09:35
I mean where's the index file?
I've never used node before (as you can tell lol)
Vigy
@vigyano
May 19 2017 09:36
I see, but that can be applied for existing products but all new products is there is any way to default to new custom PDP?
Brent Hoover
@zenweasel
May 19 2017 09:36
You would just use nginx as a reverse proxy
M
@B16sixER_twitter
May 19 2017 09:37
Oh I see, so node takes over as the web server
Brent Hoover
@zenweasel
May 19 2017 09:37
@vigyano That I don’t know
M
@B16sixER_twitter
May 19 2017 09:37
I wonder why I couldn't connect without nginx
Oh my security policy on azure
Need to open port 3000
Brent Hoover
@zenweasel
May 19 2017 09:37
Right. You run node on port 3000 and then proxy 80 => 3000
In product you would do a reaction build to build a minified version of that app, and that creates the node app
M
@B16sixER_twitter
May 19 2017 09:51
Sweet, got it running. Just had to change the user nginx runs on
And increase my buffer size
Brent Hoover
@zenweasel
May 19 2017 09:52
Excellent
M
@B16sixER_twitter
May 19 2017 09:52
Is the default reaction template supposed to be 23.9 mb and take 40 seconds to load?
172 requests seems a tad excessive
Brent Hoover
@zenweasel
May 19 2017 09:53
Are you running a built version? If you run the development version, you're going to get a ton of individual files
M
@B16sixER_twitter
May 19 2017 09:54
I don't know
I installed via the instructions on docs.reactioncommerce
Brent Hoover
@zenweasel
May 19 2017 09:54
Under installation or under deployment?
The installation instructions are for running a development version
M
@B16sixER_twitter
May 19 2017 09:55
Installation
Oh so I have to set up docker too?
Brent Hoover
@zenweasel
May 19 2017 09:56
If you want to deploy it, yes. That’s the only method we currently support. Although it’s just a node app, so it can be deployed any way you can deploy a node app. Or you can use something like Galaxy
M
@B16sixER_twitter
May 19 2017 09:57
I'll use Docker, that way I can do health monitoring via the Azure or AWS consoles
Brent Hoover
@zenweasel
May 19 2017 09:57
You can run the production version locally as well by passing the —production flag. But then you lose source maps, etc.
If you are familiar with Docker that’s the way to go for sure.
There’s a separate deployment channel for those sort of questions
M
@B16sixER_twitter
May 19 2017 09:58
I've used it a few times
Should be all good, thank you
Brent Hoover
@zenweasel
May 19 2017 09:58
:+1:
M
@B16sixER_twitter
May 19 2017 09:58
I'll do that tomorrow anyway, for now I just want to browse the admin area
Brent Hoover
@zenweasel
May 19 2017 09:58
Yeah, running it locally is easy and let’s you do most everything. If you want to evaluate performace, then yeah you want to be running a deployed version
You’ll want to have a separate Mongo instance/cluster as well
M
@B16sixER_twitter
May 19 2017 10:00
Is there a tested and trusted cache already?
redis etc
Brent Hoover
@zenweasel
May 19 2017 10:01
We use mongo so there isn’t really a need for a cache
M
@B16sixER_twitter
May 19 2017 10:01
Ok, I'll need to do some reading on mongo & node overall
Brent Hoover
@zenweasel
May 19 2017 10:02
Yeah, there are some Mongo hosting service like mLab and Compose that help you get up to speed faster. I think mLab has a free tier
M
@B16sixER_twitter
May 19 2017 10:03
Ah yeah they do for 500mb
That's ok I can just run my clusters on Azure for now
Azure is free for us for a few years (unfortunately we can only deploy in Europe)
Brent Hoover
@zenweasel
May 19 2017 10:03
Right. Setting up Mongo cluster is probably the easiest of any clustering that I know of, but it’s still non-trivial
M
@B16sixER_twitter
May 19 2017 10:03
And once dev is finished I'll move to aws (Or google cloud if they launch in Australia by then. They're so much cheaper than aws)
Brent Hoover
@zenweasel
May 19 2017 10:04
Yeah, the nice part about Docker is that it’s relatively easy to move your installation to wherever
M
@B16sixER_twitter
May 19 2017 10:11
wow so many modules already built-in
This is really awesome
All I need to do is the design of the website itself, and just make my own plugin for booking a courier pickup when an order is made, and printing the label off
Brent Hoover
@zenweasel
May 19 2017 10:15
yh, we try to be “batteries included"
M
@B16sixER_twitter
May 19 2017 10:15
I've already made the API for that, and running it on woocommerce. Just need to move thing sover
The awesome thing about this is the store management
I can easily train staff to update prices, descriptions etc, without breaking the whole page
woocommerce is too hard to teach. You gotta browse through 5 menus just to do one little thing
Brent Hoover
@zenweasel
May 19 2017 10:20
Yes, that was a specific design goal
The other major open source eCommerce system is notorious for being really hard to do product management
Darren Ackers
@dackers86
May 19 2017 11:55
Hi guys. As part of my initial setup I wnated to see if I could make a payment (test) through to stripe, when trying to chekcout I constantly recieve the error... "No shipping methods are configured. Configure now." Even though I have configured the data (when prompted through the admin sidebar)
Shoudl this also be appearing in non edit mode..?
Brent Hoover
@zenweasel
May 19 2017 12:03
try to edit/change your address and re-save
when you change your shipping methods it doesn’t update the cart
Darren Ackers
@dackers86
May 19 2017 12:29
The issue seemed to that the edit toggle hadn't filtered, a server restart fixed the issue. As an aside, I have some blank panel and can't seem to submit an address. Would a gif of the issue be useful..?
Brent Hoover
@zenweasel
May 19 2017 13:07
Sure
Daniel Honig
@dhonig
May 19 2017 16:43
In other news, I've spent the past 12 working hours getting the skeleton of a wish list extension going. So that's been fun....
Emem Umoh
@ememumoh
May 19 2017 21:58

I keep on having this warning , no matter what I do, it just would not go away!: WARNING:
cfs:graphicsmagick could not find "graphicsMagic" or "imageMagic" on the
system.

I just checked PATH to see if I could find the GraphicsMagick or ImageMagic
unix/mac os/windows binaries on your system, I failed.

Why:

  1. I may be blind or naive, help making me smarter
  2. You havent added the path to the binaries
  3. You havent actually installed GraphicsMagick or ImageMagick

Make sure "$PATH" environment is configured "PATH:/path/to/binaries"

Installation hints:

  • Mac OS X "brew install graphicsmagick" or "brew install imagemagick"
  • Linux download rpm or use packagemanager
  • Centos "yum install GraphicsMagick"* Windows download the installer and run
It happens each I execute reaction
I have installed this: ImageMagick-7.0.5-6-Q16-x64-dll.exe
I have installed this: ImageMagick-7.0.5-6-Q16-x64-static.exe
still it did not work!
the warning still keep on coming
can anyone help?
Erik Kieckhafer
@kieckhafer
May 19 2017 22:03
what os are you using?
Emem Umoh
@ememumoh
May 19 2017 22:05
windows 10 professional
that was included in my path: "C:\Program Files\ImageMagick-7.0.5-Q16"
still nothing
Erik Kieckhafer
@kieckhafer
May 19 2017 22:10
you’ve reset and meteor npm installed?
Emem Umoh
@ememumoh
May 19 2017 22:12
I do not understand that please
you mean "meteor update"?
reaction reset
Emem Umoh
@ememumoh
May 19 2017 23:25
not working @kieckhafer
Erik Kieckhafer
@kieckhafer
May 19 2017 23:26
That command isn't working at all?
Emem Umoh
@ememumoh
May 19 2017 23:27
Command is working but same warning

WARNING:
cfs:graphicsmagick could not find "graphicsMagic" or "imageMagic" on the
system.

I just checked PATH to see if I could find the GraphicsMagick or ImageMagic
unix/mac os/windows binaries on your system, I failed.

Erik Kieckhafer
@kieckhafer
May 19 2017 23:38
Is the app still working without that? Imagemagick is optional, the app should still load
Emem Umoh
@ememumoh
May 19 2017 23:38
The App loads fine, very fine
I have switched to GraphicMagick let see how it goes
Emem Umoh
@ememumoh
May 19 2017 23:49
Still the same warning. I know that they are optional, but that warning is annoying.
@kieckhafer are you there?
Erik Kieckhafer
@kieckhafer
May 19 2017 23:55
you’ve tested imagemagick outside of trying it in reaction to make sure it’s installed correctly?