These are chat archives for reactioncommerce/reaction

20th
Apr 2017
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 07:17
Thanks for great works reactioncommerce! I just deployed my website on liveoutthere.org which is only shown on desktops not on iphones(iphone6) . Is this a right place to ask? If not I assume it's github repo issues?
I followed the official deploy option on digital ocean
Brent Hoover
@zenweasel
Apr 20 2017 07:23
@Seunghunsh I am not able to reach that site on desktop
Nikolaj
@lopugit
Apr 20 2017 07:28
is it possible to support react and jade/pug?
Brent Hoover
@zenweasel
Apr 20 2017 07:29
At this point no, we are moving towards all React
@Seunghunsh
 »» curl liveoutthere.org
curl: (7) Failed to connect to liveoutthere.org port 80: Connection refused
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 07:38

it just crashed with docker logs `[-] External MONGO_URL not found. Starting local MongoDB...

=> Starting app on port 3000...
`

let me fix it with docker run -d \ --name reaction \ --restart always \ -e MONGO_URL="mongodb://mongo:27017/reaction" \ -e ROOT_URL="https://liveoutthere.org" \ -e VIRTUAL_HOST="www.liveoutthere.org, liveoutthere.org" \ -e VIRTUAL_PORT=3000 \ -e LETSENCRYPT_EMAIL="markandsh@gmail.com" \ -e LETSENCRYPT_HOST="www.liveoutthere.org, liveoutthere.org" \ reactioncommerce/reaction:latest instead of -e MONGO_URL="mongodb://127.0.0.1:27017" \
MongoError: failed to connect to server [mongo:27017] on first connect
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 07:49
It's up again . Now you can access it on liveoutthere.org on desktops but not shown on iphones
Brent Hoover
@zenweasel
Apr 20 2017 07:59
what do you see on iPhone? It’s working on my Android phone as well
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:00
blank page
happens both in iphone chrome, iphone safari
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:07
I think it happend to me before when Apple didn't recognize let's encrypt as trustful SSL provider
Brent Hoover
@zenweasel
Apr 20 2017 08:08
Yeah, I see it on the simulator as well
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:10
which simulator?
Brent Hoover
@zenweasel
Apr 20 2017 08:11
iOS Simulator
I get the same thing on Safari on desktop
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:20
happens both in iphone chrome, iphone safari
Brent Hoover
@zenweasel
Apr 20 2017 08:20
well iPhone chrome isn’t really Chrome
it;s a skinned Safari
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:21
do u know what causes this issue?
i see
Brent Hoover
@zenweasel
Apr 20 2017 08:21
No, it’s not happening in stock Reaction
REACTION_SWAG_SHOP_and_REACTION_and_rates_js_-_reaction_-____Projects_js_reaction_.png
Are you using the most recent, recent version of RC. I think this issues was just fixed/closed reactioncommerce/reaction#2088
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:23

I followed these two instructions

