
Okay, you're probably wondering why your searchd
daemon won't bind to your desired port and this looks a like a familiar screen dump to you:
WARNING: compat_sphinxql_magics=1 is deprecated; please update your application and config
listening on 127.0.0.1:9306
bind() failed on 127.0.0.1, retrying...
bind() failed on 127.0.0.1, retrying...
bind() failed on 127.0.0.1, retrying...
bind() failed on 127.0.0.1, retrying...
bind() failed on 127.0.0.1, retrying...
FATAL: bind() failed on 127.0.0.1: Address already in use
Here's what to do:
- Check for running
searchd
instances. You might have another instance running on your desired port.
ps aux | grep "searchd"
- To check for processes running and who runs them, you can execute:
ps -ef | fgrep searchd
- If you find some running instances, kill those PID numbers. Or, you can simply kill all running searchd instances (be careful if you're not the only app/user running searchd).
killall searchd
-
If you find that your process is being run by root, then it will keep respawning if it is set as a service. You can edit
vim /etc/default/sphinxsearch
and modify it fromSTART=yes
toSTART=no
-
???
-
Try to run your
searchd
again, and hopefully you'll get a successful start now.
Happy coding!
Image credits: https://briansnelson.com/images/2/26/Sphinxsearch.jpg
Author
Maricris Nonato
I turn tech ideas into websites using Ruby. I'm a budding Buddhist practitioner, passionate about health & fitness, a certified yoga teacher, and a cat fanatic!
Recent posts
Tags
- cats
- yoga
- blood pressure
- elecom
- scrum
- coderkitty
- RailsGirls
- workstation
- creativity
- live book signing
- healthy living
- lowering blood pressure
- crafting
- movies
- reviews
- new year
- blessings
- faith
- quotes to live by
- travelers notebook
- Bujo
- planners
- Monday Motivation
- himalayan salt lamp
- productivity
- life tips
- happiness
- success
- ruby
- digital ocean
- regex
- programming
- humor
- music
- pyromusical
- sphinx
- mac
- games
- musings
- yogi
- namaste
- photography
- hobby
- slimming
- sendmail
- lifestyle
- memes
- open letter
- sports
- shooting
- events
- meetups
- tech talks
- rails
- datatables
- sorting
- cycling
- COVID-19
- wishlist
- xmas
- tradition
- song lyrics
- life lessons
- poems
- short story
- food
- living life
- nginx
- technology
- youtube
- my Nyey
- meditation
- new normal
- jump rope
- two-wheel journey
- planner girl
- rubyist
- culture
- Filipino
- mental health
- counseling
- self-care
Advertise
Newsletter
Instagram Feed
Links
I'm sharing with you P150 gift from GoFutureFresh! Click here to accept my gift.