These are chat archives for reactioncommerce/reaction

31st
Jul 2016
3Maestros
@3Maestros
Jul 31 2016 05:33
I get following error when I restart the server immediately following "reaction reset"
dyld: lazy symbol binding failed: Symbol not found: _node_module_register
W20160730-22:29:58.721(-7)? (STDERR) Referenced from: /Users/Aquaboi/work-space/meteor/reaction/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node
W20160730-22:29:58.723(-7)? (STDERR) Expected in: dynamic lookup
W20160730-22:29:58.745(-7)? (STDERR)
W20160730-22:29:58.756(-7)? (STDERR) dyld: Symbol not found: _node_module_register
W20160730-22:29:58.768(-7)? (STDERR) Referenced from: /Users/Aquaboi/work-space/meteor/reaction/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node
W20160730-22:29:58.773(-7)? (STDERR) Expected in: dynamic lookup
I have to delete npm modules and execute meteor npm install to get it back running
Jeremy Shimko
@jshimko
Jul 31 2016 05:34
reaction reset does specifically that.
It resets the db, deletes node modules, and then reinstalls them.
If you choose "yes" to deleting node modules
Otherwise it only resets the database (which should absolutely no effect on the node modules)
3Maestros
@3Maestros
Jul 31 2016 05:43
Yes I thought so but I see the error above after I restart immediately following reaction reset ...
It does not go away unless I delete the module and do meteor npm install
Jeremy Shimko
@jshimko
Jul 31 2016 14:20

That’s a little odd. reaction reset specifically runs these 3 commands...

meteor reset
rm -rf node_modules
meteor npm install

It makes very little sense that running the exact same commands again would be required. (Not saying I don’t believe you. Just not sure what to tell you)