```https://github.com/reactioncommerce/reaction/issues/1075

I built custom nginx following that tutorial

https://gist.github.com/jshimko/745ca66748846551692e24c267a56060
I used this command
docker run -d \
  --name reaction \
  --restart always \
  -e ROOT_URL="https://liveoutthere.org" \
  -e VIRTUAL_HOST="www.liveoutthere.org, liveoutthere.org" \
  -e VIRTUAL_PORT=3000 \
  -e LETSENCRYPT_EMAIL="markandsh@gmail.com" \
  -e LETSENCRYPT_HOST="www.liveoutthere.org, liveoutthere.org" \
  reactioncommerce/reaction:latest
Brent Hoover
@zenweasel
Apr 20 2017 08:25
can you see the logs? You need to be running v1.1.1
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:27
07:48:23.368Z  INFO Reaction: Reaction Version: 1.1.0
07:48:23.475Z  INFO Reaction: Migrating from version 0 -> 3
07:48:23.476Z  INFO Reaction: Running up() on version 1
07:48:23.513Z  INFO Reaction: Running up() on version 2
07:48:23.527Z  INFO Reaction: Running up() on version 3
07:48:23.564Z  WARN Reaction: Skipped loading settings from reaction.json.
07:48:23.564Z  INFO Reaction: Loaded "/private/settings/reaction.json" for registry fixture import
07:48:26.750Z  INFO Reaction: Finished migrating.
07:48:26.890Z  WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
07:48:26.893Z  WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
07:48:26.897Z  WARN Reaction: No cart cleanup schedule
07:48:27.163Z  INFO Reaction: Reaction initialization finished.
07:51:32.429Z  WARN Reaction: Reaction.Email.getMailUrl() - no email provider configured
07:51:32.434Z ERROR Reaction: Mail not configured
07:54:47.454Z  WARN Reaction: Reaction.Email.getMailUrl() - no email provider configured
i see..
Brent Hoover
@zenweasel
Apr 20 2017 08:27
07:48:23.368Z INFO Reaction: Reaction Version: 1.1.0
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:27
do u know how to get that in docker version?
Brent Hoover
@zenweasel
Apr 20 2017 08:27
the docker version should have been automatically updated
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:28
I just installed it an hour ago?
Brent Hoover
@zenweasel
Apr 20 2017 08:28
Our CI server, rebuilds the image when a new version is release
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:29

okay. so

docker stop reaction
docker rm reaction

docker run -d \
  --name reaction \
  --restart always \
  -e ROOT_URL="https://liveoutthere.org" \
  -e VIRTUAL_HOST="www.liveoutthere.org, liveoutthere.org" \
  -e VIRTUAL_PORT=3000 \
  -e LETSENCRYPT_EMAIL="markandsh@gmail.com" \
  -e LETSENCRYPT_HOST="www.liveoutthere.org, liveoutthere.org" \
  reactioncommerce/reaction:latest

?

Brent Hoover
@zenweasel
Apr 20 2017 08:30
Yeah, although if you just did an hour ago, it should have got the latest version
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:30
is there a way to reuse the product data that I created in the past ones?
Brent Hoover
@zenweasel
Apr 20 2017 08:30
You will want to export your product data and then drop it into /private/data
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:30
what's the right standard way of addressing MONGO_URL ?
You should set it via an envionment variable
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:31
  -e MONGO_URL="mongodb://mongo:27017" \
gave me an error
Brent Hoover
@zenweasel
Apr 20 2017 08:32
Yeah, that doesn’t look like a valid Mongo URL
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:32
also how to use meteor mongo command when u installed reaction using docker?
Brent Hoover
@zenweasel
Apr 20 2017 08:34
I don’t know a ton about docker, but can’t you do docker exec
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:43
yeah i think it goes like docker exec -d reaction somecommand
is there a way to update internally ? for example docker exec -d reaction updatereactioncommerce ?
Brent Hoover
@zenweasel
Apr 20 2017 08:44
Unfortunately I don’t think so
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 08:45

also i just checked it . when you run

docker run -d \
  --name reaction \
  --restart always \
  -e ROOT_URL="https://liveoutthere.org" \
  -e VIRTUAL_HOST="www.liveoutthere.org, liveoutthere.org" \
  -e VIRTUAL_PORT=3000 \
  -e LETSENCRYPT_EMAIL="markandsh@gmail.com" \
  -e LETSENCRYPT_HOST="www.liveoutthere.org, liveoutthere.org" \
  reactioncommerce/reaction:latest

you get v1.1.0 .

so users have to delete the app and re install updated reaction version ?
I ve been searching for deployment options on ubuntu16.04 on digital ocean but it doesn't mention how to update or how to run meteor commands...
Brent Hoover
@zenweasel
Apr 20 2017 08:47
well, that would be the advantage of using the container, is that you can just spin up a new container with the new version
I don’t know why the docker image hasn’t been updated
Brent Hoover
@zenweasel
Apr 20 2017 08:54
I’m trying it locally
Brent Hoover
@zenweasel
Apr 20 2017 08:59
Just built it here

08:59:24.635Z  INFO Reaction: Reaction Version: 1.1.1
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 09:00
using docker ?
Brent Hoover
@zenweasel
Apr 20 2017 09:00
Yeah, reaction:latest
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 09:10
I tried docker exec -d reaction reaction pull hoping that it upgrades internally but there was an error
Error response from daemon: rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:247: starting container process caused "exec: \"reaction\": executable file not found in $PATH"
Brent Hoover
@zenweasel
Apr 20 2017 09:17
No, that won’t work. That only works in a development environment
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 09:21
09:18:43.124Z  INFO Reaction: Load default data from /private/data/
09:18:43.617Z  INFO Reaction: JobServer started
09:18:43.625Z  WARN Reaction: Skipped loading settings from reaction.json.
09:18:43.625Z  INFO Reaction: Loaded "/private/settings/reaction.json" for registry fixture import
09:18:53.933Z  WARN Reaction: Reaction.Email.getMailUrl() - no email provider configured
09:18:53.934Z  WARN Reaction:

09:18:56.785Z  INFO Reaction: Reaction Version: 1.1.0
09:18:56.916Z  INFO Reaction: Migrating from version 0 -> 3
09:18:56.918Z  INFO Reaction: Running up() on version 1
09:18:56.961Z  INFO Reaction: Running up() on version 2
09:18:56.979Z  INFO Reaction: Running up() on version 3
09:18:57.029Z  WARN Reaction: Skipped loading settings from reaction.json.
09:18:57.029Z  INFO Reaction: Loaded "/private/settings/reaction.json" for registry fixture import
09:19:00.034Z  INFO Reaction: Finished migrating.
09:19:00.179Z  WARN Reaction: OpenExchangeRates API not configured. Not adding fetchRates job
09:19:00.182Z  WARN Reaction: OpenExchangeRates API not configured. Not adding flushRates job
09:19:00.186Z  WARN Reaction: No cart cleanup schedule
09:19:00.405Z  INFO Reaction: Reaction initialization finished.
just re ran the docker command. reaction version is still 1.1.0
is it related to some config file that in my server that keeps using older reaction docker image?
Brent Hoover
@zenweasel
Apr 20 2017 09:35
Try docker pull reaction:latest
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Apr 20 2017 09:40

My issue was dangling docker image of reaction created a few weeks ago.
just checked it and removed it by

#when there are outdated docker images , remove them
docker images -f dangling=true
docker rmi $(docker images -f dangling=true -q)

now it's up and running and shown on iphone, desktop without any problem.
Thanks for helping Brent @zenweasel !
cheers

Brent Hoover
@zenweasel
Apr 20 2017 09:40
:+1: phew!
sean
@niceSpriteSW_twitter
Apr 20 2017 11:09
hello this may be a silly question, but is there a filter bar for the tag/category view to sort or filter products by attribute ?
Janus Reith
@janus-reith
Apr 20 2017 14:29
running reaction deploy results in the error:
(node:5771) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: logger is not defined
(node:5771) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
daredevilDarmos
@daredevilDarmos
Apr 20 2017 14:47
Anyone have any success pushing reaction commerce to an ec2 aws instance with mup? When doing so, I get success for everything up to "verifying deployment" where it fails. Any tips, docs or notes would be appreciated!
Alexander Ditzend
@aditzend
Apr 20 2017 15:18
@niceSpriteSW_twitter take a look at the productGrid.js file, you will have to create Arrays of attributes iterating over the Product data that powers the template. With those arrays you can create a component that filters the products shown by productGrid. I have built it in Blaze and it works great. Hope to updgrade it to React any time soon.
sean
@niceSpriteSW_twitter
Apr 20 2017 15:59
@aditzend thanks I'll take a look and see if i can get it working.
Sophie He
@sophiehe
Apr 20 2017 16:38
Hi all! Just a reminder—our platform demo and Q&A livestream is starting in less than 30 minutes. Save your spot and tune in at 10am PST: http://ccst.io/e/reaction-action-april
Ivanthadev
@ivanthemeh
Apr 20 2017 17:05
hey guys, Is the live stream going on right now or did I miss it?
Spencer Norman
@spencern
Apr 20 2017 17:06
right now
click the chat link above :point_up:
Ivanthadev
@ivanthemeh
Apr 20 2017 17:06
sorry, I was using the meetup app and it confused the crap outta me....
lol
Spencer Norman
@spencern
Apr 20 2017 17:06
ahh
Ivanthadev
@ivanthemeh
Apr 20 2017 17:06
it said 10 am and I was afraid I missed it :worried:
Spencer Norman
@spencern
Apr 20 2017 17:06
Just started :)
will.tamagi
@wdtamagi
Apr 20 2017 17:11
yeah
Anthony Young
@ayoungh
Apr 20 2017 18:46
Hi All, I cant seem to get it up and running locally
is this the best place to paste my error?
Alexander Ditzend
@aditzend
Apr 20 2017 18:52
@ayoungh paste it here!
Anthony Young
@ayoungh
Apr 20 2017 18:54

`meteor-tool/.1.4.4_1.1ygrsyx++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:280
throw(ex);
^

