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

Heroku start error #15

Open
ordiovince opened this issue Jul 21, 2016 · 0 comments
Open

Heroku start error #15

ordiovince opened this issue Jul 21, 2016 · 0 comments

Comments

@ordiovince
Copy link

Hi,

I am having some errors when trying to start the server on Heroku.
I followed the steps on the "Setup Server" page ("Nearly instant setup").

  1. I had an error trying to connect to MonogoDB. Fixed by adding the MONGOHQ_URL to the config vars (just copied the MONGODB_URI var).
  2. All the collections are now created but at startup I have the following error message:
2016-07-21T09:26:23.092196+00:00 heroku[web.1]: Starting process with command `node web.js`
2016-07-21T09:26:25.473398+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2016-07-21T09:26:26.821527+00:00 app[web.1]: Listening on 36678, env: production, local: false
2016-07-21T09:26:26.908267+00:00 app[web.1]: EXCEPTION: 
2016-07-21T09:26:27.735291+00:00 heroku[web.1]: Process exited with status 143
2016-07-21T09:26:27.473934+00:00 heroku[web.1]: State changed from starting to up
2016-07-21T09:26:29.142508+00:00 app[web.1]: { [MongoError: not authorized on heroku_mn3xtgkc to execute command { listCollections: true, filter: { name: "games" }, cursor: {} }]
2016-07-21T09:26:29.142520+00:00 app[web.1]:   name: 'MongoError',
2016-07-21T09:26:29.150835+00:00 app[web.1]:   name: 'MongoError',
2016-07-21T09:26:29.153312+00:00 app[web.1]:   ok: 0,
2016-07-21T09:26:29.153313+00:00 app[web.1]:   errmsg: 'not authorized on heroku_mn3xtgkc to execute command { listCollections: true, filter: { name: "playerlevel_levels" }, cursor: {} }',
2016-07-21T09:26:29.181467+00:00 app[web.1]:   connectionId: 58716,
2016-07-21T09:26:29.186617+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "playerlevel_levels", indexes: [ { key: { publickey: 1, date: -1 }, name: "publickey_1_date_-1", unique: false } ] }',
2016-07-21T09:26:29.193902+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.211962+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216331+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.216332+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.221342+00:00 app[web.1]: { [MongoError: not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }]
2016-07-21T09:26:29.221345+00:00 app[web.1]:   name: 'MongoError',
2016-07-21T09:26:29.221347+00:00 app[web.1]:   connectionId: 58719,
2016-07-21T09:26:29.221348+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }',
2016-07-21T09:26:29.221349+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.221349+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216332+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.221342+00:00 app[web.1]: { [MongoError: not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }]
2016-07-21T09:26:29.221345+00:00 app[web.1]:   name: 'MongoError',
2016-07-21T09:26:29.221346+00:00 app[web.1]:   lastOp: { _bsontype: 'Timestamp', low_: 0, high_: 0 },
2016-07-21T09:26:29.221348+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }',
2016-07-21T09:26:29.221349+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.221350+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216331+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.221342+00:00 app[web.1]: { [MongoError: not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }]
2016-07-21T09:26:29.221347+00:00 app[web.1]:   connectionId: 58719,
2016-07-21T09:26:29.221348+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }',
2016-07-21T09:26:29.221349+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.221349+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216331+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.216332+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.221342+00:00 app[web.1]: { [MongoError: not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }]
2016-07-21T09:26:29.221345+00:00 app[web.1]:   name: 'MongoError',
2016-07-21T09:26:29.221346+00:00 app[web.1]:   lastOp: { _bsontype: 'Timestamp', low_: 0, high_: 0 },
2016-07-21T09:26:29.221348+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }',
2016-07-21T09:26:29.221349+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.221349+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.221350+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216331+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.216332+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.221342+00:00 app[web.1]: { [MongoError: not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }]
2016-07-21T09:26:29.221346+00:00 app[web.1]:   lastOp: { _bsontype: 'Timestamp', low_: 0, high_: 0 },
2016-07-21T09:26:29.221348+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }',
2016-07-21T09:26:29.221349+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216331+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.221345+00:00 app[web.1]:   name: 'MongoError',
2016-07-21T09:26:29.221348+00:00 app[web.1]:   err: 'not authorized on heroku_mn3xtgkc to execute command { createIndexes: "achievements_players", indexes: [ { key: { publickey: 1, playerid: 1 }, name: "publickey_1_playerid_1", unique: false } ] }',
2016-07-21T09:26:29.221349+00:00 app[web.1]:   n: 0,
2016-07-21T09:26:29.221350+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.216330+00:00 app[web.1]:   code: 13,
2016-07-21T09:26:29.216332+00:00 app[web.1]:   ok: 1 }
2016-07-21T09:26:29.221345+00:00 app[web.1]:   name: 'MongoError'

I have zero knowledge on Mongo or Heroku, if you require more informations just ask and I will do my best to find what you need.

Thank you.

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

1 participant