Youcompleteme: "ycmd server SHUTDOWN" error on Arch Linux

Created on 21 Mar 2017  Â·  11Comments  Â·  Source: ycm-core/YouCompleteMe

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) _before_ filing your issue:

  • [x] I have read and understood YCM's CONTRIBUTING document.
  • [x] I have read and understood YCM's CODE_OF_CONDUCT document.
  • [x] I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • [x] I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • [x] If filing a bug report, I have included the output of vim --version.
  • [x] If filing a bug report, I have included the output of :YcmDebugInfo.
  • [x] If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • [x] If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • [x] If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • [x] If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • [x] I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt _gift_ of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • [x] I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

My YCM plugin recently stopped working. There was no autocompletion happening in Vim, and :messages gave the following output:

The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected error while loading the YCM core library. Use the ':YcmToggleLogs' command to check the
 logs.
Printing YouCompleteMe debug information...
-- Client logfile: /tmp/zizheng/ycm_2m4_2the.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:32899
-- Server process ID: 22935
-- Server logfiles:
--   /tmp/zizheng/ycmd_32899_stdout_9sq8pt1m.log
--   /tmp/zizheng/ycmd_32899_stderr_jvp6es0d.log

I tried to run :YcmRestartServer, but the restart process just got stuck there without any progress or output.

Diagnostic data

Output of vim --version

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar  6 2017 14:11:23)
Included patches: 1-427
Compiled by Arch Linux
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     +tcl/dyn
+balloon_eval    +folding         +mouse_xterm     +termguicolors
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +gettext         -mzscheme        +textobjects
+channel         -hangul_input    +netbeans_intg   +timers
+cindent         +iconv           +num64           +title
+clientserver    +insert_expand   +packages        +toolbar
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        +perl/dyn        +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python/dyn      +vreplace
+cscope          +lispindent      +python3/dyn     +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua/dyn         +rightleft       +writebackup
+diff            +menu            +ruby/dyn        +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     -xpm
+emacs_tags      +mouseshape      +startuptime     +xsmp_interact
+eval            +mouse_dec       +statusline      +xterm_clipboard
+ex_extra        +mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax          
+farsi           +mouse_netterm   +tag_binary      
   system vimrc file: "/etc/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lelf -lnsl    -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc   -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm

Output of YcmDebugInfo

Printing YouCompleteMe debug information...
-- Client logfile: /tmp/zizheng/ycm_2m4_2the.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:32899
-- Server process ID: 22935
-- Server logfiles:
--   /tmp/zizheng/ycmd_32899_stdout_9sq8pt1m.log
--   /tmp/zizheng/ycmd_32899_stderr_jvp6es0d.log

Contents of YCM, ycmd and completion engine logfiles

OS version, distribution, etc.

Arch Linux, kernel 4.10.4-1-ARCH.

Output of build/install commands

Installed with python3 install.py --clang-completer --racer-completer.

Most helpful comment

@whoarememe What worked for me was to pass --system-libclang to install.py. The current clang in Arch's repo is 3.9.1.

All 11 comments

https://github.com/Valloric/YouCompleteMe/issues/778#issuecomment-211452969

You need a legacy libtinfo. Search the tracker for libtinfo for more details.

I don't mean to reopen this issue or claim a problem with the AUR is a problem with YCM, but just to add to that comment:

$ yaourt -S libtinfo-5

libtinfo-5 is no longer a package in the AUR. Instead, there's a libtinfo package, which installs libtinfo.so.6, and will create a symlink as libtinfo.so.5 if and only if you install ncurses5-compat-libs before you install it, also from the AUR.

So the steps to achieve that would be:

$ pacaur -S ncurses5-compat-libs
$ pacaur -S libtinfo

If need be, you can use gpg --recv-keys to import any necessary keys should the build process for those packages fail because of them.

@skewerr thanks for the info! I will be helpful for the next person that encounter this and search it on google ;)

it is not work for me, i also have installed ncurses5-compat-libs before, but it still not work, the log said "connect refused"

@whoarememe What worked for me was to pass --system-libclang to install.py. The current clang in Arch's repo is 3.9.1.

Thanks @ZizhengTai
This works for me!

Both @skewerr and @ZizhengTai work on Manjaro (a derivative of Arch).

The @ZizhengTai solution will make for a faster compile though.

Install pacman -S boost and use --system-boost for an even quicker compile.

when I open the vim, It show the message of "The ycmd server SHUT DOWN (restart with ':Y..._43835_stderr_CB_AiW.log' to check the logs.", who could help me? thanks .
My operating system is CentOS 6.7, and I haved install cmake, python-devel, python34-devel(Because only have python34-devel, no python3-devel in CentOS2.7),

@KevinLjw1990 For any real help you need to show us your logs. Also this is a closed issue about Arch linux.

What I know about RHEL and CentOS 6 is that they require dev-tools to be installed. There should be a page in our wiki about setting this up.

first off i want to say i love YCM. Today it stopped working for some reason unknown to me.

Restarting ycmd server...
The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected error while loading the YCM core library. Type ':YcmToggleLogs ycmd_41161_stderr_6hbfkbaj.log' to check 
the logs.
"~/.vimrc" 141L, 3322C written
"~/.vimrc" 141L, 3323C written
Type  :qa  and press <Enter> to exit Vim
Type  :qa!  and press <Enter> to abandon all changes and exit Vim
1 change; before #6  5 seconds ago
"~/.vimrc" 142L, 3373C written

.log file
2019-12-15 21:38:43,578 - ERROR - libpython3.7m.so.1.0: cannot open shared object file: No such file or directory Traceback (most recent call last): File "/home/cowboy8625/.vim/plugged/youcompleteme/third_party/ycmd/ycmd/utils.py", line 639, in ImportAndCheckCore ycm_core = ImportCore() File "/home/cowboy8625/.vim/plugged/youcompleteme/third_party/ycmd/ycmd/utils.py", line 630, in ImportCore import ycm_core as ycm_core ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

first off i want to say i love YCM.

Thanks!

ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory```

Arch updated to python3.8 a while ago. You really don't have a libpython3.7m.so.1.0 any longer. You need to recompile YCM.

For stuff like this, that fall under user support and not bug reports or feature requests, use our gitter channel (see link in the readme).

Was this page helpful?
0 / 5 - 0 ratings