These are chat archives for reactioncommerce/reaction

7th
Jul 2017
Eliazer Braun
@adardesign
Jul 07 2017 00:51
I am having the same issue : ENFILE: file table overflow, scandir
Screen Shot 2017-07-06 at 8.51.08 PM.png
Eliazer Braun
@adardesign
Jul 07 2017 01:07
fixed
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 04:22
What is the purpose of reaction connect in the dashboard?
How to deploy reaction as service?
Brent Hoover
@zenweasel
Jul 07 2017 04:22
There is none. It’s been removed in the currect development version
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 04:22
Fine. Thank you
Brent Hoover
@zenweasel
Jul 07 2017 04:22
Access is now done through the CLI if you are a Reaction hosting customer
danielpinna
@danielpinna
Jul 07 2017 04:24

Hello,
I installed the simple: rest, however when I access the URL: http: // localhost: 3000 / Products

I get the error below:

TypeError: Can not read property & # 39; clean & # 39; Of null
at c.deny.insert (packages / aldeedcollection2-core.js: 579: 28)
at packages / allow-deny / allow-deny.js: 234: 12
at Array.some (native)
at Function .
. Some ._. Any (packages / underscore.js: 267:59)
at [object Object] .CollectionPrototype._validatedInsert (packages / allow-deny / allow-deny.js: 233: 9)
at Object.m (anonymous function) (packages / allow-deny / allow-deny.js: 171: 46)
at packages / simple_rest.js: 383: 33
at packages / simple_json-routes.js: 98: 9

I am making an access via POST, do I need to enter some data or token?

Brent Hoover
@zenweasel
Jul 07 2017 04:25
@danielpinna h/o let me try it
danielpinna
@danielpinna
Jul 07 2017 04:27
ok, thanks
Brent Hoover
@zenweasel
Jul 07 2017 04:28
so according to the docs I think the URL should be GET /publications/<publication-name>
i.e. https://localhost:3000/publications/Products
and that works for me locally
danielpinna
@danielpinna
Jul 07 2017 04:31
@zenweasel Oh, I tried the wrong url then. You have accessed: https://localhost:3000/Products
Thanks
  • I say I had accessed
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 04:32
How can we use Google client ID, Google API key, Open Exchange Rates App Id, Open Exchange Rates refresh period, Cleanup Schedule under Shop category?
Brent Hoover
@zenweasel
Jul 07 2017 04:33
Must of those are under Shop Settings under “Options"
REACTION.png
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 04:35
How they get used by reaction commerce?
I wish to know about their purpose
Brent Hoover
@zenweasel
Jul 07 2017 04:35
Open exchange rates is used to provice exchange rates with other currencies
the refresh period is used to determine how often those rates are refreshed
The cart cleanup schedule determine how often anonymous carts are removed from the db
The Google API key is used for accessing Google services like GeoLocation
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 04:38
Okay. Thank you
Curran
@curranabell
Jul 07 2017 04:42
Hey @zenweasel I am about 3/4 of the way done with a plugin that will automatically send uploaded product images to S3 instead of storing them locally and I am now at the part where I need to store the product image url in the database so it will reference the S3 image instead of a local image. Where are product image urls stored in the database for each product? Any idea how to override this with an S3 image url?
Screen Shot 2017-07-06 at 6.42.55 PM.png
It uses meteor slingshot to do this so it will bypass the server and send straight to S3
Brent Hoover
@zenweasel
Jul 07 2017 04:45
They are stored in the “Media” collection, which is a wrapper around the cfs.Media.filerecord collection
it provides a url function, not a value
Curran
@curranabell
Jul 07 2017 04:48
Ok great thank you @zenweasel ! I am not seeing the media collection in RoboMongo though...
Screen Shot 2017-07-06 at 6.48.24 PM.png
Brent Hoover
@zenweasel
Jul 07 2017 04:49
It doesn’t appear until you write something to it
Robomongo_1_0.png
Curran
@curranabell
Jul 07 2017 04:50
Ahh I see just added something and it is appearing
Brent Hoover
@zenweasel
Jul 07 2017 04:50
:+1:
you use the url function like this media.url({ store: "thumbnail" })
danielpinna
@danielpinna
Jul 07 2017 04:52

Folks,

I need to customize the product. The custom field will be a combobox where the user will select a region from among the available regions.

For this I will need to create the entity region that is made up of a group of cities.

