MeteorJS MongoDB Deploy Error - mongodb

For some reason when I use Meteor deploy my server produces the following error and I am unable to access the pages. I'm running into the following error:
WARNING Error: No replica set primary available for query with
ReadPreference PRIMARY
I am using Meteor 1.1.0.2 and run meteor deploy x.meteor.com. The logs are then queried via meteor logs x.meteor.com. It was working up until recently.
Any help would be appreciated, the full meteor log output is below.
[Tue May 05 2015 20:50:15 GMT+0000 (UTC)] WARNING
/meteor/dev_bundles/0.4.18/lib/node_modules/fibers/future.js:245
throw(ex); [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] WARNING
^ [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] WARNING Error: No replica
set primary available for query with ReadPreference PRIMARY at
Object.Future.wait
(/meteor/dev_bundles/0.4.18/lib/node_modules/fibers/future.js:395:16)
at [object Object].MongoConnection._ensureIndex
(packages/mongo/mongo_driver.js:733:1) at [object
Object].Mongo.Collection._ensureIndex
(packages/mongo/collection.js:620:1) at Accounts.urls
(packages/accounts-base/accounts_server.js:1309:1) at
/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1616:4
at
/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1659:3
at
/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/boot.js:222:10
at Array.forEach (native) at Function..each..forEach
(/meteor/dev_bundles/0.4.18/lib/node_modules/underscore/underscore.js:79:11)
at
/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/boot.js:117:5
at [object Object].ReplSet.checkoutReader
(/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:613:14)
at Cursor.nextObject
(/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:748:48)
at Cursor.toArray
(/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:169:10)
at Db.indexInformation
(/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1629:39)
at Db.ensureIndex
(/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1496:8)
at Collection.ensureIndex
(/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/collection/index.js:68:11)
at [object Object].MongoConnection._ensureIndex
(packages/mongo/mongo_driver.js:732:1) at [object
Object].Mongo.Collection._ensureIndex
(packages/mongo/collection.js:620:1) at Accounts.urls
(packages/accounts-base/accounts_server.js:1309:1) at
/meteor/containers/93192c1f-5c41-157d-36a5-dceb494f7e2c/bundle/programs/server/packages/accounts-base.js:1616:4
[Tue May 05 2015 20:50:15 GMT+0000 (UTC)] INFO STATUS running ->
starting [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] ERROR Application
crashed with code: 8 [Tue May 05 2015 20:50:15 GMT+0000 (UTC)] NOTICE
Starting application on port 23497 [Tue May 05 2015 20:50:15 GMT+0000
(UTC)] INFO STATUS starting -> running

For future reference: This generally indicates an issue with the MongoDB and the driver being unable to connect.
Right at this very moment is seems numerous people are having this problem with their *.meteor.com applications. I would wait a bit and then try to redeploy.

Related

Installation of CDK fails when running the CDS-installer

As I want to get a bit of exposure to OpenShift, I decided to install the CDK on my machine. According to the documentation I started the installation. Everything is fine, but the CDK download/install fails.
Here are the lines from the log file:
Wed, 26 Jul 2017 07:52:20 GMT-ERROR: cdk failed to download: SHA256 checksum
verification failed
Wed, 26 Jul 2017 07:52:26 GMT-INFO: Restarting download
Wed, 26 Jul 2017 07:52:28 GMT-Configured
file='C:\Users\ALEXAN~1.MEN\AppData\Local\Temp\minishift_3_0_0_GA.exe'
sha256='4f51b5b6bc8fc93bda5d25f5f58f213a8165b6c0e0f2b77dbb53ae6da4966068'
Wed, 26 Jul 2017 07:52:28 GMT-ERROR: cdk failed to download: SHA256 checksum
verification failed
Wed, 26 Jul 2017 07:52:34 GMT-INFO: Restarting download
Wed, 26 Jul 2017 07:52:36 GMT-Configured
file='C:\Users\ALEXAN~1.MEN\AppData\Local\Temp\minishift_3_0_0_GA.exe'
sha256='4f51b5b6bc8fc93bda5d25f5f58f213a8165b6c0e0f2b77dbb53ae6da4966068'
Wed, 26 Jul 2017 07:52:36 GMT-ERROR: cdk failed to download: SHA256 checksum
verification failed
Wed, 26 Jul 2017 07:52:38 GMT-INFO: Restarting download
So I am grateful for any ideas what I am doing wrong.
Alternatively, how I can install the CDK manually.
I am running on a Win 10 machine with 16 GB memory, have Oracle JDK 1.8 installed and put the install below "Documents" as an installation in the C root will not work (IT sec restrictions)
It works now. maybe there was something wrong yesterday.

Can't start MAMP servers

i am unable to start servers, the 'start servers'-icon flashes green for a second and nothing happens. This is what i get in the apache_error log:
[Mon Dec 26 03:36:16 2016] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Dec 26 03:36:17 2016] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 26 03:36:17 2016] [notice] Digest: done
[Mon Dec 26 03:36:18 2016] [notice] Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2e mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.0.9 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations
[Mon Dec 26 03:36:18 2016] [notice] Server built: May 6 2016 10:19:53
[Mon Dec 26 03:36:18 2016] [crit] (22)Invalid argument: Parent: Failed to create the child process.
[Mon Dec 26 03:36:18 2016] [crit] (OS 6)Invalid reference. : master_main: create child process failed. Exiting.
I had the same problem on Windows 10 and disabling Perl worked for me:
C:\MAMP\conf\apache\httpd.conf
...
LoadModule perl_module modules/mod_perl.so
...
I hope this helps.

MeteorJS Mongo connection timed out

I have a MeteorJS app that is not connecting to Mongo. It's been deployed using meteor deploy but for some reason it times out when trying to connect to the database :S I can still access the mongo database using meteor mongo and all of the data is present!
I am using Meteor 0.9.3.1 and here are my packages:
standard-app-packages
insecure
underscore
arunoda:npm#0.2.6
mrt:bootstrap-3
http
iron:router
mrt:q#0.9.7
mrt:moment#2.8.1
mrt:twilio-meteor
email
Here are the logs from meteor logs :
[Thu Oct 16 2014 17:39:25 GMT+0000 (UTC)] INFO Exception in setInterval callback: MongoError: connection to [production-db-a3.meteor.io:27017] timed out
at Object.Future.wait (/meteor/dev_bundles/0.3.55/lib/node_modules/fibers/future.js:326:15)
at _.extend._nextObject (packages/mongo/mongo_driver.js:858)
at _.extend.forEach (packages/mongo/mongo_driver.js:892)
at _.extend.map (packages/mongo/mongo_driver.js:902)
at _.extend.fetch (packages/mongo/mongo_driver.js:926)
at Cursor.(anonymous function) [as fetch] (packages/mongo/mongo_driver.js:741)
at Object.residentModel.getActiveResidents (app/shared/collections/residents.js:43:40)
at Object._.extend._run (app/server/services/deviceService/sensorChangeWatchdog.js:6:39)
at app/lib/watchdogFactory.js:7:12
at _.extend.withValue (packages/meteor/dynamics_nodejs.js:56)
- - - - -
at Object.toError (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/utils.js:110:11)
at commandHandler (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/cursor.js:679:63)
at null.<anonymous> (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/db.js:1843:9)
at g (events.js:180:16)
at emit (events.js:98:17)
at Base.__executeAllServerSpecificErrorCallbacks (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/base.js:365:29)
at Server.<anonymous> (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/ha.js:445:10)
at Server.g (events.js:180:16)
at Server.emit (events.js:98:17)
at null.<anonymous> (/meteor/containers/450809a5-5a17-5e6e-8233-85e6ad895366/bundle/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:501:88)
[Thu Oct 16 2014 17:41:05 GMT+0000 (UTC)] INFO STATUS running -> killed
[Thu Oct 16 2014 17:41:05 GMT+0000 (UTC)] NOTICE Starting application on port 19159
[Thu Oct 16 2014 17:41:05 GMT+0000 (UTC)] INFO STATUS killed -> starting
[Thu Oct 16 2014 17:41:06 GMT+0000 (UTC)] INFO STATUS starting -> running
[Thu Oct 16 2014 17:41:07 GMT+0000 (UTC)] INFO init

Deploy to meteor.com fails with error "Cannot find module 'websocket-driver'"

When I deploy a Meteor app to meteor.com, it succeeds, but then the site displays the following error message: This site is down. Try again later.
See this very simple case: http://leaderboard666.meteor.com
My apps work locally, both in default and --production mode
The issue occurs both with default and --debug deployment
Nothing is displayed in the browser console
I work under Windows
Below is the complete log file:
[Fri Jun 13 2014 15:31:29 GMT+0000 (UTC)] NOTICE Starting application on port 10767
[Fri Jun 13 2014 15:31:29 GMT+0000 (UTC)] INFO STATUS null -> starting
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] WARNING /meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/boot.js:216
}).run();
^
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] WARNING Error: Cannot find module 'websocket-driver'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/npm/livedata/main/node_modules/sockjs/node_modules/faye-websocket/lib/faye/websocket.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] INFO STATUS running -> starting
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] ERROR Application crashed with code: 8
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] NOTICE Starting application on port 10767
[Fri Jun 13 2014 15:31:34 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] WARNING }).run();
^
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] WARNING /meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/boot.js:216
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] WARNING Error: Cannot find module 'websocket-driver'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/npm/livedata/main/node_modules/sockjs/node_modules/faye-websocket/lib/faye/websocket.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] ERROR Application crashed with code: 8
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] NOTICE Starting application on port 10767
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] INFO STATUS running -> starting
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] WARNING /meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/boot.js:216
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] WARNING }).run();
^
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] WARNING Error: Cannot find module 'websocket-driver'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/npm/livedata/main/node_modules/sockjs/node_modules/faye-websocket/lib/faye/websocket.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] INFO STATUS running -> waiting
[Fri Jun 13 2014 15:31:35 GMT+0000 (UTC)] ERROR Application crashed with code: 8
[Fri Jun 13 2014 15:31:48 GMT+0000 (UTC)] NOTICE Starting application on port 10767
[Fri Jun 13 2014 15:31:48 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Fri Jun 13 2014 15:31:48 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Jun 13 2014 15:31:49 GMT+0000 (UTC)] WARNING /meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/boot.js:216
[Fri Jun 13 2014 15:31:49 GMT+0000 (UTC)] WARNING }).run();
^
[Fri Jun 13 2014 15:31:49 GMT+0000 (UTC)] WARNING Error: Cannot find module 'websocket-driver'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/npm/livedata/main/node_modules/sockjs/node_modules/faye-websocket/lib/faye/websocket.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[Fri Jun 13 2014 15:31:49 GMT+0000 (UTC)] ERROR Application crashed with code: 8
[Fri Jun 13 2014 15:31:49 GMT+0000 (UTC)] INFO STATUS running -> waiting
[Fri Jun 13 2014 15:31:52 GMT+0000 (UTC)] INFO HIT / 82.245.42.131
[Fri Jun 13 2014 15:31:52 GMT+0000 (UTC)] INFO HIT /favicon.ico 82.245.42.131
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] NOTICE Starting application on port 10767
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] WARNING }).run();
^
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] WARNING /meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/boot.js:216
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] WARNING Error: Cannot find module 'websocket-driver'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/npm/livedata/main/node_modules/sockjs/node_modules/faye-websocket/lib/faye/websocket.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] ERROR Application crashed with code: 8
[Fri Jun 13 2014 15:32:16 GMT+0000 (UTC)] INFO STATUS running -> waiting
[Fri Jun 13 2014 15:32:36 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 82.245.42.131
[Fri Jun 13 2014 15:32:40 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 82.245.42.131
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] NOTICE Starting application on port 10767
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] INFO STATUS starting -> running
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] WARNING /meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/boot.js:216
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] WARNING }).run();
^
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] WARNING Error: Cannot find module 'websocket-driver'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/meteor/containers/83e8fbbc-3894-a4c1-2aae-42a599e5a110/bundle/programs/server/npm/livedata/main/node_modules/sockjs/node_modules/faye-websocket/lib/faye/websocket.js:8:14)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] INFO STATUS running -> waiting
[Fri Jun 13 2014 15:33:11 GMT+0000 (UTC)] ERROR Application crashed with code: 8
[Fri Jun 13 2014 15:33:32 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 82.245.42.131
[Fri Jun 13 2014 15:33:36 GMT+0000 (UTC)] INFO HIT /_GALAXY_ 82.245.42.131
Following investigation with #user3567351 it looks like the problem is due to long paths.
By inspecting the differences in the deployed bundle it looks like some files are silently ignored.
So for now (until the issue is fixed), please try deploying from a shorter path.

Meteor: Couldn't deploy

I deployed a site successfully a few days ago and was able to configure logins and do other stuff but today it is down. The strange thing is I deploy to a different location without any changes and now I couldn't even access the page to configure stuff. I don't really know how to debug these things. Here is the logs
[Wed Sep 11 2013 15:19:16 GMT+0000 (UTC)] INFO STATUS waiting -> starting
[Wed Sep 11 2013 15:19:16 GMT+0000 (UTC)] INFO STATUS starting -> running
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING timers.js:103
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING ^
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING if (!process.listeners('uncaughtException').length) throw e;
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] WARNING Error: Could not locate any valid servers in initial seed list
at MongoClient.connect.connectFunction (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/mongo_client.js:281:52)
at Db.open (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/db.js:267:16)
at Server.connect.connectionPool.on.server._serverState (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/connection/server.js:499:7)
at EventEmitter.emit (events.js:126:20)
at connection.on._self._poolState (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:168:15)
at EventEmitter.emit (events.js:99:17)
at Socket.timeoutHandler (/meteor/containers/6c32717b-367c-bd8f-b229-ad69088fe830/bundle/programs/server/npm/mongo-livedata/main/node_modules/mongodb/lib/mongodb/connection/connection.js:463:10)
at Socket.EventEmitter.emit (events.js:93:17)
at Socket._onTimeout (net.js:188:8)
at Timer.list.ontimeout (timers.js:101:19)
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] ERROR Application crashed with code: 1
[Wed Sep 11 2013 15:19:17 GMT+0000 (UTC)] INFO STATUS running -> waiting
Given the timing, looks like the very brief outage from this morning. Could you check it again and let me know if everything is back to normal?