Skip to content

"The ycmd server SHUT DOWN (restart with :YcmRestartServer)" #914

Closed
@tarciozemel

Description

@tarciozemel

Maintainer's note: If you are coming here from Google, go here first: https://github.com/ycm-core/YouCompleteMe/wiki/Troubleshooting-steps-for-ycmd-server-SHUT-DOWN


I just upgraded the plugin and now it stop to work... When I open Vim, I always see the message "The ycmd server SHUT DOWN (restart with :YcmRestartServer)".

When I run that command, the message "Restarting ycmd server..." appears, but in no time "The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):" (no lines are shown).

Activity

Valloric

Valloric commented on Mar 29, 2014

@Valloric
Member

Please see CONTRIBUTING.md.

tarciozemel

tarciozemel commented on Mar 29, 2014

@tarciozemel
Author

I already saw this, but I haven't gvim/macvim. Unfortunately, my YCM is useless now and I'll have to find another plugin which comes close to this quality... I wish luck to those with this same problem.

vheon

vheon commented on Mar 30, 2014

@vheon
Contributor

I already saw this, but I haven't vim/macvim

Are you sure you saw CONTRIBUTING.md? Because from the issue it doesn't seem so. And if you are not using vim then what are you using?

tarciozemel

tarciozemel commented on Mar 30, 2014

@tarciozemel
Author

Terminal Vim...

vheon

vheon commented on Mar 31, 2014

@vheon
Contributor

which is vim... but still I don't see any point regarding writing good issue reports in CONTRIBUTING.md

tarciozemel

tarciozemel commented on Mar 31, 2014

@tarciozemel
Author

"Then start gvim/macvim"...?

vheon

vheon commented on Mar 31, 2014

@vheon
Contributor

If you are unable to install them then just put this in your vimrc

let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'

then start vim look ycmd server shut down and go look at te logs (I'm not completely sure if let g:ycm_server_keep_logfiles = 1 is needed but it wouldn't harm). To see where the logs are located run the command :YcmDebugInfo. Then post the logs and the remaining points of writing good issue reports in CONTRIBUTING.md

tarciozemel

tarciozemel commented on Mar 31, 2014

@tarciozemel
Author

Oh! Now we're moving on! :-)

I stalled all packages pointed in README (build-essential, cmake and python-dev) and update all my Vim plugins few days ago (rerunning ./install.sh --clang-completer in the folder, of course).

1. Write a step-by-step procedure that when performed repeatedly reproduces your issue.

I just upgraded the plugin and now it stop to work... When I open Vim, I always see the message "The ycmd server SHUT DOWN (restart with :YcmRestartServer)".

When I run that command, the message "Restarting ycmd server..." appears, but in no time "The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):" (no lines are shown).

2. ycmd debug output stream in the console

RuntimeError: Error importing ycm_core. Are you sure you have placed a version 3.2+ libclang.[so|dll|dylib] in folder "/home/tarciozemel/.vim/bundle/YouCompleteMe/python"? See the Installation Guide in the docs. Full error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/tarciozemel/.vim/bundle/YouCompleteMe/python/ycm/server/../../libclang.so)

3. Create a test case for your issue

Happening in all files I try to edit.

4. Include your OS and OS version

Linux debian 3.2.0-4-amd64 # 1 SMP Debian 3.2.54-2 x86_64 GNU/Linux

5. Include the output of vim --version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 19 2014 14:02:52)
Correções incluídas: 1-155
Compilado por tarciozemel@debian
Versão enorme com interface GTK2. Recursos incluídos (+) ou não (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui -lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind +X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop +xpm
arquivo vimrc de sistema: "$VIM/vimrc"
arquivo vimrc do usuário: "$HOME/.vimrc"
2º arquivo vimrc do usuário: "/.vim/vimrc"
arquivo exrc do usuário: "$HOME/.exrc"
arquivo gvimrc de sistema: "$VIM/gvimrc"
arquivo gvimrc do usuário: "$HOME/.gvimrc"
2º arquivo gvimrc do usuário: "
/.vim/gvimrc"
arquivo de menu do sistema: "$VIMRUNTIME/menu.vim"
padrão para $VIM: "/usr/share/vim"
padrão para $VIMRUNTIME: "/usr/share/vim/vim74"
Compilação: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Vinculação: gcc -L. -Wl,-z,relro -rdynamic -Wl,-export-dynamic -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -L/usr/lib/python2.7-config -lpython2.7 -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib

vheon

vheon commented on Mar 31, 2014

@vheon
Contributor

RuntimeError: Error importing ycm_core. Are you sure you have placed a version 3.2+ libclang.[so|dll|dylib] in folder "/home/tarciozemel/.vim/bundle/YouCompleteMe/python"? See the Installation Guide in the docs. Full error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/tarciozemel/.vim/bundle/YouCompleteMe/python/ycm/server/../../libclang.so)