Does anyone have any links on how to create new entities (entity, screens, controllers, services, dao's) and customization of existing entities in the reaction?

Thanks in advance!

Curran
@curranabell
Jul 07 2017 04:53
I am accomplishing this by overriding the MediaGallery component with a custom PDP. Is the api usable that Mike Murray created yet to just override individual components yet so I don't have to use a custom PDP?
Brent Hoover
@zenweasel
Jul 07 2017 04:53
@danielpinna are you a .NET developer?
@curranabell No, @jshimko is working on that now, I expect the first draft at least should be done in the next week or so
danielpinna
@danielpinna
Jul 07 2017 04:54
@zenweasel No, I'm a Java developer and I'm learning about Node and Meteor now ....
Brent Hoover
@zenweasel
Jul 07 2017 04:55
Yeah, so all those things, Entity, DAO’s and controllers, etc. We don’t have
We have Collections and Schemas
Collections is the Meteor API around MongoDB collections. And schemas are just schemas that sit on top of the Collections.
There is no other level of abstraction in there like DAO, because we don’t need to map tables to Entities
We can use them directly
Curran
@curranabell
Jul 07 2017 04:57
Perfect sooo stoked for that. Thanks for the help! I will be sharing this plugin with the community once it's done. @zenweasel
Brent Hoover
@zenweasel
Jul 07 2017 04:57
@curranabell Great, looking forward to seeing what you come up with
and you can see all the schemas in /lib/collections/schemas
If you create a plugin, you can just create a collection wherever. If you want to modify the schema of an existing collections I talk about that here: https://docs.reactioncommerce.com/reaction-docs/master/plugin-schemas-8
danielpinna
@danielpinna
Jul 07 2017 05:04
@zenweasel Thanks
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 06:28
I had created an account in Taxcloud and fill the TaxCloud form in reaction commerce TaxCloud form. My transaction get logged in taxcloud but no tax code listed in TaxCode form under EditVariant
Brent Hoover
@zenweasel
Jul 07 2017 07:23
In taxcloud do you just use your own taxcodes or use their provided ones, or both?
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 07:26
I didn't get any taxCodes listed in the dropdown
Brent Hoover
@zenweasel
Jul 07 2017 07:59
Are you supposed to be getting tax codes from Tax Cloud?
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 08:46
Yeah! Dropdown under taxable in product detail page has no tax codes. So I cannot add tax to my products.
This is for taxcloud
Brent Hoover
@zenweasel
Jul 07 2017 08:50
Ok, I will open an issue. Hopefully it should be a quick fix
Only asking because for some providers you need to create tax codes in their system before there is anything to populate
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 08:52
TaxCloud already have set of taxcodes. I can load taxcodes by calling "taxcloud/getTaxCodes" directly.
Brent Hoover
@zenweasel
Jul 07 2017 08:53
Ok
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 08:54
I think the hook event "afterCoreInit" does not get triggered in "imports/plugins/included/taxes-taxcloud/server/jobs/taxcodes.js".
Brent Hoover
@zenweasel
Jul 07 2017 08:55
Hmmm, that seems unlikely. Why do you say that?
Probably more likely that the job is not running for some reason
We added this functionality when were building it out for Avatara, but not if it got as well-tested
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 08:57
I'm saying because i add a console.log next to afterCoreInit. When I restart my server, there is no log.
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:00
Yeah
Brent Hoover
@zenweasel
Jul 07 2017 09:00
the afterCoreInit event has to be called because pretty much nothing would work.
Hmmm, weird
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:03
I have added another afterCoreInit in some other file for my plugin. Do this affect the afterCoreInit
?
Is there any rule that there must be only one afterCoreInit?
Brent Hoover
@zenweasel
Jul 07 2017 09:05
nope, it’s used all over the place
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:05
Ok
Brent Hoover
@zenweasel
Jul 07 2017 09:05
but I am not seeing that taxcode thing called either
it looks lke that file is not being imported
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:09
Yeah the job file is not imported.
But still there is no taxCodes
Brent Hoover
@zenweasel
Jul 07 2017 09:15
I’m in a meeting but does the job run?
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:16
Yeah! Now afterCoreInit called
Brent Hoover
@zenweasel
Jul 07 2017 09:16
so that part just puts the job in the queue
and if it runs it should be populating the collection
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:18
So when the job gets executed?
Brent Hoover
@zenweasel
Jul 07 2017 09:19
looking at it now I think it should run immediately and then repeat
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:20
Fine let me check.
Brent Hoover
@zenweasel
Jul 07 2017 09:24
the job is not running for some reason I think
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:25
Yeah collection does not populated till now.
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:38
but the collection is still empty
Brent Hoover
@zenweasel
Jul 07 2017 09:43
I’m not seeing the job run.
I’m going to grab some dinner than I can look at it some more
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 09:54
Okay
rnandhakumar1995
@rnandhakumar1995
Jul 07 2017 11:31
Tax is not calculated for TaxCloud.
rabas007
@rabas007
Jul 07 2017 12:18
Hello, can someone please tell me the image property of product , I cannot find it in database? thanks
v3yr0n
@v3yr0n
Jul 07 2017 12:22
hey!
rabas007
@rabas007
Jul 07 2017 12:23
Hi
v3yr0n
@v3yr0n
Jul 07 2017 12:25
I'm getting access denied on a newly created route
and i've created a file "startup.js" where I added
import { Reaction, Hooks } from "/server/api";

Hooks.Events.add("afterCoreInit", () => {
  Reaction.addRolesToDefaultRoleSet({
    allShops: true,
    roleSets: ["defaultRoles", "defaultVisitorRole"],
    roles: ["multibanco-paymentmethod/multibancoDone"]
  });
});
what i'm I missing?
v3yr0n
@v3yr0n
Jul 07 2017 12:56
@rabas007 i would like to help you and i searched if i can find the image property and no luck
rabas007
@rabas007
Jul 07 2017 12:59
@v3yr0n thanks, I appreciate that... I also had no luck... strange circumstance :(
v3yr0n
@v3yr0n
Jul 07 2017 13:20
yeah, because it is saved somewhere
i know that the image goes in the assets folder, but in the database i don't know :/
rabas007
@rabas007
Jul 07 2017 13:21
yes, i figured the same, but no clue where in database, I am stunned
v3yr0n
@v3yr0n
Jul 07 2017 13:43
anyone that can help me with my issue? :/
rabas007
@rabas007
Jul 07 2017 13:44
@v3yr0n - sorry, not really my expertise
Seunghun Sunmoon Lee
@SeunghunSunmoonLee
Jul 07 2017 16:29
Hi there, can I ask how to deploy reactioncommerce on iOS, android? there is meteorjs guide for deployment on mobile apps
not sure if that 'll work
danielpinna
@danielpinna
Jul 07 2017 17:51

I'm trying to install Reaction on a linux machine with Centos 7.

One of the prerequisites is the installation below:

Ubuntu / Debian

Apt-get update

Apt-get install -y -no-install-recommends build-essential bzip2 curl ca-certificates git graphicsmagick python

To install these requirements in a Centos 7, which one would I do this installation. Sorry for ignorance, but I'm a little lay with linux yet ....

Thank you.

Kenneth Beartusk
@beartusk
Jul 07 2017 18:16

"#" sudo reaction build test

Setting up plugin imports...

Setting up style imports...

Starting Docker build...

Sending build context to Docker daemon 7.807 MB
Sending build context to Docker daemon
Step 0 : FROM reactioncommerce/base:v2.0.0
"#" Executing 13 build triggers
Trigger 0, ARG APT_GET_INSTALL
Step 0 : ARG
Unknown instruction: ARG

Jeremy Shimko
@jshimko
Jul 07 2017 18:17
@beartusk update your Docker version. ARG has been supported for well over a year. That error comes from versions before that point
Kenneth Beartusk
@beartusk
Jul 07 2017 18:19
@zenweasel Got it thank you for getting back to me right away. Was trying to reformat my question before you answered.
Jeremy Shimko
@jshimko
Jul 07 2017 18:25

@danielpinna everything but Graphicsmagick...

yum groupinstall "Development Tools"

Then Graphicsmagick…

yum install epel-release
yum install GraphicsMagick
v3yr0n
@v3yr0n
Jul 07 2017 18:56
can someone help with my issue? please... :D
Jeremy Shimko
@jshimko
Jul 07 2017 19:00
where are you putting that code @v3yr0n ?
Kenneth Beartusk
@beartusk
Jul 07 2017 21:39

@jshimko I have this error when trying to run reaction on an ec2 server running Amazon Linux AMI.

=> Started proxy.
=> Started MongoDB.
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
/tmp/shelljs_01d37c627d6fe2a4bc22:10
fs.writeFileSync(fname, err.code.toString());
^

TypeError: Cannot read property 'toString' of null
at /tmp/shelljs_01d37c627d6fe2a4bc22:10:37
at ChildProcess.exithandler (child_process.js:212:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Socket.<anonymous> (internal/child_process.js:342:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at Pipe._handle.close [as _onclose] (net.js:511:12)
exec: internal error
[ec2-user@ip-172-31-33-35 reaction]$

Any suggestions?

bebob1
@bebob1
Jul 07 2017 23:52
Bildschirmfoto 2017-07-08 um 01.46.37.png
Hello, has anybody ever got problems with those table labels?
Brent Hoover
@zenweasel
Jul 07 2017 23:53
it looks like some of your translations didn’t load
what you are seeing is the translation keys
bebob1
@bebob1
Jul 07 2017 23:54
i thought so, but why does reaction load all the other translations?
The debug log in my shell doesnt throw any warning considering translations. where could I start debugging?
Brent Hoover
@zenweasel
Jul 07 2017 23:59
yeah, that’s a weird one, I have never seen it not load just a couple
usually all or nothing
Try Meteor.call(“i18n/flushTranslations”)