Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Logout after writing a prompt #3492

Closed
Mte90 opened this issue Nov 29, 2024 · 8 comments
Closed

Logout after writing a prompt #3492

Mte90 opened this issue Nov 29, 2024 · 8 comments

Comments

@Mte90
Copy link

Mte90 commented Nov 29, 2024

Describe the bug
I have tabby at autostart of my workstation, it remember by yesterday login but if I wrote a prompt in the chat panel the AI starts replying to me but I am getting logged out.
When I login the chat I started is missing and I have to do it from start the prompt.
Sometimes I get also an alert during the login about the database locked so I have to close the tabby process and restart it.

Information about your version
0.21-rc4

@wsxiaoys
Copy link
Member

Hi - since Tabby utilize your personal auth token for chat panel / server communication, could you verify if the auth token changed during your restart? If not, can you share the output panel logs when you getting logout?

@Mte90
Copy link
Author

Mte90 commented Nov 29, 2024

So I checked (it is happened right now), from the avatar menu the token before writing in the chat panel and after the login it is the same.

@Mte90
Copy link
Author

Mte90 commented Dec 2, 2024

image

This is what I get after login, use it a bit and I get a logout again.

@wsxiaoys
Copy link
Member

wsxiaoys commented Dec 2, 2024

Can you share your auto-start setup for Tabby?

@Mte90
Copy link
Author

Mte90 commented Dec 2, 2024

I have this script on auto start in KDE on Linux: /[path]/tabby_x86_64-manylinux2014-cuda122/tabby serve --model Qwen2.5-Coder-7B --chat-model Mistral-7B --device cuda --port 5000 &

@wsxiaoys
Copy link
Member

wsxiaoys commented Dec 2, 2024

My best guess is that your setup initiates multiple Tabby processes, which in turn causes the SQLite database to become locked. I recommend configuring a supervisor to prevent such situations.

@Mte90
Copy link
Author

Mte90 commented Dec 2, 2024

I can confirm that there is only one tabby process as I have just one in the process manager when I have to kill to restart it.

@wsxiaoys
Copy link
Member

wsxiaoys commented Dec 2, 2024

Depending on your process termination setup, you might not be waiting for the process to exit gracefully, which could result in the SQLite database file being locked.

check https://stackoverflow.com/questions/151026/how-do-i-unlock-an-sqlite-database for a potential workaround

@TabbyML TabbyML locked and limited conversation to collaborators Dec 2, 2024
@wsxiaoys wsxiaoys converted this issue into discussion #3498 Dec 2, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants