These are chat archives for reactioncommerce/reaction

22nd
Mar 2017
Nathan Aherne
@nathanaherne
Mar 22 2017 00:34
I am trying to run Reaction Commerce "latest" on Docker using the instructions on Github and I am getting an error.
SyntaxError: Unexpected identifier
    at Object.exports.runInThisContext (vm.js:53:16)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:409:26)
    at node.js:595:27
    at nextTickCallbackWith0Args (node.js:436:9)
    at process._tickCallback (node.js:365:13)
Is anyone able to help me out with this?
Jeremy Shimko
@jshimko
Mar 22 2017 00:38
can you share the command you ran?
Nathan Aherne
@nathanaherne
Mar 22 2017 00:39
docker service create --with-registry-auth --replicas 1 --network swarm_net --name container_name reactioncommerce/reaction:latest -e ROOT_URL="http://example.com” -e REACTION_EMAIL="email@example.com” -e REACTION_USER="admin" -e REACTION_AUTH=“adminpassword”
I am just trying to get the example reactioncommerce docker container working with MongoDB installed within the same container. Once this is sorted I will move to a more production ready configuration.
Jeremy Shimko
@jshimko
Mar 22 2017 00:41
You got that command from instructions on Github? Where?
Nathan Aherne
@nathanaherne
Mar 22 2017 00:42
I didn't get that command from instructions on github, we create a lot of containers so instead of running locally, we run them on a Digital Ocean Docker Swarm machine. The machine I am using has no other containers on it.
Jeremy Shimko
@jshimko
Mar 22 2017 00:46
I can’t speak for using swarm, but I just started the same image with no issues with the bare minimum options.
docker run -p 3000:3000 -d reactioncommerce/reaction:latest
Nathan Aherne
@nathanaherne
Mar 22 2017 00:47
Ok, I will try leaving the configuration options etc out of the command. It is also possible that I am using an old image as I see that V1 came out yesterday.
Thanks heaps for your help.
Jeremy Shimko
@jshimko
Mar 22 2017 00:48
Any recent image should work, but I would definitely do a docker pull if you haven’t recently
and skip the swarm stuff until you get it working.
docker run -d \
  -p 3000:3000 \
  -e ROOT_URL="http://<your app url>" \
  -e MONGO_URL="mongodb://<your mongo url>" \
  -e REACTION_EMAIL="youradmin@yourdomain.com" \
  -e REACTION_USER="admin-username" \
  -e REACTION_AUTH="admin-password" \
  reactioncommerce/reaction:latest
Nathan Aherne
@nathanaherne
Mar 22 2017 00:50
I made sure I pulled the latest image and I am still getting the same error running on swarm. Will move to no swarm
Jeremy Shimko
@jshimko
Mar 22 2017 00:51
Yeah, good ol’ production ready Docker. Gotta love it.
Nathan Aherne
@nathanaherne
Mar 22 2017 00:51
We never seem to have a problem with swarm, this is the first time we have seen the issue and we create thousands of new containers a week on swarm in production.
Jeremy Shimko
@jshimko
Mar 22 2017 00:52
Interesting. I’ve never seen that error before and nobody else has brought it up, so I just made the assumption.
you sure you don’t need to move the image name to the end of your command? That would be an invalid order of arguments for the docker run command
with docker run, anything after the image name overrides the CMD on the image
Nathan Aherne
@nathanaherne
Mar 22 2017 00:55
It seems to happily pull the image but that is a good point, I will check that.
Jeremy Shimko
@jshimko
Mar 22 2017 00:55
which would definitely explain your node error
Nathan Aherne
@nathanaherne
Mar 22 2017 00:56
I am checking that right now
Will take a few seconds
Yep, that worked. It was incorrect order of arguments. Its always something simple....
a big thank you Jeremy!
Jeremy Shimko
@jshimko
Mar 22 2017 00:57
awesome. you’re welcome.
Aesop7
@Aesop7
Mar 22 2017 01:18
Hi All, I'm trying to get google analytics up and running
I'm getting an error: ReferenceError: ga is not defined
it appears to be coming from the startup.js file for analytics
anyone have any ideas on why ga might not be defined in that file?
the full path is reaction/imports/plugins/included/analytics/client/startup.js
Brent Hoover
@zenweasel
Mar 22 2017 02:34
Have you configured your GA token in the dashboard?
Michael Duane Mooring
@mikeumus
Mar 22 2017 02:49

I'm getting this with some bad items in my cart:

Error invoking Method 'cart/removeFromCart': Match failed [400]

How in the DB shell might I remove them?