Thats the error, and as suggested you should have seen the docs first

i-get-glibc_2xx-not-found-required-by-libclangso-when-starting-vim

yelled1

yelled1 commented on Nov 8, 2017

@yelled1

I know I'm late to this party, but I had same issue for vim & neovim after update/upgrade.
Just took running ./install.py after

cd ~.vim/plugged/YouCompleteMe (vim)
cd ~/.local/share/nvim/site/plugged/YouCompleteMe (neovim) :)
./install.py

It was extremely frustrating & annoying! BUT it now works!
Still hack of better than using an alternative BIG FAT IDEs.
On Ubuntu 16.04 64bit w/ nyaovim mostly but happened to BOTH.
Hope this helps many!

elStranger

elStranger commented on Nov 16, 2017

@elStranger

@yelled1
thanks

shinux

shinux commented on Nov 22, 2017

@shinux

@yelled1
exactly

7 remaining items

narg95

narg95 commented on Feb 19, 2018

@narg95

I had the same issue on Mac and the problem was because cmake was not installed. I solved it with:

  • brew install cmake and then what @jedmao mentioned but on macOS
  • cd ~/.vim/bundle/youcompleteme
  • install.py --clang-completer --js-completer
weaming

weaming commented on Feb 21, 2018

@weaming

Cause I installed anaconda python replacing the system default python, when I run ./install.sh, it call the script with anaconda python instead of system default python.

Then I run /usr/bin/python ./install.sh, it's been fixed 😄

And, does anyone know what the script does to the python environments?

papiro

papiro commented on Mar 8, 2018

@papiro

Not sure if this is an issue. The installation instructions in the documentation seem to cover the solutions suggested in this thread.

revsuine

revsuine commented on Mar 29, 2018

@revsuine

@yelled1 Thank you! This worked for me, except I needed to go to

cd ~/.vim/bundle/YouCompleteMe

as @linlinzhao said, and my issue was that cmake was not installed when I tried to do ./install.py so, on Ubuntu 16.04:

sudo apt install cmake
./install.py

And perfect! Tried opening Vim, now works like a charm :)

admercs

admercs commented on Apr 4, 2018

@admercs

I also had problems with this error on MacOS, caused by installing with Anaconda Python 3.6.4. So, I removed the YouCompleteMe folder with rm -rf ~/.vim/bundle/YouCompleteMe, installed the latest MacVim binary from here, reinstalled all packages defined in my ~/.vimrc file by running vim and using the :PluginInstall command, installed Homebrew Python 3.6.5 with brew install python, and finally installed YouCompleteMe with this command:

sudo /usr/local/bin/python3 install.py --clang-completer --go-completer --js-completer

All systems are go.

Request: support for Anaconda Python would be excellent, as it is inefficient to have three separate installations of Python to manage.

terhuhf

terhuhf commented on Apr 19, 2018

@terhuhf

It turns out that this issue happens every time after I update YCM using Vundle.

willunicamp

willunicamp commented on May 7, 2018

@willunicamp
xiaoniaoyou

xiaoniaoyou commented on May 11, 2018

@xiaoniaoyou

cd ~/.vim/bundle/YouCompleteMe
./install.py

cstich

cstich commented on Jun 13, 2018

@cstich

I am using Anaconda and had the same issue. What also seems to work is to install the missing library within Anaconda.

 conda install libgcc

did the trick for me.

moadAlami

moadAlami commented on Jun 15, 2018

@moadAlami

@yelled1 You sir, deserve a cookie.

skull-squadron

skull-squadron commented on Aug 19, 2018

@skull-squadron

(cd ~/.vim/bundle/YouCompleteMe && ./install.py --go-completer --java-completer --rust-completer --clang-completer)

yelled1

yelled1 commented on Sep 21, 2018

@yelled1

Another important todo as I am now using pyenv:
export PYTHON_CONFIGURE_OPTS="--enable-shared"
Must be added to your .bash_aliases or somewhere like that to use: pyenv (mo better? than conda version control)

puremourning

puremourning commented on Sep 21, 2018

@puremourning
Member

This is in the FAQ isn’t it?

micbou

micbou commented on Sep 21, 2018

@micbou
Collaborator

Even better, the install.py script suggests this. Anyway, I am locking the issue. Most comments are either outdated or irrelevant. Yes, you need to run install.py to install YCM and run it again when a big update happens. It's not like install.py is mentioned 39 times in the docs.

locked and limited conversation to collaborators on Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @vheon@tarciozemel@skull-squadron@Valloric@jednano

        Issue actions

          "The ycmd server SHUT DOWN (restart with :YcmRestartServer)" · Issue #914 · ycm-core/YouCompleteMe