unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* bind to socket with relative path
@ 2011-05-01 12:51 Troex Nevelin
  2011-05-01 18:44 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Troex Nevelin @ 2011-05-01 12:51 UTC (permalink / raw)
  To: mongrel-unicorn

I cannot bind to socket with `-l` option if I specify relative path.
Is it bug or absolute path is mandatory?

Tried 3.4.0 and 3.6.2 - both failed.

-- 
root@zenon:/var/www/test.st.std42.ru/SiteTarget/server# unicorn -l /var/www/test.st.std42.ru/SiteTarget/server/counter.sock
I, [2011-05-01T16:46:55.194425 #30369]  INFO -- : listening on addr=/var/www/test.st.std42.ru/SiteTarget/server/counter.sock fd=3
I, [2011-05-01T16:46:55.194867 #30369]  INFO -- : worker=0 spawning...
I, [2011-05-01T16:46:55.196281 #30376]  INFO -- : worker=0 spawned pid=30376
I, [2011-05-01T16:46:55.196533 #30376]  INFO -- : Refreshing Gem list
I, [2011-05-01T16:46:55.234478 #30369]  INFO -- : master process ready
I, [2011-05-01T16:46:56.166438 #30376]  INFO -- : worker=0 ready
I, [2011-05-01T16:46:58.303501 #30369]  INFO -- : reaped #<Process::Status: pid=30376,exited(0)> worker=0
I, [2011-05-01T16:46:58.303703 #30369]  INFO -- : master complete

root@zenon:/var/www/test.st.std42.ru/SiteTarget/server# unicorn -l ./counter.sock
F, [2011-05-01T16:47:10.661755 #31915] FATAL -- : error adding listener addr=./counter.sock
/usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/socket_helper.rb:143:in `bind_listen': Don't know how to bind: ./counter.sock (ArgumentError)
	from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:248:in `listen'
	from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:145:in `start'
	from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:145:in `each'
	from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/http_server.rb:145:in `start'
	from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn.rb:13:in `run'
	from /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/bin/unicorn:120
	from /usr/bin/unicorn:19:in `load'
	from /usr/bin/unicorn:19
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bind to socket with relative path
  2011-05-01 12:51 bind to socket with relative path Troex Nevelin
@ 2011-05-01 18:44 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2011-05-01 18:44 UTC (permalink / raw)
  To: unicorn list

Troex Nevelin <list@mrtech.ru> wrote:
> I cannot bind to socket with `-l` option if I specify relative path.
> Is it bug or absolute path is mandatory?
> 
> Tried 3.4.0 and 3.6.2 - both failed.
> 
> root@zenon:/var/www/test.st.std42.ru/SiteTarget/server# unicorn -l ./counter.sock
> F, [2011-05-01T16:47:10.661755 #31915] FATAL -- : error adding listener addr=./counter.sock
> /usr/lib/ruby/gems/1.8/gems/unicorn-3.4.0/lib/unicorn/socket_helper.rb:143:in `bind_listen': Don't know how to bind: ./counter.sock (ArgumentError)

Use "unix:./counter.sock" or "unix:counter.sock" instead (should be
compatible with nginx notation).  Without a leading "/" or "~", it
can be hard to tell if it's a hostname address or not.

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-01 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-01 12:51 bind to socket with relative path Troex Nevelin
2011-05-01 18:44 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).