Comments (27)
are you sure redis is running and accessible?
from haste-server.
I just did that, same error:
from haste-server.
Please pull latest, and re-run so we can see the full error
from haste-server.
How?
from haste-server.
$ git pull origin master
$ npm start
from haste-server.
Got this now:
from haste-server.
The relevant part of that screenshot is cut off
from haste-server.
from haste-server.
you need to run npm install
On Sun, Nov 24, 2013 at 12:13 PM, Matthijs [email protected] wrote:
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-29160127
.
from haste-server.
root@thezip:~/haste-server# npm install
npm http GET https://registry.npmjs.org/winston/0.6.2
npm http GET https://registry.npmjs.org/connect/1.9.2
npm http GET https://registry.npmjs.org/redis-url/0.1.0
npm http GET https://registry.npmjs.org/redis/0.8.1
npm http GET https://registry.npmjs.org/uglify-js/1.3.3
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/should
npm http 304 https://registry.npmjs.org/winston/0.6.2
npm http 304 https://registry.npmjs.org/connect/1.9.2
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/redis/0.8.1
npm http 304 https://registry.npmjs.org/should
npm http 304 https://registry.npmjs.org/redis-url/0.1.0
npm http 304 https://registry.npmjs.org/uglify-js/1.3.3
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/commander/2.0.0
npm http GET https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/jade/0.26.3
npm http GET https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/diff/1.0.7
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/glob/3.2.3
npm http 304 https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/commander/2.0.0
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/jade/0.26.3
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/diff/1.0.7
npm http 304 https://registry.npmjs.org/formidable
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http 304 https://registry.npmjs.org/glob/3.2.3
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/mkdirp/0.3.0
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
[email protected] node_modules/redis-url
[email protected] node_modules/should
[email protected] node_modules/redis
[email protected] node_modules/uglify-js
[email protected] node_modules/winston
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
[email protected] node_modules/connect
├── [email protected]
├── [email protected]
└── [email protected]
[email protected] node_modules/mocha
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
root@thezip:~/haste-server# npm start
[email protected] start /root/haste-server
node server.js
info: configuring redis
info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:7777
error: error connecting to redis index 2 error=Redis connection to 0.0.0.0:6379 failed - connect ECONNREFUSED
npm ERR! [email protected] start: node server.js
npm ERR! sh "-c" "node server.js"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the haste package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls haste
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab083.2
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /root/haste-server
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.1.71
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/haste-server/npm-debug.log
npm ERR! not ok code 0
root@thezip:~/haste-server#
from haste-server.
ECONNREFUSED means it cannot connect to a redis instance on 6379
make sure redis is running, and that you can connect to it with redis-cli
without issue
On Sun, Nov 24, 2013 at 12:16 PM, Matthijs [email protected] wrote:
root@thezip:~/haste-server# npm install
npm http GET https://registry.npmjs.org/winston/0.6.2
npm http GET https://registry.npmjs.org/connect/1.9.2
npm http GET https://registry.npmjs.org/redis-url/0.1.0
npm http GET https://registry.npmjs.org/redis/0.8.1
npm http GET https://registry.npmjs.org/uglify-js/1.3.3
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/should
npm http 304 https://registry.npmjs.org/winston/0.6.2
npm http 304 https://registry.npmjs.org/connect/1.9.2
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/redis/0.8.1
npm http 304 https://registry.npmjs.org/should
npm http 304 https://registry.npmjs.org/redis-url/0.1.0
npm http 304 https://registry.npmjs.org/uglify-js/1.3.3
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/cycle
npm http GET https://registry.npmjs.org/eyes
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/stack-trace
npm http GET https://registry.npmjs.org/commander/2.0.0
npm http GET https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/jade/0.26.3
npm http GET https://registry.npmjs.org/formidable
npm http GET https://registry.npmjs.org/diff/1.0.7
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/glob/3.2.3
npm http 304 https://registry.npmjs.org/cycle
npm http 304 https://registry.npmjs.org/eyes
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/commander/2.0.0
npm http 304 https://registry.npmjs.org/stack-trace
npm http 304 https://registry.npmjs.org/growl
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/jade/0.26.3
npm WARN package.json [email protected] No README.md file found!
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/diff/1.0.7
npm http 304 https://registry.npmjs.org/formidable
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http 304 https://registry.npmjs.org/glob/3.2.3
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/mkdirp/0.3.0
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/mkdirp/0.3.0
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
[email protected] node_modules/redis-url[email protected] node_modules/should
[email protected] node_modules/redis
[email protected] node_modules/uglify-js
[email protected] node_modules/winston
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected][email protected] node_modules/connect
├── [email protected]
├── [email protected]
└── [email protected][email protected] node_modules/mocha
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
root@thezip:~/haste-server# npm start[email protected] start /root/haste-server
node server.jsinfo: configuring redis
info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:7777
error: error connecting to redis index 2 error=Redis connection to
0.0.0.0:6379 failed - connect ECONNREFUSED
npm ERR! [email protected] start: node server.js
npm ERR! sh "-c" "node server.js" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the haste package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls haste
npm ERR! There is likely additional logging output above.npm ERR! System Linux 2.6.32-042stab083.2
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /root/haste-server
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.1.71
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/haste-server/npm-debug.log
npm ERR! not ok code 0—
Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-29160198
.
from haste-server.
When I do that, it says "Could not connect to Redis at 127.0.0.1:6379: Connection refused"
from haste-server.
yep - sounds like you don't have a redis-server running (or it's not running properly).
ECONNREFUSED == Connection refused
not sure what could be wrong with your redis server, but I won't be of much help with that :(
from haste-server.
Its running now , but I still got a error:
from haste-server.
What could be wrong there? Redis is running now..
from haste-server.
You're not in the right directory.
On Sun, Nov 24, 2013 at 12:44 PM, Matthijs [email protected] wrote:
What could be wrong there? Redis is running now..
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-29160926
.
from haste-server.
Woops, my bad.. I think it is running now:
info: configuring redis
info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:7777
info: connected to redis on 0.0.0.0:6379/2
debug: loaded static document success=true
from haste-server.
cool - glad to hear it :)
from haste-server.
I changed the port, and since then I can't get it back to work :/
root@thezip:~/haste-server# npm start
[email protected] start /root/haste-server
node server.js
info: configuring redis
info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:80
events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:770:11)
at HTTPServer.Server._listen2 (net.js:910:14)
at listen (net.js:937:10)
at Server.listen (net.js:994:9)
at dns.js:72:18
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
npm ERR! [email protected] start: node server.js
npm ERR! sh "-c" "node server.js"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the haste package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls haste
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab083.2
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /root/haste-server
npm ERR! node -v v0.8.20
npm ERR! npm -v 1.1.71
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/haste-server/npm-debug.log
npm ERR! not ok code 0
root@thezip:~/haste-server#
from haste-server.
You have something running on port 80 (probably apache or something)
from haste-server.
If I put it back to 7777 then I still get the same error
from haste-server.
And Apache isn't running
from haste-server.
The error says "Error: listen EADDRINUSE" - meaning the port (whichever) is already used by another application.
On port 7777 it might be the previous instance you started, and maybe never terminated successfully.
On port 80, it could be anything - apache, nginx, etc. Visit http://localhost in a browser and see what comes back
from haste-server.
Its running now on port 7777
I am using Apache, how can I do this:
hastebin.domain.com instead of domain.com:7777 ?
from haste-server.
You'd have to turn off apache or run it through apache (look up passthrough virtual hosts in apache). I can't provide much advice on that, apache docs could help you more.
Sent from my iPhone
On Nov 24, 2013, at 2:45 PM, Matthijs [email protected] wrote:
Its running now on port 7777
I am using Apache, how can I do this:
hastebin.domain.com instead of domain.com:7777 ?
—
Reply to this email directly or view it on GitHub.
from haste-server.
I get this error... anyone assist?
root@104:/var/www/mydroid/wiki/mediawiki/code# npm start
[email protected] start /var/www/mydroid/wiki/mediawiki/code
node server.js
info: configuring redis
info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:7777
error: error connecting to redis index 2 error=Redis connection to 0.0.0.0:6379 failed - connect ECONNREFUSED
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the haste package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls haste
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! cwd /var/www/mydroid/wiki/mediawiki/code
npm ERR! node -v v0.13.0-pre
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/mydroid/wiki/mediawiki/code/npm-debug.log
npm ERR! not ok code 0
from haste-server.
@davidjmorin looks like an issue connecting to redis - are you sure redis is running on the host and port you specified? check out redis-cli
for more details
from haste-server.
Related Issues (20)
- [QUESTION] what exactly is STORAGE_EXPIRE_SECONDS? HOT 2
- Add Font Awesome icons instead of the image thing. HOT 2
- Reopen request HOT 1
- Hastebin IPFS Support HOT 2
- Disable automatic closing of issues HOT 1
- self-hosted instace, buttons greyed out
- nginx config need help please HOT 1
- alpine image HOT 2
- Tried to host haste-server on a Plesk webspace, error occured HOT 2
- 503 error while post in /documents HOT 2
- daemonize haste-server HOT 3
- Important announcement: Soon a new version of Hastebin will be launched! HOT 15
- bun
- Haste server sends 413 for requests over 1mb
- Release containers in a public repo HOT 5
- Authentication failed (MongoDB) HOT 2
- pastebin HOT 1
- 1. Remove deprecation warning from existing trading-api hybrid websocket endpoint. HOT 3
- this lost almost all of the reasons why it was any good in the refactor. HOT 2
- zipped files too large failing to be retrieved with raw HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haste-server.