syuu1228 / capstan-mruby-simplehttpserver

Other
2 stars 1 forks source link

Can't run capstan by a invalid argument error. #2

Open monaka opened 10 years ago

monaka commented 10 years ago

I tried http://d.hatena.ne.jp/syuu1228/20140520/1400535119. My environment is Maverick 10.9.3. The newest version of Homebrew.

$ capstan run -f 10080:80
Created instance: capstan-mruby-simplehttpserver

dial unix /Users/monaka/.capstan/instances/vbox/capstan-mruby-simplehttpserver/capstan-mruby-simplehttpserver.sock: invalid argument
$ ls ~/.capstan/instances/vbox/capstan-mruby-simplehttpserver/capstan-mruby-simplehttpserver.*
/Users/monaka/.capstan/instances/vbox/capstan-mruby-simplehttpserver/capstan-mruby-simplehttpserver.soc
/Users/monaka/.capstan/instances/vbox/capstan-mruby-simplehttpserver/capstan-mruby-simplehttpserver.vbox
/Users/monaka/.capstan/instances/vbox/capstan-mruby-simplehttpserver/capstan-mruby-simplehttpserver.vbox-prev

Guess the filename should be not capstan-mruby-simplehttpserver.soc but capstan-mruby-simplehttpserver.sock ?

asias commented 10 years ago

right. it should be xxx.sock. wondering why became xxx.soc.

monaka commented 10 years ago

I shortened path capstan-mruby-simpliehttpserver to simplehttpserver as the comment in #1 My box becomes to generate sock (not soc) file.

But... Was it too long file path? IMO, that path length (105 chars) is enough short to OSX.

$ ls ~/.capstan/instances/vbox/simplehttpserver/
Logs                osv.config          simplehttpserver.vbox
disk.vdi            simplehttpserver.sock       simplehttpserver.vbox-prev
asias commented 10 years ago

I am not sure. Maybe vbox has somekind of limit on the path name length.

asias commented 10 years ago

@monaka can you try this:

https://github.com/asias/capstan/tree/vbox.path