Hello,
I'm trying to start deploy a rails 3.2.13 project to an ubuntu server and the issue below has me stumped:
When running:
RAILS_ENV=production rake ts:start
I am met with:
Failed to start searchd daemon. Check /rails root /log/production.searchd.log.
Failed to start searchd. Check the log files for more information.
Inside that files stated:
[Fri Nov 1 14:24:12.772 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:15.775 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:18.778 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:21.781 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:24.784 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:27.787 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:30.790 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:33.793 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:36.796 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:39.799 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:42.802 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:45.805 2013] [ 2018] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:24:48.809 2013] [ 2018] FATAL: bind() failed on
127.0.0.1: Address already in use
[Fri Nov 1 14:24:48.810 2013] [ 2017] Child process 2018 has been finished, exit code 1. Watchdog finishes also. Good bye!
At which point I created a config/thinking_sphinx.yml file and added the following, trying to specify a different port
production:
mysql41: 9312
When running this command again:
RAILS_ENV=production rake ts:start
I am again met with:
Failed to start searchd daemon. Check /rails root /log/production.searchd.log.
Failed to start searchd. Check the log files for more information.
The log this time stated: (please note that the port number has chaged)
[Fri Nov 1 14:32:58.118 2013] [ 2606] Child process 2607 has been forked
[Fri Nov 1 14:32:58.119 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:01.120 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:04.123 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:07.126 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:10.129 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:13.132 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:16.135 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:19.138 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:22.142 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:25.145 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:28.148 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:31.151 2013] [ 2607] bind() failed on 127.0.0.1, retrying...
[Fri Nov 1 14:33:34.154 2013] [ 2607] FATAL: bind() failed on
127.0.0.1: Address already in use
[Fri Nov 1 14:33:34.156 2013] [ 2606] Child process 2607 has been finished, exit code 1. Watchdog finishes also. Good bye!
I am using the following:
rails '3.2.13'
thinking-sphinx '3.0.5'
Postgres as my database (yes I also have the mysql2 gem installed)
Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-42-generic x86_64)
Sphinx 2.0.5-id64-release (r3308)
Apache2
phusion passenger
Please let me know if ive left out any relevant information or if there is some documentation you think I may have overlooked. Thanks in advance