codota / tabnine-vim

Vim client for TabNine. https://vimawesome.com/plugin/tabnine-vim
https://www.tabnine.com/install/vim
GNU General Public License v3.0
669 stars 36 forks source link

YCM server error out #88

Closed vnikk closed 3 years ago

vnikk commented 3 years ago

please complete the following information:

Not related to TabNine directly.

Issue Details: YCM is not able to start properly. Do I need to troubleshoot it with original YCM team?

:YcmDebugInfo

Printing YouCompleteMe debug information...
-- Client logfile: /var/folders/fw/hqrp814s6r5f54kxbx0hd38nvk2z2s/T/ycm_4j12hrbd.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:52151
-- Server process ID: 65501
-- Server logfiles:
--   /var/folders/fw/hqrp814s6r5f54kxbx0hd38nvk2z2s/T/ycmd_52151_stdout_f2c2scx0.log
--   /var/folders/fw/hqrp814s6r5f54kxbx0hd38nvk2z2s/T/ycmd_52151_stderr_fiubn6vq.log

$ cat /var/folders/fw/hqrp814s6r5f54kxbx0hd38nvk2z2s/T/ycm_4j12hrbd.log # other logs are empty

2021-08-03 14:24:13,951 - ERROR - Unable to connect to server
Traceback (most recent call last):
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/connection.py", line 136, in _new_conn
    conn = connection.create_connection(
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/util/connection.py", line 91, in create_connection
    raise err
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/util/connection.py", line 81, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 557, in urlopen
    httplib_response = self._make_request(conn, method, url,
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 353, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1240, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1286, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1235, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 1006, in _send_output
    self.send(msg)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/http/client.py", line 946, in send
    self.connect()
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/connection.py", line 162, in connect
    conn = self._new_conn()
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/connection.py", line 145, in _new_conn
    raise NewConnectionError(
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x112df0580>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/adapters.py", line 366, in send
    resp = conn.urlopen(
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/connectionpool.py", line 608, in urlopen
    retries = retries.increment(method, url, error=e, _pool=self,
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/packages/urllib3/util/retry.py", line 273, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=52151): Max retries exceeded with url: /ready (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x112df0580>: Failed to establish a new connection: [Errno 61] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/username/.vim/bundle/tabnine-vim/autoload/../python/ycm/client/base_request.py", line 79, in HandleFuture
    return _JsonFromFuture( future )
  File "/Users/username/.vim/bundle/tabnine-vim/autoload/../python/ycm/client/base_request.py", line 239, in _JsonFromFuture
    response = future.result()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
  File "/Users/username/.vim/bundle/tabnine-vim/autoload/../python/ycm/unsafe_thread_pool_executor.py", line 43, in run
    result = self.fn( *self.args, **self.kwargs )
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/Users/username/.vim/bundle/tabnine-vim/third_party/ycmd/third_party/requests/requests/adapters.py", line 437, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=52151): Max retries exceeded with url: /ready (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x112df0580>: Failed to establish a new connection: [Errno 61] Connection refused'))

gz#4665

maya-tabnine commented 3 years ago

Hi! To figure out the cause, you need to locate your binary files and run the engine directly. On Tabnine Hub, scroll down to the Engine file path, and find the Tabnine file path. The path should be: /Users/{UserName}/.vim/bundle/tabnine-vim/binaries/{Binary_Version}/x86_64-apple-darwin/

Try to run the following command from the terminal using the right path: PATH_TO_ENGINE/TabNine.cmd --log_to_stderr

Would you please collect the output to a file and share it with us?

vnikk commented 3 years ago

Hi maya-tabnine. Thanks for helping with this! I can see these errors: Failed to remove private models from cache: No such file or directory (os error 2) Hard to say if this is relevant to server being down.

Also, Got new local client connection 127.0.0.1:59425 Running :YcmRestartServer changes client port:

Got new local client connection 127.0.0.1:59444

(server port: 59440)

vnikk commented 3 years ago
[2021-08-25T17:28:21.850379+02:00][INFO][99645 main][auth::token][Some("shared/auth/src/token/mod.rs")][Some(41)] token path: /Users/username/Library/Preferences/TabNine/tabnine.token
[2021-08-25T17:28:21.851277+02:00][WARN][99645 main][auth::user][Some("shared/auth/src/user/mod.rs")][Some(444)] No user token available: No such file or directory (os error 2)
[2021-08-25T17:28:21.851408+02:00][INFO][99645 main][TabNine::main_utils][Some("tabnine/frontend/src/main_utils.rs")][Some(182)] ./TabNine --log_to_stderr
[2021-08-25T17:28:21.869727+02:00][INFO][99645 main][watchdog_api::wd_client][Some("shared/wd_api/src/wd_client.rs")][Some(74)] Initializing watchdog client...
[2021-08-25T17:28:21.881237+02:00][INFO][99645 bootstrapper_main_run_loop][bootstrapper::versions_cleanup][Some("tabnine/bootstrapper/src/versions_cleanup.rs")][Some(76)] Deleting older version Version { major: 0, minor: 0, patch: 1, pre: [], build: [] } at: "/Users/username/.vim/bundle/tabnine-vim/binaries/0.0.1"
[2021-08-25T17:28:21.881789+02:00][INFO][99645 bootstrapper_main_run_loop][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(196)] trying to start tabnine version Some("3.5.54")
[2021-08-25T17:28:21.881894+02:00][INFO][99645 bootstrapper_main_run_loop][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(246)] expected path is "/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.33/x86_64-apple-darwin/../../3.5.54/x86_64-apple-darwin/TabNine"
[2021-08-25T17:28:21.882183+02:00][INFO][99645 bootstrapper_main_run_loop][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(287)] spawning tabnine with args ["/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.33/x86_64-apple-darwin/../../3.5.54/x86_64-apple-darwin/TabNine", "--log_to_stderr", "--no_bootstrap"]
[2021-08-25T17:28:21.882802+02:00][INFO][99645 bootstrapper_main_run_loop][TabNine::bootstrap_support][Some("tabnine/frontend/src/bootstrap_support.rs")][Some(291)] started tabnine process pid 99648 version Some("3.5.54"), desired version was Some("3.5.54") this version is Some("3.5.33")
[2021-08-25T17:28:21.899640+02:00][INFO][99648 main][auth::token][Some("shared/auth/src/token/mod.rs")][Some(41)] token path: /Users/username/Library/Preferences/TabNine/tabnine.token
[2021-08-25T17:28:21.901093+02:00][WARN][99648 main][auth::user][Some("shared/auth/src/user/mod.rs")][Some(252)] No user token available: No such file or directory (os error 2)
[2021-08-25T17:28:21.901189+02:00][INFO][99648 main][TabNine::main_utils][Some("tabnine/frontend/src/main_utils.rs")][Some(182)] /Users/username/.vim/bundle/tabnine-vim/binaries/3.5.33/x86_64-apple-darwin/../../3.5.54/x86_64-apple-darwin/TabNine --log_to_stderr --no_bootstrap
[2021-08-25T17:28:21.901585+02:00][INFO][99648 main][watchdog_api::wd_client][Some("shared/wd_api/src/wd_client.rs")][Some(74)] Initializing watchdog client...
[2021-08-25T17:28:22.062293+02:00][DEBUG][99648 main][server::in_app_messaging][Some("tabnine/server/src/in_app_messaging.rs")][Some(28)] registering in app message analytics handler
[2021-08-25T17:28:22.065063+02:00][INFO][99648 main][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(92)] No private model found
[2021-08-25T17:28:22.065120+02:00][INFO][99648 main][lunar_connection::model_chooser][Some("tabnine/lunar_connection/src/model_chooser.rs")][Some(38)] current private model is None
[2021-08-25T17:28:22.065408+02:00][INFO][99648 main][lunar_connection::model_chooser][Some("tabnine/lunar_connection/src/model_chooser.rs")][Some(40)] using initial model Model {
    model_hash_override: None,
    model_size: Small,
    base_url: "https://update.tabnine.com",
}
[2021-08-25T17:28:22.065529+02:00][INFO][99648 main][lunar_connection::local_lunar_connection][Some("tabnine/lunar_connection/src/local_lunar_connection.rs")][Some(94)] starting default model pre-loader DownloadSettings {
    api_key: None,
    meta_data_base_url: "https://api.tabnine.com",
    model: Model {
        model_hash_override: None,
        model_size: Small,
        base_url: "https://update.tabnine.com",
    },
}
[2021-08-25T17:28:22.065546+02:00][INFO][99648 lunar settings update thread (Local default local)][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(80)] lunar settings update thread started (Local default local)
[2021-08-25T17:28:22.065759+02:00][INFO][99648 main][lunar_connection::project_model_override_installer][Some("tabnine/lunar_connection/src/project_model_override_installer.rs")][Some(196)] project model override feature is disabled
[2021-08-25T17:28:22.065770+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(146)] Starting private model update thread
[2021-08-25T17:28:22.065964+02:00][INFO][99648 lunar settings update thread (Remote cloud)][lunar_connection][Some("tabnine/lunar_connection/src/lib.rs")][Some(80)] lunar settings update thread started (Remote cloud)
[2021-08-25T17:28:22.066024+02:00][INFO][99648 main][frontend::initialize][Some("tabnine/frontend/src/initialize.rs")][Some(6)] Started.
[2021-08-25T17:28:22.082043+02:00][INFO][99648 model-pre-loader][lunar_connection::local_lunar_connection][Some("tabnine/lunar_connection/src/local_lunar_connection.rs")][Some(308)] running command "/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.33/x86_64-apple-darwin/../../3.5.54/x86_64-apple-darwin/TabNine-deep-local" "--settings" "/Users/username/Library/Preferences/TabNine/local.settingsSmall" "--settings-version" "1" "--log_to_stderr"
[2021-08-25T17:28:22.098436+02:00][INFO][99651 main][auth::token][Some("shared/auth/src/token/mod.rs")][Some(41)] token path: /Users/username/Library/Preferences/TabNine/tabnine.token
[2021-08-25T17:28:22.099662+02:00][WARN][99651 main][auth::user][Some("shared/auth/src/user/mod.rs")][Some(252)] No user token available: No such file or directory (os error 2)
[2021-08-25T17:28:22.099893+02:00][INFO][99651 main][TabNine_deep_local][Some("deep/lunar_endpoints/src/bin/TabNine-deep-local.rs")][Some(132)] parsed settings are Some(Settings { cpu_model: CpuModelSettings { rate_limit_interval_seconds: None, rate_limit_amount: None, enable_power_saving_mode: false }, download: DownloadSettings { api_key: None, meta_data_base_url: "https://api.tabnine.com", model: Model { model_hash_override: None, model_size: Small, base_url: "https://update.tabnine.com" } }, tune: TuneSettings { enable_power_saving_mode: false, override_beams: None, override_context_length: None }, run: RunSettings { is_enabled: true, omit_prefix_suggestions: false, multiline_suggestions: false, line_suggestions: false } })
[2021-08-25T17:28:22.100275+02:00][INFO][99651 main][TabNine_deep_local][Some("deep/lunar_endpoints/src/bin/TabNine-deep-local.rs")][Some(144)] local_lock_path "/Users/username/Library/Preferences/TabNine/3.5.54/TabNine-deep-local.lockSmall"
[2021-08-25T17:28:22.100954+02:00][INFO][99651 main][TabNine_deep_local][Some("deep/lunar_endpoints/src/bin/TabNine-deep-local.rs")][Some(235)] using settings Settings { cpu_model: CpuModelSettings { rate_limit_interval_seconds: None, rate_limit_amount: None, enable_power_saving_mode: false }, download: DownloadSettings { api_key: None, meta_data_base_url: "https://api.tabnine.com", model: Model { model_hash_override: None, model_size: Small, base_url: "https://update.tabnine.com" } }, tune: TuneSettings { enable_power_saving_mode: false, override_beams: None, override_context_length: None }, run: RunSettings { is_enabled: true, omit_prefix_suggestions: false, multiline_suggestions: false, line_suggestions: false } }
[2021-08-25T17:28:22.101337+02:00][INFO][99651 main][watchdog_api::wd_client][Some("shared/wd_api/src/wd_client.rs")][Some(74)] Initializing watchdog client...
[2021-08-25T17:28:22.115137+02:00][INFO][99651 Local Connections Acceptor][lunar_endpoints::local::server][Some("deep/lunar_endpoints/src/local/server.rs")][Some(98)] Got new local client connection 127.0.0.1:59414
[2021-08-25T17:28:22.186150+02:00][INFO][99651 local-forwarder][lunar_local::bridge][Some("deep/lunar_local/src/bridge.rs")][Some(129)] TabNine Local communication thread started.
[2021-08-25T17:28:22.186209+02:00][INFO][99651 local-forwarder][lunar_local::bridge][Some("deep/lunar_local/src/bridge.rs")][Some(95)] Loading model...
[2021-08-25T17:28:22.536177+02:00][INFO][99645 bootstrapper_main_run_loop][bootstrapper::bootstrapper_lib][Some("tabnine/bootstrapper/src/bootstrapper_lib.rs")][Some(256)] current version is Some(Version { major: 3, minor: 5, patch: 33, pre: [], build: [] }), spawned version is Some(Version { major: 3, minor: 5, patch: 54, pre: [], build: [] }), remote version is Version { major: 3, minor: 5, patch: 54, pre: [], build: [] }
[2021-08-25T17:28:22.537695+02:00][INFO][99645 bootstrapper_main_run_loop][bootstrapper::bundle][Some("tabnine/bootstrapper/src/bundle.rs")][Some(611)] lock is at "/Users/username/.vim/bundle/tabnine-vim/binaries/0.0.1/x86_64-apple-darwin/bundle.lock"
[2021-08-25T17:28:22.820046+02:00][INFO][99645 bootstrapper_main_run_loop][bootstrapper::bundle][Some("tabnine/bootstrapper/src/bundle.rs")][Some(263)] local bundle is valid so not downloading BundleContents { version: "3.5.54", files: [FileChecksum { path: "/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.54/x86_64-apple-darwin/TabNine", hash: "f1add140c2a17e5d9da6edce22eb4437fbee93383d9e9187d88832e6066b7534" }, FileChecksum { path: "/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.54/x86_64-apple-darwin/TabNine-deep-cloud", hash: "3495cbb43b5afb4f77fc33adceb5a2b2165d73874ecfce0fd4c6bcf572a15cb6" }, FileChecksum { path: "/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.54/x86_64-apple-darwin/TabNine-deep-local", hash: "d5a14559f467db241b111d1f3e0775e65e1e966e66223b2b1d9b564ee98fd201" }, FileChecksum { path: "/Users/username/.vim/bundle/tabnine-vim/binaries/3.5.54/x86_64-apple-darwin/WD-TabNine", hash: "9940231536ae24db3ca7e4fba0092e047a90a5df58b28a21100aa74fd48bc28d" }] }
[2021-08-25T17:28:22.820826+02:00][WARN][99645 bootstrapper_main_run_loop][bootstrapper::bundle][Some("tabnine/bootstrapper/src/bundle.rs")][Some(625)] relinquishing lock at path "/Users/username/.vim/bundle/tabnine-vim/binaries/0.0.1/x86_64-apple-darwin/bundle.lock"
[2021-08-25T17:28:22.906778+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(161)] active private model is None
[2021-08-25T17:28:22.906856+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(170)] Checking if private model changed
[2021-08-25T17:28:22.906896+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(284)] removing private models from cache
[2021-08-25T17:28:22.907012+02:00][ERROR][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(287)] Failed to remove private models from cache: No such file or directory (os error 2)
[2021-08-25T17:28:22.907474+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(194)] private model is same
[2021-08-25T17:28:22.907519+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(197)] sleeping for 3600s
[2021-08-25T17:28:22.907563+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(170)] Checking if private model changed
[2021-08-25T17:28:22.907596+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(284)] removing private models from cache
[2021-08-25T17:28:22.907683+02:00][ERROR][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(287)] Failed to remove private models from cache: No such file or directory (os error 2)
[2021-08-25T17:28:22.907731+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(194)] private model is same
[2021-08-25T17:28:22.907789+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(197)] sleeping for 3600s
[2021-08-25T17:28:22.907841+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(170)] Checking if private model changed
[2021-08-25T17:28:22.907877+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(284)] removing private models from cache
[2021-08-25T17:28:22.907962+02:00][ERROR][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(287)] Failed to remove private models from cache: No such file or directory (os error 2)
[2021-08-25T17:28:22.908007+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(194)] private model is same
[2021-08-25T17:28:22.908042+02:00][INFO][99648 private-model-update-loop][lunar_connection::private_models][Some("tabnine/lunar_connection/src/private_models.rs")][Some(197)] sleeping for 3600s
[2021-08-25T17:28:22.933686+02:00][INFO][99651 local-forwarder][lunar_local::bridge][Some("deep/lunar_local/src/bridge.rs")][Some(99)] Done loading model (took 0.75 seconds).
[2021-08-25T17:28:23.149967+02:00][INFO][99651 local-forwarder][lunar_local::tune][Some("deep/lunar_local/src/tune.rs")][Some(26)] Selected 3 beams.
[2021-08-25T17:28:23.191231+02:00][INFO][99648 model-pre-loader][lunar_connection::local_lunar_connection][Some("tabnine/lunar_connection/src/local_lunar_connection.rs")][Some(131)] setting default model analytics
[2021-08-25T17:28:23.253271+02:00][INFO][99651 local-forwarder][lunar_local::tune][Some("deep/lunar_local/src/tune.rs")][Some(28)] Selected context length of 200.
[2021-08-25T17:28:33.992593+02:00][INFO][99651 Local Connections Acceptor][lunar_endpoints::local::server][Some("deep/lunar_endpoints/src/local/server.rs")][Some(98)] Got new local client connection 127.0.0.1:59425
[2021-08-25T17:28:47.168891+02:00][INFO][99651 Local Connections Acceptor][lunar_endpoints::local::server][Some("deep/lunar_endpoints/src/local/server.rs")][Some(98)] Got new local client connection 127.0.0.1:59444