Aesop7
@Aesop7
Mar 22 2017 02:50
@zenweasel ended up solving it by using segment.io ;)
Brent Hoover
@zenweasel
Mar 22 2017 02:50
@Aesop7 Yeah, that’s the actual solution
I don’t think the docs there are so great
@mikeumus Do you know the ids?
Michael Duane Mooring
@mikeumus
Mar 22 2017 02:51
I think I deleted them
I can try to use the meteor chrome tool to find them
Brent Hoover
@zenweasel
Mar 22 2017 02:52
So…you already deleted them from the db?
Michael Duane Mooring
@mikeumus
Mar 22 2017 02:52
yeha
Brent Hoover
@zenweasel
Mar 22 2017 02:52
so you don’t need my help to remove them in mongo?
Michael Duane Mooring
@mikeumus
Mar 22 2017 02:53
let me poke around a bit, the cart seems to have it's own copy somehow
Brent Hoover
@zenweasel
Mar 22 2017 02:53
k
Michael Duane Mooring
@mikeumus
Mar 22 2017 02:54
think I found it, pardon :)
Fatah N
@fatahn
Mar 22 2017 06:18
how do i acess admin dashboard. I just set up reaction locally
Brent Hoover
@zenweasel
Mar 22 2017 06:36
You should see the generated username and password in the terminal console on first run.
agnesv2
@agnesv2
Mar 22 2017 11:01
Is there a way to permanently delete products? Right now I only seem to be able to archive them.
ok never mind, spoke too quickly, got it deleted now
Brent Hoover
@zenweasel
Mar 22 2017 11:16
No, not through the admin. You would need to do it directly in the db
daredevilDarmos
@daredevilDarmos
Mar 22 2017 15:52
Hi, I'm very new to this and just need a little guidance. I setup reaction on my localhost and had no issues. I can see the front page with the basic product and navigate through that. I'm just a bit confused when it comes to accessing the admin end. I have my credentials in my cmd, but I'm just a bit lost when it comes to finding the admin page. Any bit of help and guidance would be much appreciated! Thanks. :D
reaction-local.PNG
hrath2015
@hrath2015
Mar 22 2017 16:00
please use the credential from cmd to sign in from right most corner on the ui
daredevilDarmos
@daredevilDarmos
Mar 22 2017 16:05
There's suppose to be the reaction icon I click on that prompts me for the dashboard login, like stated in the docs, correct?
hrath2015
@hrath2015
Mar 22 2017 16:06
click on sign-in and enter the credenttials please
daredevilDarmos
@daredevilDarmos
Mar 22 2017 16:07
Right, tried that, just keep getting user not found.
hrath2015
@hrath2015
Mar 22 2017 16:08
u are using credentials what u got in command when reaction starts up..?
daredevilDarmos
@daredevilDarmos
Mar 22 2017 16:09
yes
hrath2015
@hrath2015
Mar 22 2017 16:11
not sure what could be reason then. Try resetting and use settings file to pass admin user credential
daredevilDarmos
@daredevilDarmos
Mar 22 2017 16:11
will do. thank you!
So admin dashboard is definitely accessed from that sign in tab?
hrath2015
@hrath2015
Mar 22 2017 16:13
yes and other users can also sign after registering unless they want to be anonymous
daredevilDarmos
@daredevilDarmos
Mar 22 2017 16:22
hrath2015, thank you that worked like a charm!
hrath2015
@hrath2015
Mar 22 2017 16:24
:thumbsup:
Dmitry
@dshitik
Mar 22 2017 16:35
How do I remove from the route '../reaсtion/..'?
hrath2015
@hrath2015
Mar 22 2017 16:40
Try keeping only 1 shop in private/data/shops.json
Aaron Judd
@aaronjudd
Mar 22 2017 16:59
the path “reaction” changes when you change your shop name also…. in “Shop Settings”.
(i.e... it is your shop name)
iqit-commerce (Marcin Sz)
@iqit-commerce
Mar 22 2017 17:35
is there any live shop build with Reaction already? If so do you have any links?
premcool
@premcool
Mar 22 2017 17:36
Hi, I'm trying to use reaction 1.0, installed and after running it starts without errors. However the localhost:3000 shows nothing and I notice a Javascript console error kadira_blaze-layout.js:199 BlazeLayout warning: unknown template "notFound"
Will someone be able to help? Tks
@iqit-commerce https://getoutfitted.com/
Nica
@nicalla
Mar 22 2017 18:05
Is it possible to add an additional tax for specific items? For instance, some items require a recycling fee. If possible, how can this be accomplished?
Dmitry
@dshitik
Mar 22 2017 18:39
@aaronjudd Thanks
Vigy
@vigyano
Mar 22 2017 19:16
@zenweasel @aaronjudd -- created issue for "sold out" bug reactioncommerce/reaction#2029
Nica
@nicalla
Mar 22 2017 19:27
@premcool Did you figure out your issue? I got a white screen at first, too. Then just left the window open and the site magically appeared after a couple minutes.
Nica
@nicalla
Mar 22 2017 19:42
Still trying to figure out if specific products can be assigned an additional tax. Every new tax I create is assigned the exact same code "RC_TAX". This seems to make the code field redundant. Am I missing something?
Njeri Kieha
@kieha
Mar 22 2017 20:00
@nicalla do you mind giving a step-by-step explanation of how you create a tax that gets the tax code “RC_TAX”? Or provide a bit more context to your question?
premcool
@premcool
Mar 22 2017 22:00
@nicalla Wish it was that way for me too..but nothing happened for me except the white screen
Aaron Judd
@aaronjudd
Mar 22 2017 22:08
@nicalla all flat rate tax gets RC_TAX, the code is/was reserved for future use of alternate (product) tax types.. i.e., so you could match codes that you assign to the product. This is being done now in the Avalara taxes, and the UI was just completed for the tax codes on a product level, so it’s a next step for us to add a way to create/edit additional flat rate tax codes. (should be a pretty easy gap, happy for a PR)
@premcool can you elaborate? (not sure I’ve ever seen just a white screen… ) (are there server console errors? try reaction reset)
Brent Hoover
@zenweasel
Mar 22 2017 22:13
@premcool Do you see any errors in the console?
Brent Hoover
@zenweasel
Mar 22 2017 22:40
Not directly related, but here is a good “Getting started with Docker” tutorial post for anybody struggling to wrap their heads around Docker: http://djangostars.com/blog/heres-how-you-start-using-docker/