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

when Interact with the Server, All connection attempts failed #33

Open
YinSonglin1997 opened this issue Aug 1, 2024 · 6 comments
Open

Comments

@YinSonglin1997
Copy link

I start an App and Interact with the Server, when I print "hello", it reported the error shown in the picture below:

捕获

Then I start a script that can create an agent and interact with the inference server, it has the same problem httpx.ConnectError: All connection attempts failed.

捕获

What is the cause of this error? Could it have something to do with my server address? My server address is 10.0.1.227.

@MontaEllis
Copy link

Just disable ipv6

@YinSonglin1997
Copy link
Author

Thank your for your reply, it works.
And I have another question, how do you add API Keys for Tools, I don't know exactly how to add, can you provide some specific steps?

@MontaEllis
Copy link

Actually, I don't know. I'm still trying to figure it out. I discovered that app/main.py can't process uploaded files.

@dltn
Copy link
Contributor

dltn commented Aug 12, 2024

Hi @YinSonglin1997, I'm curious to learn more about your setup – were you hosting the inference server elsewhere? How did you disable IPv6?

Re: API keys, they're pulled from environment variables. I'll add some documentation around that.

@MontaEllis, I'd like to help you debug why app/main.py can't process files – could you create a new issue with details?

@YinSonglin1997
Copy link
Author

llama inference start --disable-ipv6

@pitimespi
Copy link

Is there a way to have llama_stack_client include a message about ipv6 in the ConnectionError message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants