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

Async: Method Waterfall missing #754

Closed
martinvogt1986 opened this issue Jun 3, 2012 · 9 comments
Closed

Async: Method Waterfall missing #754

martinvogt1986 opened this issue Jun 3, 2012 · 9 comments

Comments

@martinvogt1986
Copy link

/usr/src/etherpad-lite/src/node/server.js:59
async.waterfall([
^
TypeError: Object # has no method 'waterfall'
at Object. (/usr/src/etherpad-lite/src/node/server.js:59:7)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:32)
at Function._load (module.js:311:12)
at Array.0 (module.js:484:10)
at EventEmitter._tickCallback (node.js:190:39)

@0ip
Copy link
Member

0ip commented Jun 3, 2012

Branch?
How did you start Etherpad Lite?
Please give us more information.
Looks like async is not installed.

@fourplusone
Copy link
Contributor

Can you provide the output of the following commands (assuming you are in the etherpad-lite dir)

cd src;
node -e 'console.log(require("async"))' ;
cat node_modules/async/package.json | grep version

@martinvogt1986
Copy link
Author

root#:/usr/src/etherpad-lite/src# node -e 'console.log(require("async"))' ;
{}
root#:/usr/src/etherpad-lite/src# cat node_modules/async/package.json | grep version
"version": "0.1.18",

@martinvogt1986
Copy link
Author

cloned the repository with the following command about 30 minutes ago: git clone 'git://github.com/Pita/etherpad-lite.git'

If i start as root, for testing and evaluation i get the following...

/usr/src/etherpad-lite# bin/run.sh
You shouldn't start Etherpad-Lite as root!
Please type 'Etherpad Lite rocks my socks' if you still want to start it as root
Etherpad Lite rocks my socks
bin/run.sh: 16: [: Etherpad: unexpected operator
Ensure that all dependencies are up to date...
Ensure jQuery is downloaded and up to date...
Clear minfified cache...
ensure custom css/js files are created...
start...
[1970-01-01 00:05:03.770] [WARN] console - DirtyDB is used. This is fine for testing but not recommended for production.
[1970-01-01 00:05:08.287] [INFO] console - Your Etherpad Lite git version is e23da51
[1970-01-01 00:05:08.302] [INFO] console - Report bugs at https://github.com/Pita/etherpad-lite/issues

/usr/src/etherpad-lite/src/node/server.js:59
async.waterfall([
^
TypeError: Object # has no method 'waterfall'
at Object. (/usr/src/etherpad-lite/src/node/server.js:59:7)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:32)
at Function._load (module.js:311:12)
at Array.0 (module.js:484:10)
at EventEmitter._tickCallback (node.js:190:39)

@fourplusone
Copy link
Contributor

How about

ls -r no
cat node_modules/async/index.js
cat node_modules/async/lib/async.js
ls -R1 node_modules/async

(all in ./src)

@martinvogt1986
Copy link
Author

Host OS is Debian Wheezy

node --version: v0.6.18

@martinvogt1986
Copy link
Author

root@debian:/usr/src/etherpad-lite# cd src/
root@debian:/usr/src/etherpad-lite/src# ls -r no
ls: cannot access no: No such file or directory
root@debian:/usr/src/etherpad-lite/src# cat node_modules/async/index.js
root@debian:/usr/src/etherpad-lite/src# cat node_modules/async/lib/async.js
root@debian:/usr/src/etherpad-lite/src# ls -R1 node_modules/async
node_modules/async:
LICENSE
Makefile
README.md
index.js
lib
package.json

node_modules/async/lib:
async.js

@fourplusone
Copy link
Contributor

Looks something went wrong while installing async. In ./src, npm uninstall async might fix your problem (or try deleting the node_modules dir)

@martinvogt1986
Copy link
Author

a reinstallation of async fixed this issue

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

3 participants