Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tarciozemel opened this issue Mar 29, 2014 · 33 comments
Closed

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

tarciozemel opened this issue Mar 29, 2014 · 33 comments

Comments

@tarciozemel
Copy link

tarciozemel commented Mar 29, 2014

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).

@Valloric
Copy link
Member

Please see CONTRIBUTING.md.

@tarciozemel
Copy link
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
Copy link
Contributor

vheon commented Mar 30, 2014

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
Copy link
Author

Terminal Vim...

@vheon
Copy link
Contributor

vheon commented Mar 31, 2014

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

@tarciozemel
Copy link
Author

"Then start gvim/macvim"...?

@vheon
Copy link
Contributor

vheon commented Mar 31, 2014

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
Copy link
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
Copy link
Contributor

vheon commented Mar 31, 2014

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

wshanks pushed a commit to wshanks/YouCompleteMe that referenced this issue May 16, 2014
I found this through ycm-core#914, but it should probably be in the docs here.
@yelled1
Copy link

yelled1 commented Nov 8, 2017

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
Copy link

@yelled1
thanks

@shinux
Copy link

shinux commented Nov 22, 2017

@yelled1
exactly

@puremourning
Copy link
Member

It was extremely frustrating & annoying!

Also, clearly documented int he README.

@yelled1
Copy link

yelled1 commented Nov 22, 2017

Not using Vundle / using plug. So, took me a bit to try the install.py after multiple rm -rf YCM* PlugInstall, PlugUpdate, etc...
Prb w/ vim or nvim - a long error msgs get truncated & also pushed out by others quickly on a fast computer. So, have to :messages see it all which is a new trick I learned after all these years (Thanks to the person who pointed that out!)
4 thumbs up = at least some finds it helpful (so pls don't discourage info sharing)
We appreciate YCM team, but vim is w/o bloat & not exactly friendly. My init.vim is now 300 lines long & still only do about 80% of what needs to be done.

@linlinzhao
Copy link

@yelled1 Thanks.

I am using vundle to manage plugins (Ubuntu 16.04, kernel 4.10). So the path is

~/.vim/bundle/Youcompleteme/install.py

@ghost
Copy link

ghost commented Jan 5, 2018

If you are getting this error on Ubuntu 17.10, Please install python-dev package. By default, Python 3.6 is shipped with this version of Ubuntu. Re-run the install.py file from the installed directory.
This fixed my problem.

@fad0
Copy link

fad0 commented Jan 17, 2018

@yelled1
Thank you! :)

@maxprkr
Copy link

maxprkr commented Jan 23, 2018

sounds like your autocomplete package is missing the ycmd server that it requires. You need to install the YCM server. Follow the instructions from:
https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64

@jednano
Copy link

jednano commented Feb 9, 2018

This worked for me...

cd /usr/local/share/vim/vim80/plugged/YouCompleteMe
sudo python3 install.py --clang-completer --js-completer

@narg95
Copy link

narg95 commented Feb 19, 2018

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
Copy link

weaming commented Feb 21, 2018

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
Copy link

papiro commented Mar 8, 2018

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

@revsuine
Copy link

@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
Copy link

admercs commented Apr 4, 2018

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
Copy link

terhuhf commented Apr 19, 2018

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

@willunicamp
Copy link

@yelled1 ty

@xiaoniaoyou
Copy link

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

@cstich
Copy link

cstich commented Jun 13, 2018

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
Copy link

@yelled1 You sir, deserve a cookie.

@skull-squadron
Copy link

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

@yelled1
Copy link

yelled1 commented Sep 21, 2018

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
Copy link
Member

This is in the FAQ isn’t it?

@micbou
Copy link
Collaborator

micbou commented Sep 21, 2018

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.

@ycm-core ycm-core locked and limited conversation to collaborators Sep 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests