IPS-LMU / IPS-EMUprot-nodeWSserver

0 stars 1 forks source link

Missing in docs? cert file needed #7

Open FredrikKarlssonSpeech opened 6 years ago

FredrikKarlssonSpeech commented 6 years ago

I believe that the documentation will have to be extended with information regarding the cert files needed. Where do they go and how do get/generate them?

$ npm install

> dtrace-provider@0.8.5 install /Users/frkkan96/Documents/GitHub/IPS-EMUprot-nodeWSserver/node_modules/dtrace-provider
> node scripts/install.js

> dtrace-provider@0.7.1 install /Users/frkkan96/Documents/GitHub/IPS-EMUprot-nodeWSserver/node_modules/ldapjs/node_modules/dtrace-provider
> node scripts/install.js

> sqlite3@3.1.13 install /Users/frkkan96/Documents/GitHub/IPS-EMUprot-nodeWSserver/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

[sqlite3] Success: "/Users/frkkan96/Documents/GitHub/IPS-EMUprot-nodeWSserver/node_modules/sqlite3/lib/binding/node-v59-darwin-x64/node_sqlite3.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN IPS-EMUprot-nodeWSserver No description
npm WARN IPS-EMUprot-nodeWSserver No repository field.
npm WARN IPS-EMUprot-nodeWSserver No license field.

added 184 packages in 31.295s
MacBook-Air:IPS-EMUprot-nodeWSserver frkkan96$ node IPS-EMUprot-nodeWSserver.js server_config.json | node_modules/bunyan/bin/bunyan
[2018-01-08T08:10:47.214Z]  INFO: nodeEmuWS/9968 on MacBook-Air.local: starting server...
fs.js:663
  return binding.open(pathModule.toNamespacedPath(path),
                 ^

Error: ENOENT: no such file or directory, open 'certs/noPwdServer.key'
    at Object.fs.openSync (fs.js:663:18)
    at Object.fs.readFileSync (fs.js:568:33)
    at /Users/frkkan96/Documents/GitHub/IPS-EMUprot-nodeWSserver/IPS-EMUprot-nodeWSserver.js:230:12
    at Object.<anonymous> (/Users/frkkan96/Documents/GitHub/IPS-EMUprot-nodeWSserver/IPS-EMUprot-nodeWSserver.js:1378:2)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
raphywink commented 6 years ago

This: https://github.com/IPS-LMU/IPS-EMUprot-nodeWSserver/blob/master/IPS-EMUprot-nodeWSserver.js#L1 should probably be moved to the README.md file.

On a side note: Sorry that I have not been replying to any of your issues btw. This is my first day back at the office after my xmas break. I'll try to get around to addressing your issues/pull requests over the next couple of days (can't promise anything as we have quite a few deadlines in January but I'll try my best)...

FredrikKarlssonSpeech commented 6 years ago

No worries. I set myself the task of learning the system. And since this is not a bad way of being able to provide an outside view of things and be the human tester, I will continue asking questions + providing suggested fixes. Finding potential issues takes less time than repairing them (or providing an answer) so please don't feel stressed by my activities.