mdoerk/seng513project

Error running server

Closed this issue · 6 comments

I have the latest repository and was trying to fix bugs in one of my features. However, im unable to run the server because of errors. I'm getting:

Your Database: is set up! You are good to go!!
[mansoorm@csc seng513project]$ node server.js
31 Mar 23:33:00 - config.js not found. Using default settings.

node.js:116
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'db_file' of undefined
at Object.getSetting (/home/uga/mansoorm/513/captcha_bugs/seng513project/node_modules/settings.js:48:17)
at Object. (/home/uga/mansoorm/513/captcha_bugs/seng513project/node_modules/dbAccess.js:24:27)
at Module._compile (module.js:373:26)
at Object..js (module.js:379:10)
at Module.load (module.js:305:31)
at Function._load (module.js:271:10)
at require (module.js:317:19)
at Object. (/home/uga/mansoorm/513/captcha_bugs/seng513project/node_modules/viewIssue.js:3:16)
at Module._compile (module.js:373:26)
at Object..js (module.js:379:10)

Already up-to-date.

anyone knows why it is doing that?
I've been getting a lot of errors lately. I think they are introduced when we remove the merge conflicts in the wrong way.

But you're right, there was a bug in settings (it shouldn't need to see a config.js, and should fall back to defaults). It was a 1 line bug fix, so I just pushed it to the mainline.. Try it now.

Hmm...still doesn't work. Looks like its coming from viewprofile, around line 30 (the if block isn't closed properly)

Dori, thanks for your help. It is still crashing on me. I'm calling it quits and will try it tomorrow morning. Hopefully it will work.
Something crazy is happening with all these commits going on! Last time I was able to run it, the server was crashing every time I'd try to login and then it worked later :s

Server runs now... someone fixed it. I'll close this.