Jeremy Shimko
@jshimko
Jul 31 2016 14:30
and I also can’t reproduce it
Sounds to me like the above commands are not happening when you run reaction reset
Jeremy Shimko
@jshimko
Jul 31 2016 14:36
also, if you surround multi-line code/logs with 3 backticks (```), your logs will be a little easier to read here.
3Maestros
@3Maestros
Jul 31 2016 16:37
@jshimko sure , thanks for the tip , I will keep a watch there might be something else going on in my environment.
Jeremy Shimko
@jshimko
Jul 31 2016 16:38
Ok. Let me know if you come up with reproduction steps and I’ll do what I can to help solve it.
3Maestros
@3Maestros
Jul 31 2016 20:03
@zenweasel I updated to the latest reaction example plugin but I dont see the home page customization anymore? I dont see the styles directory anymore in the reaction-example
3Maestros
@3Maestros
Jul 31 2016 20:29
link is broken
I got this link in docs "Importing Data" section
3Maestros
@3Maestros
Jul 31 2016 21:02
I am trying to import data for beesknees plugin using api Reaction.Import.process(Assets.getText("private/data/Product.json"), ["_id"], Reaction.Import.product); Reaction.Import.flush();
I have this called in Meteor.startup but I see following error saying Error: Unknown asset: private/data/Product.json
I have tried with the json path as data/Product.json too but see same error any help appreciated.
3Maestros
@3Maestros
Jul 31 2016 21:24
I read this in the customization guide that I would like to quote below This second entry is to highlight how you can have multiple stores within Reaction Commerce.
Is this feature of "multiple stores" supported or tested? I am interested in giving it a spin.
Jeremy Shimko
@jshimko
Jul 31 2016 21:26
Assets.getText("data/Product.json”) === "private/data/Product.json"
Paths for Assets.getText() are relative to the application's “private" subdirectory
3Maestros
@3Maestros
Jul 31 2016 21:28
@jshimko I have the file name wrong it should be "Products" with an "s" , I am trying it with this fixed..
3Maestros
@3Maestros
Jul 31 2016 21:40
Looks like the plugin-example is not complete? As it is not populating all of the necessary product,shop and tags data , I would expect this to be staged running reaction reset.
looks like there must be something wrong with the way I am trying to call import this line is resulting in error Reaction.Import.process(Assets.getText("data/Products.json"), ["_id"], Reaction.Import.product);
Error: Match error: Expected object, got undefined
3Maestros
@3Maestros
Jul 31 2016 22:00
this code works without any issues Reaction.Import.process(Assets.getText("data/Tags.json"), ["_id"], Reaction.Import.tag); Reaction.Import.flush(); but data in the database does not match Tags.json, it still shows two entries originally shipped.
3Maestros
@3Maestros
Jul 31 2016 22:09
well I commented the code check(parent, Object); line 238 reaction/server/api/core/import.js the import code started working for Product also without any error , but I don't see any products added to the database. The code is getting executed but nothing happens.
3Maestros
@3Maestros
Jul 31 2016 22:39
I see following logs when I start the server I20160731-15:34:35.892(-7)? 22:34:35.889Z INFO Reaction: Initializing REACTION reaction-ui-navbar I20160731-15:34:35.912(-7)? 22:34:35.909Z INFO Reaction: Initializing <blank site> reaction-ui-navbar I20160731-15:34:35.989(-7)? 22:34:35.989Z INFO Reaction: Initializing REACTION reaction-ui-tagnav I20160731-15:34:36.009(-7)? 22:34:36.006Z INFO Reaction: Initializing <blank site> reaction-ui-tagnav I20160731-15:34:36.173(-7)? 22:34:36.171Z INFO Reaction: Initializing REACTION reaction-analytics I20160731-15:34:36.265(-7)? 22:34:36.260Z INFO Reaction: Initializing <blank site> reaction-analytics I20160731-15:34:36.433(-7)? 22:34:36.424Z INFO Reaction: Initializing REACTION reaction-auth-net I20160731-15:34:36.491(-7)? 22:34:36.490Z INFO Reaction: Initializing <blank site> reaction-auth-net I20160731-15:34:36.574(-7)? 22:34:36.573Z INFO Reaction: Initializing REACTION reaction-braintree I20160731-15:34:36.666(-7)? 22:34:36.664Z INFO Reaction: Initializing <blank site> reaction-braintree I20160731-15:34:36.761(-7)? 22:34:36.760Z INFO Reaction: Initializing REACTION reaction-default-theme I20160731-15:34:36.784(-7)? 22:34:36.782Z INFO Reaction: Initializing <blank site> reaction-default-theme I20160731-15:34:36.900(-7)? 22:34:36.895Z INFO Reaction: Initializing REACTION example-paymentmethod I20160731-15:34:36.964(-7)? 22:34:36.960Z INFO Reaction: Initializing <blank site> example-paymentmethod I20160731-15:34:37.139(-7)? 22:34:37.138Z INFO Reaction: Initializing REACTION reaction-inventory I20160731-15:34:37.256(-7)? 22:34:37.249Z INFO Reaction: Initializing <blank site> reaction-inventory I20160731-15:34:37.381(-7)? 22:34:37.368Z INFO Reaction: Initializing REACTION reaction-jobcontrol I20160731-15:34:37.423(-7)? 22:34:37.423Z INFO Reaction: Initializing <blank site> reaction-jobcontrol
anyone know why it is saying "<blank site>" ???
Brent Hoover
@zenweasel
Jul 31 2016 22:42
“<blank site>” is what the second site is called
The reaction-example-plugin repo does not contain any style information anymore. That is covered in the reaction-example-theme
Brent Hoover
@zenweasel
Jul 31 2016 22:47
I never included a home page customization in either version of the repo though
3Maestros
@3Maestros
Jul 31 2016 22:49
I meant the styling which was part of beesness is not anymore, I see that you have a theme example .
Are these "<blank site>" supposed to go once I integrate styling?
Brent Hoover
@zenweasel
Jul 31 2016 22:50
pardon?
It’s just called “blank site”, it could be called “Second Shop” or something
3Maestros
@3Maestros
Jul 31 2016 22:51
ok got it ..
Brent Hoover
@zenweasel
Jul 31 2016 22:52
because the backend for RC supports multi-shops, but the front-end does not
at least in terms of having an admin for it
3Maestros
@3Maestros
Jul 31 2016 22:53
ok ...how do I get the data from plugin jsons imported on the databse?
I tried Reaction.Import.process(Assets.getText("data/Tags.json"), ["_id"], Reaction.Import.tag); Reaction.Import.flush(); but no avail ...
Brent Hoover
@zenweasel
Jul 31 2016 22:53
You need to copy it to <your_reaction_dir>/private/data`
Ryan Watts
@rwatts3
Jul 31 2016 22:54
greetings has anyone run into an issue when deploying with mupx where the site is only accessible via sitename.com:port
Brent Hoover
@zenweasel
Jul 31 2016 22:54
Packages allowed you to have a private dir relative to the package, but plugins do not
Ryan Watts
@rwatts3
Jul 31 2016 22:54
is there a workaround ? i'm not using ssl
By the way I apologize for jumping in the middle of that answer
3Maestros
@3Maestros
Jul 31 2016 22:55
@zenweasel thanks let me try that ...
Brent Hoover
@zenweasel
Jul 31 2016 22:55
@rwatts3 No worries. Are you saying it’s only available at sitename.com:3000 ?
Ryan Watts
@rwatts3
Jul 31 2016 22:56
yes well port 4009 for this client
Brent Hoover
@zenweasel
Jul 31 2016 22:59
@rwatts3 do you have the port set in the config?
Ryan Watts
@rwatts3
Jul 31 2016 23:01
yes
Brent Hoover
@zenweasel
Jul 31 2016 23:03
what hosting are you using? It’s an Ubuntu box?
Ryan Watts
@rwatts3
Jul 31 2016 23:05
i'm using mupx and yes i believe it's ubuntu
the main server is ubuntu
Brent Hoover
@zenweasel
Jul 31 2016 23:06
I mean what hosting service are you using?
So you have the port in the settings file set to 80?
Maybe try settings it to another value above 1024 but not th default?
to see if the settings file is not taking affect because of permissions
Ryan Watts
@rwatts3
Jul 31 2016 23:11
port in settings is set to 4009
and service is google cloud compute instance
ubuntu
Brent Hoover
@zenweasel
Jul 31 2016 23:12
so I am confused then
you set the port to 4009 and then it’s running on port 4009? So where is the disconnect?
Ryan Watts
@rwatts3
Jul 31 2016 23:14
Ok so the disconnect is when I launch the site. I'm using nginx to proxy 4009 on my server. For some reason Reaction is not accessible when i type the main domain , but I have to type the port for it to be accessible. I saw a similar issue in the repo related to this , it's almost as if Reaction doesn't recognize or is not exposing it'self to the domain
Brent Hoover
@zenweasel
Jul 31 2016 23:15
if it’s available at 4009 then it would seem that RC is doing fine and the proxy is not set up correctly
it’s nginx that should be proxying 80 => 4009
Ryan Watts
@rwatts3
Jul 31 2016 23:17
ok let me give that a shot
3Maestros
@3Maestros
Jul 31 2016 23:18
@zenweasel I would like to show "bees-knees" in place of "REACTION" in my homepage, where do I make such change?
Brent Hoover
@zenweasel
Jul 31 2016 23:19
in the Shops.json, or you can change it through the admin
Probably best to do it in Shops.json
The files included with the repo already have that change made
3Maestros
@3Maestros
Jul 31 2016 23:23
ok let me do a reaction reset and see if it shows, thanks!
I did "reaction reset" but when I query the database Products still shows, is this expected?
Brent Hoover
@zenweasel
Jul 31 2016 23:27
as soon as reaction is started those collections will be recreated
3Maestros
@3Maestros
Jul 31 2016 23:28
What does it mean "Resetting the database..." when we run reset?
Brent Hoover
@zenweasel
Jul 31 2016 23:29
It’s basically just running meteor reset which deletes the local data
3Maestros
@3Maestros
Jul 31 2016 23:31
I see foll error when I start app I20160731-16:29:25.859(-7)? 23:29:25.855Z WARN Reaction: Error while importing to Shops: insertDocument :: caused by :: 11000 E11000 duplicate key error index: meteor.Shops.$_id_ dup key: { : "J8Bhq3uTtdgwZx3rz" }
I should clean Shop table manually and restart the app?
Brent Hoover
@zenweasel
Jul 31 2016 23:32
No
Did you replace the files that come with stock reaction with the three files included with the example plugin?
3Maestros
@3Maestros
Jul 31 2016 23:33
yes ...
It say Bees-knees ..
Brent Hoover
@zenweasel
Jul 31 2016 23:33
and you did reaction reset?
3Maestros
@3Maestros
Jul 31 2016 23:34
yes..
snippet "addressBook": [ { "company": "BeesKnees", "fullName": "Bee's Knees Organic Infant Clothing", "address1": "123 Main St.", "address2": "Warehouse #7", "city": "Los Angeles", "region": "CA", "postal": "90046", "country": "US", "phone": "888867530", "isCommercial": true, "isShippingDefault": true, "isBillingDefault": true } ],
Brent Hoover
@zenweasel
Jul 31 2016 23:34
then I don’t know how it’s possible for you to get that error
3Maestros
@3Maestros
Jul 31 2016 23:34
yeah it's wierd ...
Brent Hoover
@zenweasel
Jul 31 2016 23:34
yep
3Maestros
@3Maestros
Jul 31 2016 23:35
if the database is being cleaned on startup..
Brent Hoover
@zenweasel
Jul 31 2016 23:35
the database is not cleaned on startup, it’s cleaned by running reaction reset
3Maestros
@3Maestros
Jul 31 2016 23:36
ok I did not check Shops table after reset but Products table still had entries after reset ..
that's the reason I checked if reset deletes the database entries..
Brent Hoover
@zenweasel
Jul 31 2016 23:36
then you have something funky going on
3Maestros
@3Maestros
Jul 31 2016 23:36
During reset I opted not to delete npm modules..
Brent Hoover
@zenweasel
Jul 31 2016 23:37
are you using another mongodb or something
yeah, that shouldn’t matter
3Maestros
@3Maestros
Jul 31 2016 23:37
so I answered no on the question
Brent Hoover
@zenweasel
Jul 31 2016 23:37
Try doing meteor reset
3Maestros
@3Maestros
Jul 31 2016 23:37
nope only one ..
ok let me try..
Brent Hoover
@zenweasel
Jul 31 2016 23:37
this isn’t a Reaction thing, it’s a core Meteor command
3Maestros
@3Maestros
Jul 31 2016 23:38
yes..
Brent Hoover
@zenweasel
Jul 31 2016 23:39
Are you trying to import those files from your plugin?
Because you don’t need to, they are automatically imported
3Maestros
@3Maestros
Jul 31 2016 23:39
nope I removed that code ..

here's what it is saying when i try meteor reset ```Ritesh-Shettys-MacBook-Pro:reaction Aquaboi$ meteor reset
reset: Meteor is running.

This command does not work while Meteor is running your application. Exit the running Meteor development server.```

Brent Hoover
@zenweasel
Jul 31 2016 23:40
Yes, you need to stop reaction
3Maestros
@3Maestros
Jul 31 2016 23:40
I have the app terminated ...:)
Brent Hoover
@zenweasel
Jul 31 2016 23:40
If you are getting that message, you don't
3Maestros
@3Maestros
Jul 31 2016 23:41
yes let me check ..
Brent Hoover
@zenweasel
Jul 31 2016 23:41
you need to do three backticks, a cr/lf and then after your code a cr/lf and then three backticks
to get code formatting
“fenced code” needs to be surrounded by line feeds
3Maestros
@3Maestros
Jul 31 2016 23:42
some runaway meteor process is running not reaction ...
Brent Hoover
@zenweasel
Jul 31 2016 23:43
ok, but you still need to run reset
3Maestros
@3Maestros
Jul 31 2016 23:44
yes I killed that runaway process and reset is successful, it should work now
Brent Hoover
@zenweasel
Jul 31 2016 23:47
Yes
I think that’s probably the biggest thing we lost with migrating away from packages is the ability to import local data
3Maestros
@3Maestros
Jul 31 2016 23:56
I see the shop name updated as "Bees-Knees" but I see following error in the log file
` I20160731-16:52:49.019(-7)? 23:52:49.017Z INFO Reaction: Modified 0 documents while importing 10 to Products I20160731-16:52:49.019(-7)? 23:52:49.018Z WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "eiWEKnhX8Exym8Kea" , ...}, the (immutable) field '_id' was found to have been altered to _id: "ngFgvLJ5RP4DGkxpJ" I20160731-16:52:49.020(-7)? 23:52:49.018Z WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "SMr4rhDFnYvFMtDTX" , ...}, the (immutable) field '_id' was found to have been altered to _id: "Cf5ysb8JaPCcdveZD" I20160731-16:52:49.021(-7)? 23:52:49.018Z WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "CJoRBm9vRrorc9mxZ" , ...}, the (immutable) field '_id' was found to have been altered to _id: "WmrMZ4HMLNXgNnvuA" I20160731-16:52:49.021(-7)? 23:52:49.018Z WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "eiWEKnhX8Exym8Kea" , ...}, the (immutable) field '_id' was found to have been altered to _id: "3Gq5w7SYyLCHFGmBo" I20160731-16:52:49.024(-7)? 23:52:49.019Z WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "eiWEKnhX8Exym8Kea" , ...}, the (immutable) field '_id' was found to have been altered to _id: "acB6breEgSJtKqa3N" I20160731-16:52:49.025(-7)? 23:52:49.021Z WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "X7RHwBDEzJ2SkDvgT" , ...}, the (immutable) field '_id' was found to have been altered to _id: "ucTZc2i6XmrCvW78m"
Brent Hoover
@zenweasel
Jul 31 2016 23:57
I can’t really read any of that
3Maestros
@3Maestros
Jul 31 2016 23:59
I20160731-16:52:49.019(-7)? 23:52:49.017Z  INFO Reaction: Modified 0 documents while importing 10 to Products
I20160731-16:52:49.019(-7)? 23:52:49.018Z  WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "eiWEKnhX8Exym8Kea" , ...}, the (immutable) field '_id' was found to have been altered to _id: "ngFgvLJ5RP4DGkxpJ"
I20160731-16:52:49.020(-7)? 23:52:49.018Z  WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "SMr4rhDFnYvFMtDTX" , ...}, the (immutable) field '_id' was found to have been altered to _id: "Cf5ysb8JaPCcdveZD"
I20160731-16:52:49.021(-7)? 23:52:49.018Z  WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "CJoRBm9vRrorc9mxZ" , ...}, the (immutable) field '_id' was found to have been altered to _id: "WmrMZ4HMLNXgNnvuA"
I20160731-16:52:49.021(-7)? 23:52:49.018Z  WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "eiWEKnhX8Exym8Kea" , ...}, the (immutable) field '_id' was found to have been altered to _id: "3Gq5w7SYyLCHFGmBo"
I20160731-16:52:49.024(-7)? 23:52:49.019Z  WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "eiWEKnhX8Exym8Kea" , ...}, the (immutable) field '_id' was found to have been altered to _id: "acB6breEgSJtKqa3N"
I20160731-16:52:49.025(-7)? 23:52:49.021Z  WARN Reaction: Error while importing to Products: After applying the update to the document {_id: "X7RHwBDEzJ2SkDvgT" , ...}, the (immutable) field '_id' was found to have been altered to _id: "ucTZc2i6XmrCvW78m"