The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 line s)

5,165 views
Skip to first unread message

Chiel ten Brinke

unread,
Nov 29, 2013, 7:04:26 AM11/29/13
to ycm-...@googlegroups.com
I can't give a clear way how to reconstruct. Currently for me it seems to happen all the time when I've had two sessions open and quit one of them. I wonder if this is a YCM bug, or due to misconfiguration.
Here's the stderr:

Traceback (most recent call last):
  File "/home/chiel/.vim/bundle/YouCompleteMe/python/ycm/server/ycmd.py", line 98, in <module>
    Main()
  File "/home/chiel/.vim/bundle/YouCompleteMe/python/ycm/server/ycmd.py", line 94, in Main
    threads = 10 )
  File "/home/chiel/.vim/bundle/YouCompleteMe/third_party/waitress/waitress/__init__.py", line 11, in serve
    server = _server(app, **kw)
  File "/home/chiel/.vim/bundle/YouCompleteMe/third_party/waitress/waitress/server.py", line 44, in create_server
    return cls(application, map, _start, _sock, _dispatcher, adj)
  File "/home/chiel/.vim/bundle/YouCompleteMe/third_party/waitress/waitress/server.py", line 76, in __init__
    self.bind_server_socket()
  File "/home/chiel/.vim/bundle/YouCompleteMe/third_party/waitress/waitress/server.py", line 184, in bind_server_socket
    self.bind((self.adj.host, self.adj.port))
  File "/usr/lib/python2.7/asyncore.py", line 341, in bind
    return self.socket.bind(addr)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.gaierror: [Errno -5] No address associated with hostname

2013-11-29 12:55:59,476 - INFO - Server shutting down

Armand Halbert

unread,
Nov 29, 2013, 6:13:38 PM11/29/13
to ycm-...@googlegroups.com
I have the same issue. I got it right after I ran BundleUpdate and recompiled. I'm on OSX Mavericks, with vim 7.3.918 and vim 7.3.754 macvim.

For me, it happens as soon as I open a file other than the first buffer. It does not work though, in the first buffer, I just get the error message when I open a new one.

Armand Halbert

unread,
Nov 29, 2013, 6:45:40 PM11/29/13
to ycm-...@googlegroups.com
So after playing around with it a bit, my problem was that it was running python 2.7.4 instead of 2.7.5 with ycm.
When I added this to my .vimrc, it worked

let g:ycm_path_to_python_interpreter = '/usr/bin/python'


On Friday, November 29, 2013 7:04:26 AM UTC-5, ctenbrinke wrote:

Chiel ten Brinke

unread,
Nov 30, 2013, 4:19:14 AM11/30/13
to ycm-...@googlegroups.com
Seems to work for me as well. Thanks!

Thiago Barroso Perrotta

unread,
Oct 5, 2014, 11:57:44 PM10/5/14
to ycm-...@googlegroups.com
Hey, thanks, this also fixes crashes on Arch Linux, where the default python binary (/usr/bin/python) is actually a symlink to python3.

let g:ycm_path_to_python_interpreter = '/usr/bin/python2' solves the problem.

伍锦文

unread,
Jan 6, 2016, 1:24:52 AM1/6/16
to ycm-users
Amazing! It run again.      Maybe I use venv for python, so it can find my correct Python.

在 2013年11月30日星期六 UTC+8上午7:45:40,Armand Halbert写道:
Reply all
Reply to author
Forward
0 new messages