Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 400335

Summary: Server can't find orion.conf
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: NodeAssignee: Project Inbox <orion.server-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ken_walker
Version: 2.0   
Target Milestone: 2.0 RC1   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Mark Macdonald CLA 2013-02-08 11:42:19 EST
When you try to launch the server from a different working directory than the one the server is installed in, the orion.conf file cannot be found:

> kwalker$ node /Users/kwalker/node_modules/orion/server.js -w /Users/kwalker/Desktop/Workspace
> 
> /Users/kwalker/node_modules/orion/lib/args.js:135
> 			if (err) { throw err; }
> 			                 ^
> Error: ENOENT, open './orion.conf'
Comment 1 Mark Macdonald CLA 2013-02-08 11:43:00 EST
A look at the code suggests that the server is trying to open './orion.conf'. This is interpreted relative to the CWD, so it will not find the default orion.conf when your CWD is not the server directory. 

It should be doing something like this instead:

  path.join(__dirname, 'orion.conf')