Trouble during install (Step 6)

29 views
Skip to first unread message

Brian Weiner

unread,
Feb 10, 2011, 10:11:20 PM2/10/11
to r-node-users
Having trouble setting up.. Running Ubuntu Server 10.10

following the install instructions, everything seems to go smoothly
until I try to run. Same error if I 'sudo'

radmin@web:~/R/r-node/deploy$ ./run-server.sh
10 Feb 21:53:34 - (local): Cannot load configuration from 'etc/
config.js'. Trying second option 'etc/config-example.js'
10 Feb 21:53:34 - (local): Loaded configuration from 'etc/config-
example.js'
10 Feb 21:53:34 - (local): Using authenticator: 'None'
10 Feb 21:53:34 - (local): Loaded handler '/blurb'
10 Feb 21:53:34 - (local): Loaded handler '/download'
10 Feb 21:53:34 - (local): Loaded handler '/feedback'
10 Feb 21:53:34 - (local): Loaded handler '/help'
10 Feb 21:53:34 - (local): Loaded handler '/__info'
10 Feb 21:53:34 - (local): Loaded handler '/recent-changes.txt'
10 Feb 21:53:34 - (local): Loaded handler '/__preferences'
10 Feb 21:53:34 - (local): Loaded handler '/pager'

node.js:116
throw e; // process.nextTick error, or 'error' event on first
tick
^
Error: Cannot find module '../lib/multipart/multipart'
at Function._resolveFilename (module.js:289:11)
at Function._load (module.js:241:25)
at require (module.js:317:19)
at Object.<anonymous> (/home/radmin/R/r-node/server/handlers/400-r-
upload-via-web-service.js:24:15)
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 /home/radmin/R/r-node/server/r-node.js:92:17

Jamie Love

unread,
Feb 11, 2011, 4:08:59 AM2/11/11
to r-node...@googlegroups.com
Hiya Brian,

I tried it out today with the latest NodeJS, and found I was getting
the same. I suspect that the internal path mechanism for identifying
the current directory changed in the new NodeJS.

I pushed a fix to the gitorious repository to fix this.

Let me know if you have any other problems, and feedback is always good.

Ta
Jamie

--
Jamie Love
Looking for custom software development? Contact us at www.nsquaredsoftware.com.

Brian Weiner

unread,
Feb 11, 2011, 7:53:24 PM2/11/11
to r-node...@googlegroups.com
Hi Jamie,

Getting a similar response... I cloned the repository from gitorious and followed as before. NodeJS is 0.40, R is 2.12.1.

Is there any extra info I can get you that'd help?

radmin@web:~/.ssh/r-node/deploy$ ./run-server.sh
11 Feb 19:42:49 - (local): Global session ID: 98db0a6dd5d6a4523f0d36f9ad4c00babefa4dbbc93328c88ffe2fa1ba68813c
11 Feb 19:42:49 - (local): Cannot load configuration from 'etc/config.js'. Trying second option 'etc/config-example.js'
11 Feb 19:42:49 - (local): Loaded configuration from 'etc/config-example.js'
11 Feb 19:42:49 - (local): Using authenticator: 'None'
11 Feb 19:42:49 - (local): Loaded handler '/blurb'
11 Feb 19:42:49 - (local): Loaded handler '/download'
11 Feb 19:42:49 - (local): Loaded handler '/feedback'
11 Feb 19:42:49 - (local): Loaded handler '/help'
11 Feb 19:42:49 - (local): Loaded handler '/__info'
11 Feb 19:42:49 - (local): Loaded handler '/recent-changes.txt'
11 Feb 19:42:49 - (local): Loaded handler '/__preferences'
11 Feb 19:42:49 - (local): Loaded handler '/pager'

