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

Error message when running server. #220

Open
mhamlet opened this issue Feb 25, 2014 · 2 comments
Open

Error message when running server. #220

mhamlet opened this issue Feb 25, 2014 · 2 comments

Comments

@mhamlet
Copy link

mhamlet commented Feb 25, 2014

I have an error. It looks like something's wrong in config.js file.

When I'm running server.js, I get the following error:

TypeError: Cannot read property 'Collections' of undefined
at Object. (/home/hamlet/web/mbc-caspa/node_modules/mbc-common/models/iobackends.js:6:35)
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 Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/hamlet/web/mbc-caspa/node_modules/mbc-common/index.js:6:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
Error: ENOENT, open 'logs/general.log'

@mhamlet
Copy link
Author

mhamlet commented Feb 25, 2014

I'm fixed it, by changing line 109.

Before my change:
CONFIG_DIR = t._initParam('NODE_CONFIG_DIR', process.cwd() + '/config');

After my change:
CONFIG_DIR = t._initParam('NODE_CONFIG_DIR', process.cwd() + '/node_modules/mbc-common/config');

But i'm not sure, that this is the right way to fix the problem. Please, fix the bug yourself, if something is wrong.

@xaiki
Copy link
Member

xaiki commented Feb 25, 2014

On Tue, Feb 25 2014, [email protected] wrote:

I'm fixed it, by changing line 109.

Before my change:
CONFIG_DIR = t._initParam('NODE_CONFIG_DIR', process.cwd() + '/config');

After my change:
CONFIG_DIR = t._initParam('NODE_CONFIG_DIR', process.cwd() + '/node_modules/mbc-common/config');

But i'm not sure, that this is the right way to fix the problem. Please, fix the bug yourself, if something is wrong.

the mbc-playout repo does the symlinking, the right way to fix it is to
have the makefile handle the /config link if it doesn't exist.

patches are welcome ;)

cheers.

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

2 participants