These are chat archives for reactioncommerce/reaction

12th
Oct 2016
3Maestros
@3Maestros
Oct 12 2016 03:22
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
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
yeah how do I resolve this ?
Brent Hoover
@zenweasel
Oct 12 2016 03:27
I’m not super familiar with mongoexport, does it allow you to include/exclude collections?
3Maestros
@3Maestros
Oct 12 2016 03:27
can I do a clean wipe out of DB and rstore?
yeah ..
Brent Hoover
@zenweasel
Oct 12 2016 03:28
so exclude the Packages collection
that gets created dynamically
3Maestros
@3Maestros
Oct 12 2016 03:28
what about the changes I have made to for ex : Shipping ?
Brent Hoover
@zenweasel
Oct 12 2016 03:29
I believe that’s in the Shipping collection
3Maestros
@3Maestros
Oct 12 2016 03:30
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
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
not sure why clean start would still want me to exclude packages?
Brent Hoover
@zenweasel
Oct 12 2016 03:32
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
on startup isn't there a check to skip package creation if there is already one ..
Brent Hoover
@zenweasel
Oct 12 2016 03:34
yeah, that’s a good point, it shouldn’t recreate it if it already exists
3Maestros
@3Maestros
Oct 12 2016 03:34
yeah...
Brent Hoover
@zenweasel
Oct 12 2016 03:35
—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
ok ...thanks let me explore .
Brent Hoover
@zenweasel
Oct 12 2016 03:37
in terms of the products not showing up, are you on development?
reactioncommerce/reaction#1488
3Maestros
@3Maestros
Oct 12 2016 03:38
no ..
I believe I am on the latest release from master ..
Karen
@karenlin2207
Oct 12 2016 03:40
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
@3Maestros ok then, disregard
@karenlin2207 Are you on Heroku?
Karen
@karenlin2207
Oct 12 2016 03:41
on ubuntu
Brent Hoover
@zenweasel
Oct 12 2016 03:42
running it locally?
Karen
@karenlin2207
Oct 12 2016 03:42
yes
3Maestros
@3Maestros
Oct 12 2016 03:42
@zenweasel voila works like a charm!
thanks!
Brent Hoover
@zenweasel
Oct 12 2016 03:42
@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
I don't get any errors
Brent Hoover
@zenweasel
Oct 12 2016 03:47
what does the output look like?
also can you do reaction -v?
Karen
@karenlin2207
Oct 12 2016 03:51
blob
like this
Brent Hoover
@zenweasel
Oct 12 2016 03:53
is there a reason you are not using the reaction command to run reaction?
Jeremy Shimko
@jshimko
Oct 12 2016 03:54
You need to use the reaction command. The plugin loader is a requirement.
Karen
@karenlin2207
Oct 12 2016 03:57
i will try this method
so this is because i'm not using the reaction command?
Jeremy Shimko
@jshimko
Oct 12 2016 03:58
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
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
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
The problem is solved.thanks again.
Jeremy Shimko
@jshimko
Oct 12 2016 04:03
:thumbsup:
Дмитрий
@dilame
Oct 12 2016 21:26
Do you have demo ?
Brent Hoover
@zenweasel
Oct 12 2016 21:30
you can view the demo by just running the application locally