Error: ENFILE: file table overflow, open`

reaction/imports/plugins/included/shipping-rates/server/i18n/es.json' at Error (native) at Object.fs.openSync (fs.js:549:18) at Object.fs.readFileSync (fs.js:397:15) at wrapper (/tools/fs/files.js:1586:35) at wrap.makeCacheKey._len2
...
Thats the top snippet of the error
node version is 6.10.1
Anthony Young
@ayoungh
Apr 20 2017 18:58
Thank you
:)
l0qii
@l0qii
Apr 20 2017 19:00
I can't get stripe to be enabled on first start. I've set "enabled": true in reaction.json and added my api_key. When I login the first time and go to the dashboard/payments , stripe is still unchecked, although my api key is there, so the json file is being read, but the enabled setting is not being honored.
similarly, I tried to disable paypal, but it was still enabled on first login
Alexander Ditzend
@aditzend
Apr 20 2017 19:04
@l0qii did you reset the db?
l0qii
@l0qii
Apr 20 2017 19:05
yes
Alexander Ditzend
@aditzend
Apr 20 2017 19:07
@l0qii I will try to repeat the error in my machine. Are you on v1.1.0?
l0qii
@l0qii
Apr 20 2017 19:08
1.1.1
Flavio H Freitas
@flaviohenriquecbc
Apr 20 2017 20:20
hey guys ... I just wrote an article about ES7, javascript new features. Take a look and let me know what you think: https://medium.com/@flaviohfreitas/es7-a-simple-and-useful-guide-to-master-it-6aba54abb4df ;)
Sophie He
@sophiehe
Apr 20 2017 21:36
cool!!
Istvan Tobias
@tobias-istvan
Apr 20 2017 22:27

Hi guys, the docs don't work for me:
WARNING: npm peer requirements (for reactrouter:react-router-ssr) not installed:

Read more about installing npm peer dependencies:
http://guide.meteor.com/using-packages.html#peer-npm-dependencies

(URL: https://docs.reactioncommerce.com/reaction-docs/master/creating-a-plugin)
Can you confirm this issue?