These are chat archives for reactioncommerce/reaction

18th
Apr 2018
Daniel Honig
@dhonig
Apr 18 2018 00:10
@ragboy thanks for sharing. I'd imagine in the morning we can have some good dialog about this, or even sooner as the globe spins and some of the core team wake up
Brent Hoover
@zenweasel
Apr 18 2018 00:11
This is where loading the images in the db really falls down. If you have any decent amount of images it’s very CPU and storage intensive
Daniel Honig
@dhonig
Apr 18 2018 00:11
thats true
I like to seperate the import of products from the image processing
so a background job later that updates the images
ragboy
@ragboy
Apr 18 2018 00:12
yes, very much so. I understand the idea, avoid using a distributed file system, but you can't hammer the db like that.
Daniel Honig
@dhonig
Apr 18 2018 00:12
after the catalog is in place
ragboy
@ragboy
Apr 18 2018 00:13
But that will still hammer the DB.
Daniel Honig
@dhonig
Apr 18 2018 00:13
with the more recent releases of reaction its easier to push image hosting to S3 but still takes some work
ragboy
@ragboy
Apr 18 2018 00:13
But it loads to DB first, then offloads to S3.
Brent Hoover
@zenweasel
Apr 18 2018 00:13
Somebody just needs to write the plugin for it
ragboy
@ragboy
Apr 18 2018 00:14
and if you are using a marketplace so constantly on boarding new vendors and updating images, it doesn't work well.
Brent Hoover
@zenweasel
Apr 18 2018 00:15
now that it’s a plugin, you could write your own plugin that has the same API that stored images however
ragboy
@ragboy
Apr 18 2018 00:15
need to write a plugin to just use disk, and then you can use cloudflare and a shared FS.
Brent Hoover
@zenweasel
Apr 18 2018 00:15
Part of the challenge for us is that we don’t want to lock people into a particular commercial service
ragboy
@ragboy
Apr 18 2018 00:15
but the plugin would have to store directly to disk and not touch db, so not images to db then to disk.
Daniel Honig
@dhonig
Apr 18 2018 00:15
look forward to continuing the discussion later. But image processing is the real issue here it seems
Brent Hoover
@zenweasel
Apr 18 2018 00:16
however you want to store images would be up to you. It all ends up on a disk somewhere in the end
ragboy
@ragboy
Apr 18 2018 00:17
I don't disagree, but defaulting to the database, just seems like a mistake.
Is there a way to throttle the jobs or set a max # of workers so that you can choose to take longer and tread lighter on mongo?
Daniel Honig
@dhonig
Apr 18 2018 00:18
defaulting to the filesystem is an equal mistake, so its an issue of the most sensible default
in the future it will be installing a plugin for the system of your choosing
ragboy
@ragboy
Apr 18 2018 00:19
hmm, I would disagree, but that doesn't matter now. Keeping something like that AWAY from the db, would have been a better choice IMO.
So there is no plugin for that now? So we need to write it if we want this, correct? I haven't seen one.
Daniel Honig
@dhonig
Apr 18 2018 00:21
that part of the code that would need to be changed has been in flux
now its pretty easy to develop a plugin as before it would have been a more invasive change
bye for now
Brent Hoover
@zenweasel
Apr 18 2018 00:21
our first order of business was to replace MeteorCFS which we have completed
Daniel Honig
@dhonig
Apr 18 2018 00:21
It was a topic that came up frequently on community meetings for sure
Brent Hoover
@zenweasel
Apr 18 2018 00:22
I don’t know if we will have any short term plans to create plugins for various storage systems
Certainly if we did, S3 would probably be the first one
ragboy
@ragboy
Apr 18 2018 00:22
S3 would be great, but wouldn't help much if it went THROUGH the db.
Brent Hoover
@zenweasel
Apr 18 2018 00:25
As I mentioned, you could replace the base plugin and do whatever you want
I haven’t dug into the new package, but if you create a new storage adapter are you sure that the images are still stored in the db? I thought it just stored the URL/Metadata
ragboy
@ragboy
Apr 18 2018 00:27
I will have to dig in.
I am not sure if any alterations have been made.
Brent Hoover
@zenweasel
Apr 18 2018 00:29
You would need to be on the version > 1.8 I believe
ragboy
@ragboy
Apr 18 2018 00:29
ok
ragboy
@ragboy
Apr 18 2018 00:33
thx
Sophie He
@sophiehe
Apr 18 2018 05:14
For progress updates on a feature, be sure to tune into tomorrow's community call. Agenda + more info: http://getrxn.io/community-agenda
Patrick Newell
@pnewell4_twitter
Apr 18 2018 12:07
Q: for the community call today: what is the state of Analytics? I know we used to support GA, but last I checked it is not longer available. Further, I saw some removal of Analytics code slated for the next release. thanks!
MWPAWAR
@MWPAWAR
Apr 18 2018 12:10
Hi Everyone.
How should we override the strings from i18n?
I added new en.json and also loaded it using loadTranslations .
But I still see old string which was defined in the core not the overrided one from the custom plugin.
Does anyone have any idea?
Nasser Rahal
@rahalio
Apr 18 2018 13:01
hi folks, I am trying out the product on Ubuntu... getting some issues with running the following: apt-get install -y --no-install-recommends build-essential bzip2 curl ca-certificates git python
getting this error:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Akarshit Wal
@Akarshit
Apr 18 2018 13:03
@pawar-mahesh Not 100% sure but I think, Reaction has to be reset to load the new translations.
Nasser Rahal
@rahalio
Apr 18 2018 13:05
any ideas how to reset?
@rahalio ^
William Moss
@willmoss1000
Apr 18 2018 13:18
@pnewell4_twitter was about to ask the exact same thing!
Nasser Rahal
@rahalio
Apr 18 2018 13:22
looks like I am having some issues with permissions.. will see if that clears the matter
machiko
@machikoyasuda
Apr 18 2018 13:37
The Reaction Community Call starts in 30 minutes! http://getrxn.io/community-agenda
Got any questions you'd like us to answer on the call? Let us know on Gitter
Brent Hoover
@zenweasel
Apr 18 2018 14:03
Oh man
machiko
@machikoyasuda
Apr 18 2018 14:20
What's going on with Analytics? We tackled that question from @pnewell4_twitter in today's call https://www.youtube.com/watch?v=5b87jFqM8Us
Patrick Newell
@pnewell4_twitter
Apr 18 2018 14:20
thanks @machikoyasuda, I joined just as y'all were signing off. watching now!
Brent Hoover
@zenweasel
Apr 18 2018 14:21
note to self. Sit up straight for the first couple minutes of the call when the poster frame is being created
Patrick Newell
@pnewell4_twitter
Apr 18 2018 14:27
haha, on whether @spencern would like to talk about analytics (~9:00): "More than anything else in the world"
haha, ~13:01... you're welcome @zenweasel!
MWPAWAR
@MWPAWAR
Apr 18 2018 14:57
@Akarshit I already did reaction reset couple of times. But its still not working.
Nasser Rahal
@rahalio
Apr 18 2018 16:10
Thanks for the help guys, i finally got it to work on a AWS EC2 Large instance... looks like` i had a permission issue which was resolved by upgrading the npm and node on the server
I noticed that the performance is somehow slow -- even though I had it running on a large machine... is that normal? and what is the recommended infrastructure architecture for deployments? thanks in advance...
Esteban Montes
@emontesg
Apr 18 2018 18:25
where i can upgrade the docker image version?
Oli Guei
@olivrg
Apr 18 2018 19:59
I've just completed the swag shop tutorial and I must say, RC is really slow. Upon checking the the forum and gitter, I see that many people have reported the slowness as well. @RCTeam is there anything we can to improve the speed? If so, can you post a tutorial or something?
Daniel Honig
@dhonig
Apr 18 2018 20:00
@emontesg the Docker file. Can you tell us more about what your trying to accomplish?
Esteban Montes
@emontesg
Apr 18 2018 20:20
how i can configure the env variables like .env ?
on reaction ?
Daniel Honig
@dhonig
Apr 18 2018 20:21
settings.json
or ENV
Esteban Montes
@emontesg
Apr 18 2018 20:24
location files ?
Daniel Honig
@dhonig
Apr 18 2018 20:42
@emontesg settings/dev.settings.json
settings/settings.json
as documented in the docs
Daniel Honig
@dhonig
Apr 18 2018 20:48
re: subscriptions we got pretty far supporting plans but really you want to do subscriptions to support amazons model for subscriptions and that takes a bit more. Its not possible with stripe/braintree. We can quickly finish up the stripe based one...but the real deal for subscription billing is supporting a custom list of products
This would be easy to support braintree as well
#1 is not supportable via stripe/braintree due to limits in the way the API stores data. But 2 and 3 fit in pretty easily
Esteban Montes
@emontesg
Apr 18 2018 20:58
i change the files but not works
Daniel Honig
@dhonig
Apr 18 2018 21:12
how are you running the app @emontesg ?
Esteban Montes
@emontesg
Apr 18 2018 21:12
reaction
reaction
Daniel Honig
@dhonig
Apr 18 2018 21:13
you can pass the settings file on the command line
Esteban Montes
@emontesg
Apr 18 2018 21:13
how ?
Daniel Honig
@dhonig
Apr 18 2018 21:15
--settings /path/to/my/settings
this behaviour comes from meteor
Esteban Montes
@emontesg
Apr 18 2018 21:16
meteor --settings settings/settings.json ?
Daniel Honig
@dhonig
Apr 18 2018 21:18
reaction --settings settings/dev.settings.json
when reaction starts you'll see the file its using
Esteban Montes
@emontesg
Apr 18 2018 21:32
just one time ?
Or do I need to run with that command always?
Daniel Honig
@dhonig
Apr 18 2018 21:36
it should pick up settings.json by default as you will see as it boots up
i'm just giving you some options to help you find your way around
  "ROOT_URL": "",
  "MAIL_URL": "",
  "reaction": {
    "REACTION_USER": "admin@example.com",
    "REACTION_AUTH": "reaction123",
    "REACTION_EMAIL": "admin@example.com",
    "VERBOSE_JOBS": "true",
    "IMPORT_API_TOKEN": "testtoken"
  },
  "REACTION_LOG_LEVEL": "info",
  "public": {}
}
try reaction reset
then you should see those settings take hold
if you follow me
Esteban Montes
@emontesg
Apr 18 2018 21:42
not works
only change the mongo_url when i run this commmand export MONGO_URL="mongodb://user:pass@ds12345.mlab.com:1234/heroku_g1234"
Daniel Honig
@dhonig
Apr 18 2018 21:54
interesting
it should pick it up from settings.json as well
Esteban Montes
@emontesg
Apr 18 2018 21:58
to update the reaction version
only run need run reaction pull ?
Daniel Honig
@dhonig
Apr 18 2018 21:58
yes
Esteban Montes
@emontesg
Apr 18 2018 21:58
Screen Shot 2018-04-18 at 15.10.53.png
Daniel Honig
@dhonig
Apr 18 2018 21:59
your working copy is on a different branch
try reaction pull master
see if that works
if not just do git pull origin master
Esteban Montes
@emontesg
Apr 18 2018 22:07
not work
Daniel Honig
@dhonig
Apr 18 2018 22:08
you can also switch your branch back to master and just try reaction-update
you may need to commit or stash your files
Daniel Honig
@dhonig
Apr 18 2018 22:14
As far as settings.json I prefer using ENV exclusively as it fits in better with 12/factor and DevOps tooling
Esteban Montes
@emontesg
Apr 18 2018 22:38
and how i can configure the env variables ?
Daniel Honig
@dhonig
Apr 18 2018 22:39
a shell script?
.env isn't supported by default
in favor of the setting.json which is more idiomatic to meteor
Esteban Montes
@emontesg
Apr 18 2018 22:52
yes but dont work
Daniel Honig
@dhonig
Apr 18 2018 23:09
@emontesg are you using windows?
Esteban Montes
@emontesg
Apr 18 2018 23:34
no
mac
Daniel Honig
@dhonig
Apr 18 2018 23:34
hmm...thats good...I'm not sure why your having these issues with these fundamentals