Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@netguru
netguru / Failed to start searchd daemon.
Created November 2, 2010 15:24
Trouble with starting sphinx in rails application
user@host:~/app/current$ rake ts:start
(in /home/webhr/app/current)
Failed to start searchd daemon. Check /home/user/app/current/log/searchd.log.
user@host:~/app/current$ searchd --pidfile --config config/sphinx/production.conf
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff
using config file 'config/sphinx/production.conf'...
FATAL: failed to create pid file 'tmp/pids/searchd.production.pid': No such file or directory
class String
def truncate_full_words limit = 64, completion = "..."
self.length > limit ? "#{self[0..(self.rindex(' ', limit) || limit)-1]}#{competion}" : self
end
def truncate_full_words! limit = 64, completion = "..."
self.replace(self.truncate_full_words limit, completion)
end
end
class Liquid::Strainer
def is_haml?; false; end
def controller
@controller ||= @context.registers[:controller]
end
delegate :request, :to => :controller
delegate :params, :to => :request
end
<% link_to(@profile) do %>
<strong><%= @profile.name %></strong> -- <span>Check it out!!</span>
<% end %>
render :partial => ‘other_people’, :collection => @people, :as => :person
map.resource :posts, :collection => { :search => [:get, :post] }
map.session 'session', :requirements => { :method => [:get, :post, :delete] }
map.resources :products, :only => :show do |product|
product.resources :images, :except => :destroy
end
traceroute to writeitwell.com (208.69.40.119), 64 hops max, 40 byte packets
1 192.168.19.1 (192.168.19.1) 2.720 ms 2.044 ms 1.923 ms
2 poz-ru2.neo.tpnet.pl (213.25.2.40) 199.351 ms 117.500 ms 102.823 ms
3 z.poz-ru2.do.poz-r2.tpnet.pl (213.25.5.69) 105.094 ms 55.629 ms 9.297 ms
4 ge-2-0-0.war-r4.tpnet.pl (194.204.175.226) 16.704 ms 17.111 ms 61.991 ms
5 pos0-5-1-0.ffttr1.FrankfurtAmMain.opentransit.net (193.251.250.109) 38.247 ms pos0-6-0-0.ffttr1.FrankfurtAmMain.opentransit.net (193.251.250.113) 43.382 ms 39.764 ms
6 po12-3.core01.fra03.atlas.cogentco.com (130.117.15.77) 38.669 ms 38.458 ms 40.930 ms
7 te8-8.mpd02.fra03.atlas.cogentco.com (130.117.0.246) 39.051 ms 38.839 ms 38.424 ms
8 te3-1.ccr01.ams03.atlas.cogentco.com (130.117.2.202) 45.679 ms te9-1.ccr01.ams03.atlas.cogentco.com (130.117.2.141) 44.952 ms te1-1.ccr01.ams03.atlas.cogentco.com (130.117.0.230) 44.945 ms
9 te3-8.mpd01.ymq02.atlas.cogentco.com (154.54.0.70) 132.569 ms 132.484 ms 131.958 ms
traceroute to berkeley.edu (169.229.131.81), 64 hops max, 40 byte packets
1 192.168.19.1 (192.168.19.1) 2.778 ms 1.954 ms 2.014 ms
2 poz-ru2.neo.tpnet.pl (213.25.2.40) 12.160 ms 12.524 ms 10.276 ms
3 z.poz-ru2.do.poz-r2.tpnet.pl (213.25.5.69) 10.667 ms 9.317 ms 10.238 ms
4 * ge-2-0-0.war-r4.tpnet.pl (194.204.175.226) 17.712 ms *
5 po8-0.nykcr2.NewYork.opentransit.net (193.251.251.69) 284.310 ms 258.067 ms 254.277 ms
6 po11-0.nykcr3.NewYork.opentransit.net (193.251.242.210) 124.150 ms 123.720 ms 125.864 ms
7 pos0-5-4-0.nyktr1.NewYork.opentransit.net (193.251.243.182) 130.984 ms 131.535 ms 130.944 ms
8 ge-2-0-0-0.ashtr1.Ashburn.opentransit.net (193.251.243.1) 177.752 ms 136.081 ms 136.095 ms
9 ge-0-1-0-0.atlcr3.Atlanta.opentransit.net (193.251.243.178) 143.268 ms so-0-2-0-0.atlcr3.Atlanta.opentransit.net (193.251.241.158) 142.348 ms 141.502 ms
traceroute to newsletter.mobissimo.com (208.69.40.235), 64 hops max, 40 byte packets
1 192.168.19.1 (192.168.19.1) 2.918 ms 2.018 ms 2.055 ms
2 poz-ru2.neo.tpnet.pl (213.25.2.40) 11.129 ms 10.029 ms 11.553 ms
3 z.poz-ru2.do.poz-r2.tpnet.pl (213.25.5.69) 10.326 ms 9.431 ms 9.230 ms
4 ge-2-0-0.war-r4.tpnet.pl (194.204.175.226) 18.423 ms 16.909 ms 17.646 ms
5 pos0-6-0-0.ffttr1.FrankfurtAmMain.opentransit.net (193.251.250.113) 39.006 ms pos0-5-1-0.ffttr1.FrankfurtAmMain.opentransit.net (193.251.250.109) 37.659 ms 39.927 ms
6 po12-3.core01.fra03.atlas.cogentco.com (130.117.15.77) 38.477 ms 38.992 ms 41.339 ms
7 te2-8.ccr01.fra03.atlas.cogentco.com (130.117.1.30) 38.727 ms 38.428 ms 38.511 ms
8 te1-1.ccr02.ams03.atlas.cogentco.com (130.117.0.145) 52.909 ms te8-3.ccr02.ams03.atlas.cogentco.com (130.117.1.65) 52.442 ms te2-1.ccr02.ams03.atlas.cogentco.com (130.117.1.162) 55.052 ms
9 te7-3.mpd01.ymq02.atlas.cogentco.com (130.117.0.69) 157.531 ms te8-8.mpd01.ymq02.atl