apache - ThinkingSphinx on production : Cannot assign requested address -
i have problem cannot fix today. happened me @ least once don't remember i've done fix it.
i'm deploying rails 4 application (with apache , passenger , using ruby 2.1) on own server using capistrano 3. cannot use thinking-sphinx because of following error :
fatal: bind() failed on my.ip.address : cannot assign requested address
this error strange because can use without error command index
not rebuild
.
i'm working directly on server ssh trying solve problem. have start searchd
by own ? have stop apache during rebuilding ?
i don't know begin.
last word : strangest part working cannot restart it.
i've joined configuration files.
config/initializer/thinking_sphinx.rb
thinkingsphinx::activerecord::databaseadapters.default = thinkingsphinx::activerecord::databaseadapters::postgresqladapter thinkingsphinx::sphinxql.functions!
config/thinking_sphinx.yml
development: mysql41 : 9312 enable_star: true min_prefix_len: 3 utf8: true preprod: address: "my.domain.com" port: 9312 enable_star: true min_prefix_len: 3
config/deploy.rb
execute "cd #{fetch(:deploy_to)}/current/ && rails_env=#{fetch(:environment)} bundle exec rake ts:rebuild", raise_on_non_zero_exit: false execute "cd #{fetch(:deploy_to)}/current/ && rails_env=#{fetch(:environment)} bundle exec rake ts:index", raise_on_non_zero_exit: false
log/preprod.searchd.log
[sun apr 6 15:16:07.185 2014] [ 4647] child process 4648 has been forked [sun apr 6 15:16:07.191 2014] [ 4648] listening on 82.227.207.7:9312 [sun apr 6 15:16:07.191 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:10.194 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:13.196 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:16.199 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:19.202 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:22.205 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:25.208 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:28.212 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:31.215 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:34.218 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:37.221 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:40.224 2014] [ 4648] bind() failed on my.ip.address, retrying... [sun apr 6 15:16:43.228 2014] [ 4648] fatal: bind() failed on my.ip.address: cannot assign requested address [sun apr 6 15:16:43.229 2014] [ 4647] child process 4648 has been finished, exit code 1. watchdog finishes also. bye!
thank in advance help.
i found solution. mistake came thinking_sphinx.rb
file. needed same configuration on development.
preprod: mysql41 : 9312 enable_star: true min_prefix_len: 3
finally, problem came pid file path not specified , have reconfigure sphinx rake ts:configure
before rake ts:rebuild
. solved deployment problem capistrano 3.
i hope else.
Comments
Post a Comment