jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 245 forks source link

Startup on Fedora 19 #58

Closed TerryMooreII closed 10 years ago

TerryMooreII commented 10 years ago

Hey man its been a while since I have synced up or done a new NPM install.

In any case I just did a npm install mediacenterjs and then node server and I got this message. Any thoughts?

node server.js 
Starting server
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0

fs.js:821
  return binding.chmod(pathModule._makeLong(path), modeNum(mode));
                 ^
Error: ENOENT, no such file or directory './lib/database/mcjs.sqlite'
    at Object.fs.chmodSync (fs.js:821:18)
    at Object.<anonymous> (/home/motersho/tmp/node_modules/mediacenterjs/index.js:77:4)
    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 Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
Child process exited
jansmolders86 commented 10 years ago

Hej Terry,

Is the mcjs.sqlite file and the directory present? I automatically fix the file rights when the app starts, if the file is not present, this error could occur. I'll add an if to check if the file actually exists.

Thanks man. Jan

jansmolders86 commented 10 years ago

I've added the checks to see if the files exist and if no sqlite file exists, it will be created for you. Could you please let me know if this fixes it?

Thanks!

TerryMooreII commented 10 years ago

That fixed it.