I have small issue and I don't know where to start: I have application error and I think my MongoLab database is not connecting correctly.
Here is link to heroku w2w.
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
And here is my config.json file:
{
"siteName": "PencilBlue Heroku and MongoDB Demo",
"siteRoot": "http://w2w.herokuapp.com",
"siteIP": "w2w.herokuapp.com",
"log_level": "info",
"db": {
"type":"mongo",
"servers": [
"mongodb://hercules:[email protected]:63330/pencilbluedb"
],
"name": "pencilbluedb",
"authentication": {
"un": "hercules",
"pw": "MYPASSWORD",
},
"writeConern": 1
},
"cache": {
"fake": true,
"host": "localhost",
"port": 6379
},
"settings": {
"use_memory": true,
"use_cache": false
},
"templates": {
"use_memory": true,
"use_cache": false
},
"plugins": {
"caching": {
"use_memory": true,
"use_cache": false
}
}
}
I have no idea why it's not loading. I followed the instructions here: Pencilblue link, the only difference is that I'm trying to connect to MongoLab and they are suggesting MongoHQ (which has already been changed to "compose").
Any help would be appreciated.
Looks like the PencilBlue instructions do not have the db credentials as part of the mongodb connection string. Try leaving those out of the connection string and see if that fixes the problem. Just make sure you specify the credentials in the 'authentication' field which it looks like you are already doing.