These are chat archives for reactioncommerce/reaction

8th
May 2017
Nathan Aherne
@nathanaherne
May 08 2017 01:30
Hi everyone, when I install the basic version of reaction (the one documented on the docker image site) and go to the www page for the reaction shop, I get the error "Unknown Path". Is someone able to help me track down what is going wrong please?
Janus Reith
@janus-reith
May 08 2017 07:23
Is there any documentation on the required specs to run an instance of reaction in production?
Im not sure what exactöy to tell a client which server specs are sufficient
also, how much space the db could need at which amount of users and products
sean
@niceSpriteSW_twitter
May 08 2017 09:45
ANYONE had this Error while deploying / running ? MongoError: no valid replicaset members found
Brent Hoover
@zenweasel
May 08 2017 09:46
No, but I am not usually running a replicaset
Are you intentionally trying to run a replicaset?
sean
@niceSpriteSW_twitter
May 08 2017 09:49
Yes I think so there are three shards in the cluster, im using a mongo db from the mongo atlas thing. Im new to mongo...
maybe they are just 3 nodes ?
not really sure on the terminology yet
Brent Hoover
@zenweasel
May 08 2017 09:51
Yeah. You should just need three instances, a primary and two secondaries
I have not used the Mongo Atlas
but all it needs is the connection info for the secondaries and any authentification info
at what point are you getting that error?
sean
@niceSpriteSW_twitter
May 08 2017 09:54
when i call 'reaction run' i get the error locally, it also fails on my docker deployment in the cloud. The connection URL is generated by mongo, and I can use the mongo software (compass) to connect from my pc sucessfully. Reaction has created some tables in mongo as well.
'''
Brent Hoover
@zenweasel
May 08 2017 09:55
You are passing a mongo URL to your local version?
Are you trying to run a replicate set locally as well?
sean
@niceSpriteSW_twitter
May 08 2017 09:56
yes on windows it is set as an Environment variable, I can see it makes the connection okay
Docker container quit unexpectedly on Mon May  8 09:37:50 UTC 2017:
=> Starting app on port 3000...

/opt/reaction/dist/bundle/programs/server/node_modules/fibers/future.js:313
                        throw(ex);
                        ^
MongoError: no valid replicaset members found
    at Object.Future.wait (/opt/reaction/dist/bundle/programs/server/node_modules/fibers/future.js:449:15)
    at packages/meteor.js:213:24
    at new FS.StorageAdapter (packages/cfs_storage-adapter.js:293:42)
    at new FS.Store.GridFS (packages/cfs:gridfs/gridfs.server.js:48:10)
    at meteorInstall.lib.collections.collectionFS.js (lib/collections/collectionFS.js:22:29)
    at fileEvaluate (packages/modules-runtime.js:197:9)
    at Module.require (packages/modules-runtime.js:120:16)
    at Module.Mp.importSync (/opt/reaction/dist/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:82:24)
    at meteorInstall.lib.collections.index.js (lib/collections/index.js:1:1)
    at fileEvaluate (packages/modules-runtime.js:197:9)
    at Module.require (packages/modules-runtime.js:120:16)
    at Module.Mp.importSync (/opt/reaction/dist/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:82:24)
    at meteorInstall.lib.api.catalog.js (lib/api/catalog.js:1:1)
    at fileEvaluate (packages/modules-runtime.js:197:9)
    at Module.require (packages/modules-runtime.js:120:16)
    at Module.Mp.importSync (/opt/reaction/dist/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime.js:82:24)
    - - - - -
    at [object Object].<anonymous> (/opt/reaction/dist/bundle/programs/server/npm/node_modules/meteor/cfs_gridfs/node_modules/mongodb-core/lib/topologies/replset.js:645:33)
    at Timer.listOnTimeout (timers.js:92:15)
Brent Hoover
@zenweasel
May 08 2017 09:56
what is the URL you are passing to Reaction?
sean
@niceSpriteSW_twitter
May 08 2017 09:57

mongodb://admin:MYPASSWORD@cluster0-shard-00-00-aty7n.mongodb.net:27017,cluster0-shard-00-01-aty7n.mongodb.net:27017,cluster0-shard-00-02-aty7n.mongodb.net:27017/Cluster0?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin
Brent Hoover
@zenweasel
May 08 2017 09:57
there’s nothing RC-specific there, RC doesn’t know whether you have a replicaset or not
sean
@niceSpriteSW_twitter
May 08 2017 09:58
is it meteor level ? do you think or lower down ?
maybe i can switch replica sets off somewhere ?
Brent Hoover
@zenweasel
May 08 2017 09:58
Seems like a straight-ahead Mongo configuration error
The replica set should be running and be available from the command-line
Can you connect to it with a client or the CLI?
sean
@niceSpriteSW_twitter
May 08 2017 10:01
yes i can connect okay and i can see some collections from meteor
at the end of the url for mongo it says something about 'replicaSet'
&replicaSet=Cluster0-shard-0
but that looks truncated to me ? is that normal ?
Brent Hoover
@zenweasel
May 08 2017 10:06
The docs just say you should specify the “name of the replica set”.
That doesn’t look like the name of the replica set, but I don’t know for sure
sean
@niceSpriteSW_twitter
May 08 2017 10:12
okay ill keep looking, i have come across ENV variable >> MONGO_OPLOG_URL
Is that relevant to anything ?
Brent Hoover
@zenweasel
May 08 2017 10:13
You do need it to run Meteor, but I don’t think it’s relevant to your problem. Oplog is what Meteor uses to detect changes to the DB
is there a reason you are running a replica set to develop locally?
sean
@niceSpriteSW_twitter
May 08 2017 10:17
i am just using whatever mongo atlas gave me ? i want to get it running on AWS but it keep crashing with the same error
Brent Hoover
@zenweasel
May 08 2017 10:17
I think that link might be helpful as it goes into the whole set up
just meant you could be using the included default Mongo DB instance locally for development. Do you have a site you are trying to deploy?
sean
@niceSpriteSW_twitter
May 08 2017 10:22
not yet, im trying to setup a custom site on a multi server deployment on AWS, but its just a test to see if it's worth using reaction.
Brent Hoover
@zenweasel
May 08 2017 10:23
I see
sean
@niceSpriteSW_twitter
May 08 2017 10:25
i have never used node or mongo, so im just cluelessly hacking
Brent Hoover
@zenweasel
May 08 2017 10:27
So, if you just start Reaction it will use it’s own local version of Mongo and there’s nothing to set up. I guess I don’t understand why you want to set up a replica set to just evaluate RC
sean
@niceSpriteSW_twitter
May 08 2017 10:33
oh its because i want to evaluate deployment, the replica set is really for the cloud, but the AWS servers take ages to start up with docker, so I want to test the db connection locally. I'm just breaking down a very big problem in to small steps and doing each part locally first then cloud.
Brent Hoover
@zenweasel
May 08 2017 10:34
I see
sean
@niceSpriteSW_twitter
May 08 2017 12:23
@zenweasel just to let you know , i got it working okay on a single mongodb with mLab.com it just doesn't work with the multi node setup from atlas. ??
Brent Hoover
@zenweasel
May 08 2017 12:51
I know it works with replica sets because we run all our own instances with replica sets. Not sure what’s weird about the atlas stuff
Daniel Honig
@dhonig
May 08 2017 18:37
Using a replicaset shouldn't change how it connects
Sophie He
@sophiehe
May 08 2017 19:23
Hi all! We just launched a donation campaign in support of net neutrality. Star us on GitHub and we will donate $5 to the Electronic Frontier Foundation, from now until 5/22. More info: https://blog.reactioncommerce.com/stand-up-for-net-neutrality/
Daniel Honig
@dhonig
May 08 2017 19:24
@sophiehe saw the email blast. very cool.
Sophie He
@sophiehe
May 08 2017 19:30
@dhonig :-D
Aaron Judd
@aaronjudd
May 08 2017 21:55
@niceSpriteSW_twitter you’ll also want to look at how OPLOG is setup with Atlas, you’ll want that enabled.
Flavio H Freitas
@flaviohenriquecbc
May 08 2017 23:08

Hey, guys!! I have just written another article about Javascript. Let me know what you think :wink:

https://medium.com/@flaviohfreitas/javascript-save-time-by-avoiding-re-writing-these-common-functions-266835c0bf68