Open AceLine opened 11 years ago
My guess is that the problem is your npm uses "--mirror" with git clone, but your git version is too old to support it. I think in the case of npm it would be enough to change "--mirror" to "--bare", but I haven't tested it. The "--mirror" flag is defined in "lib/cache.js" of npm, easier way would be to upgrade the git client, though...
Hi, thnx. for your reply. I made an update to the latest git and git-core version I could get over apt-get install. The output now was bit different then before but:
npm install
npm http GET https://registry.npmjs.org/hiredis
npm http GET https://registry.npmjs.org/redis
npm http GET https://registry.npmjs.org/async
npm WARN git config --get remote.origin.url
returned wrong result (git://github.com/rs/mpns.git)
npm WARN git config --get remote.origin.url
returned wrong result (git://github.com/rs/node-gcm.git)
npm http GET https://registry.npmjs.org/netmask
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/should
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/apn/1.3.1
npm http GET https://registry.npmjs.org/c2dm/1.1.0
npm http 304 https://registry.npmjs.org/redis
npm http 304 https://registry.npmjs.org/hiredis
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/netmask
npm http 304 https://registry.npmjs.org/should
npm http 304 https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/apn/1.3.1
npm http 304 https://registry.npmjs.org/c2dm/1.1.0
npm http 304 https://registry.npmjs.org/async
npm WARN engine mpns@1.2.2: wanted: {"node":">= 0.5.0 <= 0.9.0"} (current: {"node":"v0.10.4","npm":"1.2.18"})
npm http GET https://registry.npmjs.org/retry
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/connect/2.7.5
npm http GET https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/cookie-signature/1.0.0
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/cookie/0.0.5
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.1.0
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/jade/0.26.3
npm http GET https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/diff/1.0.2
npm http GET https://registry.npmjs.org/ms/0.3.0
npm http GET https://registry.npmjs.org/mkdirp/0.3.3
npm http 200 https://registry.npmjs.org/retry
npm http GET https://registry.npmjs.org/retry/-/retry-0.6.0.tgz
npm http 304 https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/q/-/q-0.9.3.tgz
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http 200 https://registry.npmjs.org/connect/2.7.5
npm http GET https://registry.npmjs.org/connect/-/connect-2.7.5.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/cookie-signature/1.0.0
npm http GET https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.0.tgz
npm http 304 https://registry.npmjs.org/cookie/0.0.5
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http 304 https://registry.npmjs.org/fresh/0.1.0
npm http 304 https://registry.npmjs.org/methods/0.0.1
npm WARN package.json methods@0.0.1 No README.md file found!
npm http 304 https://registry.npmjs.org/send/0.1.0
npm http 304 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/jade/0.26.3
npm http GET https://registry.npmjs.org/jade/-/jade-0.26.3.tgz
npm http 200 https://registry.npmjs.org/diff/1.0.2
npm http GET https://registry.npmjs.org/diff/-/diff-1.0.2.tgz
npm http 200 https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/ms/0.3.0
npm http GET https://registry.npmjs.org/ms/-/ms-0.3.0.tgz
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz
npm http 304 https://registry.npmjs.org/mkdirp/0.3.3
npm http 200 https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/growl/-/growl-1.7.0.tgz
npm http 200 https://registry.npmjs.org/retry/-/retry-0.6.0.tgz
npm http 200 https://registry.npmjs.org/q/-/q-0.9.3.tgz
npm http 200 https://registry.npmjs.org/connect/-/connect-2.7.5.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.0.tgz
npm http 200 https://registry.npmjs.org/jade/-/jade-0.26.3.tgz
npm http 200 https://registry.npmjs.org/diff/-/diff-1.0.2.tgz
npm http 200 https://registry.npmjs.org/ms/-/ms-0.3.0.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz
npm http 200 https://registry.npmjs.org/growl/-/growl-1.7.0.tgz
hiredis@0.1.15 install /usr/local/src/pushd/node_modules/hiredis node-gyp rebuild
npm WARN package.json jade@0.26.3 No README.md file found!
Traceback (most recent call last):
File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp", line 15, in gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:415:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12)
gyp ERR! System Linux 2.6.26-2-686
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/src/pushd/node_modules/hiredis
gyp ERR! node -v v0.10.4
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! hiredis@0.1.15 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the hiredis@0.1.15 install script.
npm ERR! This is most likely a problem with the hiredis package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls hiredis
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.26-2-686 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! cwd /usr/local/src/pushd npm ERR! node -v v0.10.4 npm ERR! npm -v 1.2.18 npm ERR! code ELIFECYCLE npm http GET https://registry.npmjs.org/mkdirp/0.3.0 npm http GET https://registry.npmjs.org/mime/1.2.6 npm http GET https://registry.npmjs.org/bytes/0.2.0 npm http GET https://registry.npmjs.org/buffer-crc32/0.1.1 npm http GET https://registry.npmjs.org/qs/0.5.1 npm http GET https://registry.npmjs.org/formidable/1.0.11 npm http GET https://registry.npmjs.org/pause/0.0.1 npm http 200 https://registry.npmjs.org/mkdirp/0.3.0 npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz npm http 304 https://registry.npmjs.org/formidable/1.0.11 npm http 304 https://registry.npmjs.org/mime/1.2.6 npm http 304 https://registry.npmjs.org/pause/0.0.1 npm http 304 https://registry.npmjs.org/buffer-crc32/0.1.1 npm http 304 https://registry.npmjs.org/qs/0.5.1 npm http 200 https://registry.npmjs.org/bytes/0.2.0 npm http GET https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz npm http 200 https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /usr/local/src/pushd/npm-debug.log npm ERR! not ok code 0
Please give me a detailed hint to the right direction to solve this problem... I'm very much in need of pushd.
Thnx. in advance,
AceLine
Probably an old Python version, multiprocessing module was introduced in Python 2.6. You could upgrade python as well, or alternatively try to get http://code.google.com/p/python-multiprocessing/ from somewhere.
Unfortunately Node.js doesn't mix very well with old systems. :)
Hi again,
thnx. for reply. I updated git to 2.7 and it worked like a charm. so good. Although I have one last problem now:
Registering push service: event-source Registering push service: apns Registering push service: gcm Registering push service: http Registering push service: mpns-toast Registering push service: mpns-tile Listening on tcp port 8085 Listening on udp port 8085
events.js:72
throw er; // Unhandled 'error' event
^
Error: Redis connection to 127.0.0.1:/var/run/redis/redis.sock failed - connect ENOENT
at RedisClient.on_error (/usr/local/src/pushd/node_modules/redis/index.js:151:24)
at Socket.
The only thing I changed btw. added in the settings.coffee was the google api-key....
Please tell me if you know a very detailed tutorial or how to to get to know step by step how to configure settings.coffee or at all "how to install, configure and get up and running pushd".
Thank you so much for your patience,
best regards,
AceLine
Is you Redis server running?
Yes it is running...
Try to comment out redis_socket and uncomment redis_port and redis_host.
Did the last comment fix your issue? It would be polite to close the issue if it did.
I was seeing the same issue as reported by AceLine - the suggestion to "comment out redis_socket and uncomment redis_port and redis_host" solved the issue for me. Thanks.
Cool, I will make a patch that changes the settings-sample.coffee to be less confusing.
Hi,
I tried to install Pushd on Debian Squeeze but it failed. The whole output of installation process was:
npm install
npm http GET https://registry.npmjs.org/redis npm http GET https://registry.npmjs.org/netmask npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/mocha npm http GET https://registry.npmjs.org/should npm http GET https://registry.npmjs.org/hiredis npm http GET https://registry.npmjs.org/apn/1.3.1 npm http GET https://registry.npmjs.org/c2dm/1.1.0 npm http GET https://registry.npmjs.org/express npm ERR! git clone git://github.com/rs/node-gcm.git error: unknown option []
npm ERR! git clone git://github.com/rs/mpns.git
npm ERR! git clone git://github.com/rs/mpns.git -q, --quiet be quiet
npm ERR! git clone git://github.com/rs/mpns.git -n, --no-checkout don't create a checkout
npm ERR! git clone git://github.com/rs/mpns.git --bare create a bare repository
npm ERR! git clone git://github.com/rs/mpns.git --naked create a bare repository
npm ERR! git clone git://github.com/rs/mpns.git -l, --local to clone from a local repository
npm ERR! git clone git://github.com/rs/mpns.git --no-hardlinks don't use local hardlinks, always copy
npm ERR! git clone git://github.com/rs/mpns.git -s, --shared setup as shared repository
npm ERR! git clone git://github.com/rs/mpns.git --template path the template repository
npm ERR! git clone git://github.com/rs/mpns.git --reference reference repository
npm ERR! git clone git://github.com/rs/mpns.git -o, --origin
npm ERR! git clone git://github.com/rs/mpns.git use instead or 'origin' to track upstream
npm ERR! git clone git://github.com/rs/mpns.git -u, --upload-pack
npm ERR! git clone git://github.com/rs/mpns.git path to git-upload-pack on the remote
npm ERR! git clone git://github.com/rs/mpns.git --depth create a shallow clone of that depth
npm ERR! Error: (/usr/local/lib/node_modules/npm/lib/utils/exec.js:59:20)
npm ERR! at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:730:16)
npm ERR! at Socket. (child_process.js:943:11)
npm ERR! at Socket.EventEmitter.emit (events.js:95:17)
npm ERR! at Pipe.close (net.js:451:12)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
mirror' npm ERR! git clone git://github.com/rs/node-gcm.git usage: git-clone [options] [--] <repo> [<dir>] npm ERR! git clone git://github.com/rs/node-gcm.git npm ERR! git clone git://github.com/rs/node-gcm.git -q, --quiet be quiet npm ERR! git clone git://github.com/rs/node-gcm.git -n, --no-checkout don't create a checkout npm ERR! git clone git://github.com/rs/node-gcm.git --bare create a bare repository npm ERR! git clone git://github.com/rs/node-gcm.git --naked create a bare repository npm ERR! git clone git://github.com/rs/node-gcm.git -l, --local to clone from a local repository npm ERR! git clone git://github.com/rs/node-gcm.git --no-hardlinks don't use local hardlinks, always copy npm ERR! git clone git://github.com/rs/node-gcm.git -s, --shared setup as shared repository npm ERR! git clone git://github.com/rs/node-gcm.git --template <path> path the template repository npm ERR! git clone git://github.com/rs/node-gcm.git --reference <repo> reference repository npm ERR! git clone git://github.com/rs/node-gcm.git -o, --origin <branch> npm ERR! git clone git://github.com/rs/node-gcm.git use <branch> instead or 'origin' to track upstream npm ERR! git clone git://github.com/rs/node-gcm.git -u, --upload-pack <path> npm ERR! git clone git://github.com/rs/node-gcm.git path to git-upload-pack on the remote npm ERR! git clone git://github.com/rs/node-gcm.git --depth <depth> create a shallow clone of that depth npm http GET https://registry.npmjs.org/coffee-script npm ERR! git clone git://github.com/rs/mpns.git error: unknown option
mirror' npm ERR! git clone git://github.com/rs/mpns.git usage: git-clone [options] [--]git "clone" "--mirror" "git://github.com/rs/node-gcm.git" "/root/.npm/_git-remotes/git-github-com-rs-node-gcm-git-3012d575"
failed with 129 npm ERR! at ChildProcess.npm ERR! System Linux 2.6.26-2-686 npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! cwd /usr/local/src/pushd npm ERR! node -v v0.10.4 npm ERR! npm -v 1.2.18 npm http 200 https://registry.npmjs.org/netmask npm http GET https://registry.npmjs.org/netmask/-/netmask-0.0.2.tgz npm http 200 https://registry.npmjs.org/mocha npm http GET https://registry.npmjs.org/mocha/-/mocha-1.9.0.tgz npm http 200 https://registry.npmjs.org/should npm http GET https://registry.npmjs.org/should/-/should-1.2.2.tgz npm http 200 https://registry.npmjs.org/hiredis npm http GET https://registry.npmjs.org/hiredis/-/hiredis-0.1.15.tgz npm http 304 https://registry.npmjs.org/express npm http 200 https://registry.npmjs.org/redis npm http 200 https://registry.npmjs.org/apn/1.3.1 npm http GET https://registry.npmjs.org/express/-/express-3.1.2.tgz npm http GET https://registry.npmjs.org/apn/-/apn-1.3.1.tgz npm http GET https://registry.npmjs.org/redis/-/redis-0.8.3.tgz npm http 200 https://registry.npmjs.org/c2dm/1.1.0 npm http GET https://registry.npmjs.org/c2dm/-/c2dm-1.1.0.tgz npm http 304 https://registry.npmjs.org/coffee-script npm http GET https://registry.npmjs.org/coffee-script/-/coffee-script-1.2.0.tgz npm http 200 https://registry.npmjs.org/netmask/-/netmask-0.0.2.tgz npm http 200 https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/async/-/async-0.2.7.tgz npm http 200 https://registry.npmjs.org/mocha/-/mocha-1.9.0.tgz npm http 200 https://registry.npmjs.org/should/-/should-1.2.2.tgz npm http 200 https://registry.npmjs.org/apn/-/apn-1.3.1.tgz npm http 200 https://registry.npmjs.org/hiredis/-/hiredis-0.1.15.tgz npm http 200 https://registry.npmjs.org/express/-/express-3.1.2.tgz npm http 200 https://registry.npmjs.org/redis/-/redis-0.8.3.tgz npm http 200 https://registry.npmjs.org/c2dm/-/c2dm-1.1.0.tgz npm http 200 https://registry.npmjs.org/coffee-script/-/coffee-script-1.2.0.tgz npm http 200 https://registry.npmjs.org/async/-/async-0.2.7.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /usr/local/src/pushd/npm-debug.log npm ERR! not ok code 0
Hope you - ore anybody - can help me out.
Best regards,
AceLine