These are chat archives for reactioncommerce/reaction

12th
Oct 2016
3Maestros
@3Maestros
Oct 12 2016 03:22 UTC
I need to restore by database from ec2 to digitalocean droplet , I tried mongodump and a mongorestore . But all dashboard items are appearing twice , my products are not showing .
Can anyone please help.
Brent Hoover
@zenweasel
Oct 12 2016 03:26 UTC
I think the issue with the dashboard items appearing twice is that they are getting restored from the backup and also being written out by the individual register.js files
what version of the code are you running?
3Maestros
@3Maestros
Oct 12 2016 03:27 UTC
yeah how do I resolve this ?
Brent Hoover
@zenweasel
Oct 12 2016 03:27 UTC
I’m not super familiar with mongoexport, does it allow you to include/exclude collections?
3Maestros
@3Maestros
Oct 12 2016 03:27 UTC
can I do a clean wipe out of DB and rstore?
yeah ..
Brent Hoover
@zenweasel
Oct 12 2016 03:28 UTC
so exclude the Packages collection
that gets created dynamically
3Maestros
@3Maestros
Oct 12 2016 03:28 UTC
what about the changes I have made to for ex : Shipping ?
Brent Hoover
@zenweasel
Oct 12 2016 03:29 UTC
I believe that’s in the Shipping collection
3Maestros
@3Maestros
Oct 12 2016 03:30 UTC
or is there a mode where I can say wipe everythign clean take all data from restore file?
Brent Hoover
@zenweasel
Oct 12 2016 03:30 UTC
I thought that was the default
even with that, you still need to exclude Packages
I’m trying to think if there is anything in there that you would need to preserve
3Maestros
@3Maestros
Oct 12 2016 03:32 UTC
not sure why clean start would still want me to exclude packages?
Brent Hoover
@zenweasel
Oct 12 2016 03:32 UTC
because the packages collection is created by code. So you will have a version in your backup and a version created by code.
3Maestros
@3Maestros
Oct 12 2016 03:33 UTC
on startup isn't there a check to skip package creation if there is already one ..
Brent Hoover
@zenweasel
Oct 12 2016 03:34 UTC
yeah, that’s a good point, it shouldn’t recreate it if it already exists
3Maestros
@3Maestros
Oct 12 2016 03:34 UTC
yeah...
Brent Hoover
@zenweasel
Oct 12 2016 03:35 UTC
—drop is the option you want I believe
"Before restoring the collections from the dumped backup, drops the collections from the target database. --drop does not drop collections that are not in the backup."
3Maestros
@3Maestros
Oct 12 2016 03:36 UTC
ok ...thanks let me explore .
Brent Hoover
@zenweasel
Oct 12 2016 03:37 UTC
in terms of the products not showing up, are you on development?
reactioncommerce/reaction#1488
3Maestros
@3Maestros
Oct 12 2016 03:38 UTC
no ..
I believe I am on the latest release from master ..
Karen
@karenlin2207
Oct 12 2016 03:40 UTC
how to resolve this problem ?Error invoking SubsManager.subscribe("Inventory"): Subscription 'Inventory' not found
layout.js:141 BlazeLayout warning: unknown template "coreLayout"
Brent Hoover
@zenweasel
Oct 12 2016 03:40 UTC
@3Maestros ok then, disregard
@karenlin2207 Are you on Heroku?
Karen
@karenlin2207
Oct 12 2016 03:41 UTC
on ubuntu
Brent Hoover
@zenweasel
Oct 12 2016 03:42 UTC
running it locally?
Karen
@karenlin2207
Oct 12 2016 03:42 UTC
yes
3Maestros
@3Maestros
Oct 12 2016 03:42 UTC
@zenweasel voila works like a charm!
thanks!
Brent Hoover
@zenweasel
Oct 12 2016 03:42 UTC
@3Maestros awesome
@karenlin2207 somehow your app is not getting built. Are you getting any errors at the server console?
Karen
@karenlin2207
Oct 12 2016 03:45 UTC
I don't get any errors
Brent Hoover
@zenweasel
Oct 12 2016 03:47 UTC
what does the output look like?
also can you do reaction -v?
Karen
@karenlin2207
Oct 12 2016 03:51 UTC
blob
like this
Brent Hoover
@zenweasel
Oct 12 2016 03:53 UTC
is there a reason you are not using the reaction command to run reaction?
Jeremy Shimko
@jshimko
Oct 12 2016 03:54 UTC
You need to use the reaction command. The plugin loader is a requirement.
Karen
@karenlin2207
Oct 12 2016 03:57 UTC
i will try this method
so this is because i'm not using the reaction command?
Jeremy Shimko
@jshimko
Oct 12 2016 03:58 UTC
possibly. half of the app won’t even get imported if you don’t use the plugin loader that is built into reaction-cli
Brent Hoover
@zenweasel
Oct 12 2016 03:58 UTC
there’s no guarantee it will work with that command, but it’s guaranteed to not work if you don’t use it
Jeremy Shimko
@jshimko
Oct 12 2016 03:59 UTC
The CLI makes that entire command you used above unnecessary. It does that exact same thing in a single word. And runs the required plugin loader.
Karen
@karenlin2207
Oct 12 2016 04:03 UTC
The problem is solved.thanks again.
Jeremy Shimko
@jshimko
Oct 12 2016 04:03 UTC
:thumbsup:
Дмитрий
@dilame
Oct 12 2016 21:26 UTC
Do you have demo ?
Brent Hoover
@zenweasel
Oct 12 2016 21:30 UTC
you can view the demo by just running the application locally