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

cannot not start CouchDB when the path contains a space #130

Open
gr2m opened this issue Jun 29, 2014 · 5 comments
Open

cannot not start CouchDB when the path contains a space #130

gr2m opened this issue Jun 29, 2014 · 5 comments

Comments

@gr2m
Copy link
Contributor

gr2m commented Jun 29, 2014

issue submitted by @ssp, moved from hoodiehq/hoodie#324


When hoodie is run in a location where any of the superfolders has a name including a space, it fails to start CouchDB (after 20 seconds of trying):

~  mkdir "foo bar"~  cd foo\ bar 
➜  foo bar  hoodie new test   

.d$b.  .d$b.  .d$$$$$$b.    .d$$$$$$b.  .d$$$$$$b.  .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P'  'Q$P'  'Q$$$$$$P'    'Q$$$$$$P'  'Q$$$$$$$P  'Q$P''Q$$$$$$$$P'

Version: 0.4.14 (node v0.10.28, npm 1.4.13, platform: darwin)

[hoodie] preparing test ...
[hoodie] Updated package.json
[hoodie] fetching npm dependencies
[hoodie] removing .git folder
[hoodie] created project at /Users/ssp/foo bar/test
[hoodie] Installed all dependencies

You can now start using your hoodie app

  cd test
  hoodie start

➜  foo bar  cd test
➜  test  hoodie start

.d$b.  .d$b.  .d$$$$$$b.    .d$$$$$$b.  .d$$$$$$b.  .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P'  'Q$P'  'Q$$$$$$P'    'Q$$$$$$P'  'Q$$$$$$$P  'Q$P''Q$$$$$$$$P'

Version: 0.4.14 (node v0.10.28, npm 1.4.13, platform: darwin)

Initializing...
CouchDB started: http://127.0.0.1:6012
Waiting for CouchDB [---*--] FAILED 

ERR! Error: Timed out waiting for CouchDB. These logs may help:
ERR!    /Users/ssp/foo bar/test/data/couch.stderr
ERR!    /Users/ssp/foo bar/test/data/couch.stdout
ERR!    /Users/ssp/foo bar/test/data/couch.log
ERR!     at Request._callback (/Users/ssp/foo bar/test/node_modules/hoodie-server/lib/couchdb/index.js:145:27)
ERR!     at self.callback (/Users/ssp/foo bar/test/node_modules/hoodie-server/node_modules/request/request.js:121:22)
ERR!     at Request.EventEmitter.emit (events.js:95:17)
ERR!     at ClientRequest.self.clientErrorHandler (/Users/ssp/foo bar/test/node_modules/hoodie-server/node_modules/request/request.js:230:10)
ERR!     at ClientRequest.EventEmitter.emit (events.js:95:17)
ERR!     at Socket.socketErrorListener (http.js:1547:9)
ERR!     at Socket.EventEmitter.emit (events.js:95:17)
ERR!     at net.js:440:14
ERR!     at process._tickDomainCallback (node.js:463:13)

Stopping CouchDB...
@svnlto
Copy link
Contributor

svnlto commented Jul 23, 2014

That's actually related to hoodie-server. The sort version of this fix would be: "don't use spaces in directory names, it's silly".

@svnlto svnlto added Type: Bug and removed bug labels Jul 31, 2014
@svnlto
Copy link
Contributor

svnlto commented Aug 7, 2014

the convention should be not to use folder names with spaces.. going to close this, please reopen if you feel strongly about it.

@svnlto svnlto closed this as completed Aug 7, 2014
@ssp
Copy link

ssp commented Aug 13, 2014

It‘s your software and your design.

If »does not work in paths with spaces in them« is your design goal, it’d be helpful to list that requirement in the readme. I would consider the details of the path hoodie’s files are in as independent of the software and make the software independent of it.

@boennemann boennemann reopened this Aug 13, 2014
@techniker-support
Copy link

I have the same error like in the case above. Any solution?
Difference: There are no names with spaces in my folder stuctures.

Console output:

Version: 0.6.2 (node v0.10.25, npm 2.1.4, platform: linux)

Initializing...
CouchDB started: http://127.0.0.1:6003
Waiting for CouchDB [--*---] FAILED

ERR! Error: Timed out waiting for CouchDB. These logs may help:
ERR! /home/codio/workspace/myPersonalHoodie/data/couch.stderr
ERR! /home/codio/workspace/myPersonalHoodie/data/couch.stdout
ERR! /home/codio/workspace/myPersonalHoodie/data/couch.log
ERR! at Request._callback (/home/codio/workspace/myPersonalHoodie/node_modules/hoodie-server/lib/couchdb/index.js:145:27)
ERR! at self.callback (/home/codio/workspace/myPersonalHoodie/node_modules/hoodie-server/node_modules/request/request.js:199:22)
ERR! at Request.EventEmitter.emit (events.js:95:17)
ERR! at ClientRequest.self.clientErrorHandler (/home/codio/workspace/myPersonalHoodie/node_modules/hoodie-server/node_modules/request/request.js:343:10)
ERR! at ClientRequest.EventEmitter.emit (events.js:95:17)
ERR! at Socket.socketErrorListener (http.js:1547:9)
ERR! at Socket.EventEmitter.emit (events.js:95:17)
ERR! at net.js:441:14
ERR! at process._tickDomainCallback (node.js:459:13)

@NathanielInman
Copy link

@ssp I totally agree. Wasted too much time to figure out it was something as silly as this. Didn't set a good precedent for starting with hoodie. I'm glad I found this here though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants