Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying default app error cyclic dependency detected #34

Closed
amaatouq opened this issue Jun 18, 2018 · 3 comments
Closed

Deploying default app error cyclic dependency detected #34

amaatouq opened this issue Jun 18, 2018 · 3 comments
Assignees

Comments

@amaatouq
Copy link
Member

Deploying the default Empirica App gives the following error:

2018-06-18 14:01:39-04:00/app/bundle/programs/server/node_modules/fibers/future.js:313
7mtnd
2018-06-18 14:01:39-04:00	throw(ex);
7mtnd
2018-06-18 14:01:39-04:00	^
7mtnd
2018-06-18 14:01:39-04:00
7mtnd
2018-06-18 14:01:39-04:00Error: cyclic dependency detected
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:331:34)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)
7mtnd
2018-06-18 14:01:39-04:00 at serializeObject (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:345:18)
7mtnd
2018-06-18 14:01:39-04:00 at serializeInto (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/bson/lib/bson/parser/serializer.js:934:17)

Details can be found on the Galaxy container.

@amaatouq
Copy link
Member Author

amaatouq commented Jun 18, 2018

Two thoughts from Automattic/mongoose#6109:

  • removing &retryWrites=true from the atlas URI fixes the problem
    • this is the solution I am following now.
  • they claim that the fundamental problem has to do with trying to create an index on _id

This fixes #32 too!

@amaatouq
Copy link
Member Author

At least we need to document this.

@npaton
Copy link
Contributor

npaton commented Jun 20, 2018

Yeah. I read the thread. I want to check where there might be an index on _id set. We do not do it in the code, but maybe in a third party library. It is unnecessary, _id always has an index automatically, not sure why anyone would do that. Otherwise if removing retryWrites works, that's fine with me. It's a relatively new feature in Mongo, and we've managed without reasonably well, I am not worried about not using it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants