HashtagSell / htsApp

HashtagSell Beta Application
0 stars 0 forks source link

hts-app out of load balancer - 503 error #115

Closed brozeph closed 9 years ago

brozeph commented 9 years ago

Copied from issue filed against posting-api:

Just pushed update to env.json and gruntfile so ensure production env is using facebook, twitter, ebay, braintree sandboxes and now we have 503 error in production.

https://github.com/HashtagSell/htsApp/commit/d72751084fc306d4fc2a29a647dfa72721f1b9fa

GET http://production.hashtagsell.com/favicon.ico 503 (Service Unavailable: Back-end server is at capacity)
brozeph commented 9 years ago

Error from logs:

GET / 200 1.696 ms - 22345
Error: Cannot determine state of server
    at canCheckoutWriter (/home/hashtagsell/hts-app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:736:13)
    at Server.checkoutWriter (/home/hashtagsell/hts-app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:752:16)
    at Collection.update (/home/hashtagsell/hts-app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/collection/core.js:651:63)
    at /home/hashtagsell/hts-app/node_modules/connect-mongo/lib/connect-mongo.js:275:20
    at MongoStore._get_collection (/home/hashtagsell/hts-app/node_modules/connect-mongo/lib/connect-mongo.js:156:21)
    at MongoStore.set (/home/hashtagsell/hts-app/node_modules/connect-mongo/lib/connect-mongo.js:274:12)
    at Session.save (/home/hashtagsell/hts-app/node_modules/express-session/session/session.js:71:25)
    at Session.save (/home/hashtagsell/hts-app/node_modules/express-session/index.js:327:15)
    at ServerResponse.end (/home/hashtagsell/hts-app/node_modules/express-session/index.js:285:21)
    at ReadStream.onend (_stream_readable.js:502:10)
    at ReadStream.g (events.js:180:16)
    at ReadStream.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickDomainCallback (node.js:492:13)
GET / 200 2.326 ms - 22345
Error: Cannot determine state of server
    at canCheckoutWriter (/home/hashtagsell/hts-app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:736:13)
    at Server.checkoutWriter (/home/hashtagsell/hts-app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:752:16)
    at Collection.update (/home/hashtagsell/hts-app/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/collection/core.js:651:63)
    at /home/hashtagsell/hts-app/node_modules/connect-mongo/lib/connect-mongo.js:275:20
    at MongoStore._get_collection (/home/hashtagsell/hts-app/node_modules/connect-mongo/lib/connect-mongo.js:156:21)
    at MongoStore.set (/home/hashtagsell/hts-app/node_modules/connect-mongo/lib/connect-mongo.js:274:12)
    at Session.save (/home/hashtagsell/hts-app/node_modules/express-session/session/session.js:71:25)
    at Session.save (/home/hashtagsell/hts-app/node_modules/express-session/index.js:327:15)
    at ServerResponse.end (/home/hashtagsell/hts-app/node_modules/express-session/index.js:285:21)
    at ReadStream.onend (_stream_readable.js:502:10)
    at ReadStream.g (events.js:180:16)
    at ReadStream.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickDomainCallback (node.js:492:13)
GET / 200 1.798 ms - 22345

/home/hashtagsell/hts-app/node_modules/mongoose/node_modules/mongodb/lib/server.js:228
        process.nextTick(function() { throw err; })
                                            ^
Error: connect ETIMEDOUT
    at errnoException (net.js:905:11)
    at Object.afterConnect [as oncomplete] (net.js:896:19)
[nodemon] app crashed - waiting for file changes before starting...
brozeph commented 9 years ago

Found source of the problem: the production-data security group in AWS was mis-configured

Assigning to @that1guy - did you make changes to this group in AWS recently?

that1guy commented 9 years ago

Ouch! Yes! I know what I did. So sorry!

On Friday, May 29, 2015, Joshua Thomas notifications@github.com wrote:

Found source of the problem: the production-data security group in AWS was mis-configured

Assigning to @that1guy https://github.com/that1guy - did you make changes to this group in AWS recently?

— Reply to this email directly or view it on GitHub https://github.com/HashtagSell/htsApp/issues/115#issuecomment-106860650.

HashtagSell.com p: 415.294.1981 e: brad.davis@hashtagsell.com