node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module '../../3rdparty/multipart'
    at Function._resolveFilename (module.js:289:11)
    at Function._load (module.js:241:25)
    at require (module.js:317:19)
    at Object.<anonymous> (/home/radmin/.ssh/r-node/server/handlers/400-r-upload-via-web-service.js:25:15)
    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 /home/radmin/.ssh/r-node/server/r-node.js:95:17

Jamie Love

unread,
Feb 14, 2011, 5:00:16 AM2/14/11
to r-node...@googlegroups.com
Hi Brian,

Thanks for your patience -

I've committed and pushed to the public repository a change that I
hope (this time!) will fix your problem.

The deploy directory was built using a set of soft links, and while
useful for rapid development, isn't actually great for deploying.

I've adjusted it to copy files into the deploy directory, which
hopefully will solve the problem on your system. After updating the
software code, please run (in the root directory of R-Node):

make clean
make

this'll rebuild the deployment directory.

If the server still doesn't run, please copy/paste the output in as
you've been doing - it is helpful.

Thanks
Jamie Love

Brian Weiner

unread,
Feb 14, 2011, 10:18:01 PM2/14/11
to r-node...@googlegroups.com
No luck :)


radmin@web:~/Documents/r-node/deploy$ sudo ./run-server.sh
14 Feb 22:16:49 - (local): Global session ID: 196efde2671350f81f2d93a0575243104a816d7186d629025d198bccb661ad9e
14 Feb 22:16:49 - (local): Cannot load configuration from 'etc/config.js'. Trying second option 'etc/config-example.js'
14 Feb 22:16:49 - (local): Loaded configuration from 'etc/config-example.js'
14 Feb 22:16:49 - (local): Using authenticator: 'None'
14 Feb 22:16:49 - (local): Loaded handler '/blurb'
14 Feb 22:16:49 - (local): Loaded handler '/download'
14 Feb 22:16:49 - (local): Loaded handler '/feedback'
14 Feb 22:16:49 - (local): Loaded handler '/help'
14 Feb 22:16:49 - (local): Loaded handler '/__info'
14 Feb 22:16:49 - (local): Loaded handler '/recent-changes.txt'
14 Feb 22:16:49 - (local): Loaded handler '/__preferences'
14 Feb 22:16:49 - (local): Loaded handler '/pager'
Dirname for r-upload-via-web-services: /home/radmin/Documents/r-node/deploy/handlers

node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: Cannot find module '../lib/multipart'
    at Function._resolveFilename (module.js:289:11)
    at Function._load (module.js:241:25)
    at require (module.js:317:19)
    at Object.<anonymous> (/home/radmin/Documents/r-node/deploy/handlers/400-r-upload-via-web-service.js:27:15)
    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 /home/radmin/Documents/r-node/deploy/r-node.js:95:17

Thanks for your help!
Brian

Jamie Love

unread,
Feb 16, 2011, 5:13:57 AM2/16/11
to r-node...@googlegroups.com
Hi there,

Strange things afoot - I copied the gitorious codebase anew, and it
started failing for me, despite there being absolutely no differences.

I've made a change to the code to try and fix it in a different way,
essentially by defining the complete path to the file in question,
rather than relying on nodejs's module lookup code - please try again.

Ta
Jamie

Brian Weiner

unread,
Feb 16, 2011, 8:57:03 AM2/16/11
to r-node...@googlegroups.com
Mission Accomplished!

I'm playing with it now... Your help was much appreciated!

Brian

Jamie Love

unread,
Feb 16, 2011, 2:22:20 PM2/16/11
to r-node...@googlegroups.com

Excellent to hear.

If you have any further problems or questions please ask.

Jamie

On 17/02/2011 2:57 AM, "Brian Weiner" <weiner...@gmail.com> wrote:

Mission Accomplished!

I'm playing with it now... Your help was much appreciated!

Brian



On Wed, Feb 16, 2011 at 5:13 AM, Jamie Love <drj...@gmail.com> wrote:
>
> Hi there,
>

> Strange t...

Reply all
Reply to author
Forward
0 new messages