TabbyML / tabby

Self-hosted AI coding assistant
https://tabbyml.com
Other
21.78k stars 992 forks source link

Error messages: tabby: kinfo_getfile(): No such process #2158

Open yurivict opened 5 months ago

yurivict commented 5 months ago

Describe the bug

Errors during startup:

2024-05-17T05:08:41.094360Z  INFO tabby::download: crates/tabby/src/download.rs:18: model 'TabbyML/StarCoder-1B' is ready
[yuri@yv /usr/ports/devel/tabby]$ tabby serve --model TabbyML/StarCoder-1B
2024-05-17T05:11:27.726789Z DEBUG tabby::serve: crates/tabby/src/serve.rs:121: Starting server, this might take a few minutes...
2024-05-17T05:11:28.327534Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
TextInferenceEngineImpl: warmup failed
tabby: kinfo_getfile(): No such process
tabby: kinfo_getfile(): No such process

Errors printed later on:

2024-05-17T05:12:28.330593Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:13:28.332007Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:14:28.333567Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:14:38.534846Z  WARN tabby_webserver::service::auth: ee/tabby-webserver/src/service/auth.rs:103: Failed to send signup email: Email is not configured
2024-05-17T05:15:28.335566Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:16:28.337562Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:17:28.338621Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:18:28.340763Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`
2024-05-17T05:19:28.341483Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready `Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'`

Information about your version 0.11.1

Information about your GPU n/a

FreeBSD 14.0

wsxiaoys commented 5 months ago

2024-05-17T05:12:28.330593Z DEBUG tabby::services::code: crates/tabby/src/services/code.rs:64: Source code index is not ready Failed to open the directory: 'DoesNotExist("/home/yuri/.tabby/index")'

This is debug only logging and can be safely ignored.

TextInferenceEngineImpl: warmup failed tabby: kinfo_getfile(): No such process tabby: kinfo_getfile(): No such process

These are something new - could you check if it presents in current main branch? we changed the inference implementation into a subprocess recently, which should generates better debugging log

yurivict commented 5 months ago

The "tabby: kinfo_getfile(): No such process" messages disappear when "DoesNotExist("/home/yuri/.tabby/index")" messages disappear.

It appears that the index is built slowly and appears only later? Maybe the spawned process dies early because index doesn't exist yet?