These are chat archives for reactioncommerce/reaction

8th
Jun 2018
Michael Duane Mooring
@mikeumus
Jun 08 2018 02:48

Hi, I'm getting an error message about user permissions although I set some user permissions to create variants in the custom template's register.js. I'm using Products.insert() in the code, should I be giving the createProduct permission instead then?

Error:

errorClass {isClientSafe: true, error: 403, reason: "Access denied", details: undefined, message: "Access denied [403]", …}

register.js

Brent Hoover
@zenweasel
Jun 08 2018 02:50
Your user needs to have permissions to create products
Chris
@chrisranjana
Jun 08 2018 03:22
Can anyone help resolve this issue reactioncommerce/reaction#4311
Brent Hoover
@zenweasel
Jun 08 2018 03:22
You can’t install/run reaction with sudo
Chris
@chrisranjana
Jun 08 2018 03:23
Thanks
Chris
@chrisranjana
Jun 08 2018 04:59
Can anyone please let me know the most probable reason for the error FATAL ERROR: NewSpace::Rebalance Allocation failed - process out of memory

reaction -v

Node: 8.10.0
NPM: 6.1.0
Meteor Node: 8.11.2
Meteor NPM: 5.10.0
Reaction CLI: 0.29.0

Michael Duane Mooring
@mikeumus
Jun 08 2018 05:18
@chrisranjana probably running out of RAM, are you running locally or on a server? Either way, consider RAM usage. The stats on my Google Cloud Compute Engine server uses nearly 6.5 GB of RAM at times.
Michael Duane Mooring
@mikeumus
Jun 08 2018 05:28
Thanks @zenweasel, after adding more permissions to the template and resetting, still getting that same error above:
Brent Hoover
@zenweasel
Jun 08 2018 05:29
Not sure what you mean by “adding permissions to the template"
Michael Duane Mooring
@mikeumus
Jun 08 2018 05:31
RC comes with product-detail-simple, I made a custom version of that and in it's register.js I added permissions based on my understanding of this doc:
Brent Hoover
@zenweasel
Jun 08 2018 05:32
yeah, that’s not the same thing. The permission to create products has nothing to do with template permissions
Michael Duane Mooring
@mikeumus
Jun 08 2018 05:34
k, where might I grant the user createProduct permissions then?
Chris
@chrisranjana
Jun 08 2018 05:56
@mikeumus Thanks. RAM was the issue I created a 4G swap and now it has progressed to the next level.
Michael Duane Mooring
@mikeumus
Jun 08 2018 05:57
:D !
Brent Hoover
@zenweasel
Jun 08 2018 05:58
It’s on the account. If you look at the default user that’s created, they have that permission applied
I don’t have a running version atm so I can’t find it, but you should be able to poke around on the Account collection and find it
Chris
@chrisranjana
Jun 08 2018 06:06
I guess this warning can be safely ignored ? app/client/plugins.less.css: warn: There are some @import rules those are not taking effect as they are required to be in the beginning of the file.
Brent Hoover
@zenweasel
Jun 08 2018 06:06
Yes
Michael Duane Mooring
@mikeumus
Jun 08 2018 06:13
@zenweasel, this one? /imports/plugins/core/accounts/register.js
Brent Hoover
@zenweasel
Jun 08 2018 06:13
?
parveenva
@parveenva
Jun 08 2018 08:47
Installed reaction on Windows machine, added product from admin section but they dont show up in users section. pl advice.
hrath2015
@hrath2015
Jun 08 2018 08:48
have u published it ?
parveenva
@parveenva
Jun 08 2018 08:52
yes
and i get the green msg. Product published to catalog
hrath2015
@hrath2015
Jun 08 2018 08:54
any noticeable error on server/browser console?
Chris
@chrisranjana
Jun 08 2018 08:56
I am seeing the following errors

Unable to resolve some modules:

"@babel/runtime/helpers/builtin/objectSpread" in
/home/ruser/my-new-reaction-project2/lib/collections/schemas/templates.js
(os.linux.x86_64)

If you notice problems related to these missing modules, consider running:

meteor npm install --save @babel/runtime

=> Errors prevented startup:

While processing files with ecmascript (for target os.linux.x86_64):

/home/ruser/my-new-reaction-project2/node_modules/babel-plugin-inline-import/build/helper.js:72:15:
Path './account.graphql' could not be found for
'/home/ruser/my-new-reaction-project2/home/ruser/my-new-reaction-project2/imports/plugins/core/graphql/server/schemas/index.js'
at Function.getContents

Even after running meteor npm install --save @babel/runtime the same errors repeat. What should I do next ?
parveenva
@parveenva
Jun 08 2018 08:57
@hrath2015 not really. mail not configured, which shouldnt matter i guess
@hrath2015 you are right. something is in browser console. Let me try. thanks
Emrah
@EKIVANC
Jun 08 2018 10:17

Hi Guys,
I have a question about existing coupons function in ReactionCommerce.

We are designing a marketplace with sellers, buyers and marketplace owner.
The marketplace owner would like to create some coupons for Sellers. And after that, the sellers will distribute these coupons to their customers ( I mean buyer).

And the discount amount of coupons should be paid by the marketplace owner.

Can I do that with existing ReactionCommerce functions? I mean can we achieve it with the existing solution or do we need any additional development effort for these functions? Any Comment will be greatly appreciated.

S Tunji Turner
@stunjiturner
Jun 08 2018 10:19
Is there any email newsletter
Chris
@chrisranjana
Jun 08 2018 12:24
SO this is a known bug ? meteor/meteor#9919
Since I'm too getting the same message "Path './account.graphql' could not be found for
"