Hi team, I am trying to use arise-phoenix in a python file on local, but, I am getting the same error as Kumar M. while opening the url, I don't get any errors either, not sure what could be going wrong, any pointers would be greatly appreciated!
Hey Saishradha M. any steps to reproduce would be super helpful. Could you fill out a bug report with us? https://github.com/Arize-ai/phoenix/issues/new/choose . We will try to reproduce on our end and keep you informed!
Hey Mikyo, I don't have an example notebook for it as it runs properly in the notebook, however when I try integrating with the main codebase, the url get's generated but takes me to connection refused. Is it possible to have a short call, the way I can show you what's going wrong, weirdly I never get any errors.
Saishradha M. when you say the main codebase you are referring to your production langchain app? I think if so you are probably experiencing a network issue with the port. Am I reading your message correctly?
Yes, the production langchain app, but I am currently running it on local. I'm not sure if it's the issue with the port as when I try to host the UI on the same port using a notebook, it works, however with the main codebase, it doesn't host on local, so most probably I feel it could be something else, no idea at all
it is the development code that I am using currently.
You might try just running the phoenix server separate from the langchain app. It might be an issue with the host (which you can pass in when you launch the app or via an env_var PHOENIX_HOST. You could also run the phoenix server via docker: https://github.com/Arize-ai/phoenix/blob/main/Dockerfile. We haven't published imaged for this yet but that would be an alternative as well. I'd try passing in host=0.0.0.0 to launch app first though since 127.0.0.1 might not be routing correctly? Phoenix is running in a thread when you just call launch_app()
What do you mean by running phoenix server separately from the langchain app?
Like in the dockerfile, in the next release you will be able to just python3 -m phoenix.server.main --host 0.0.0.0 serve to run phoenix but for now you should be able to just run the server via a script
import time
import phoenix as px
px.launch_app()
while True:
time.sleep(1) # Sleep for 1 second before running the loop againThe above should work - if it doesn't it might be an issue with how your server is running?
Hi Mikyo I am trying to run phoenix inside docker container . container seems to run but i have this This page isn鈥檛 working localhost didn鈥檛 send any data.ERR_EMPTY_RESPONSE I may be doing this wrong please guide me
docker build -t my-image:latest .
docker run -d --name c1 -p 6060:6060 my-imagerequirements.txt arize-phoenix==0.1.1 s.py
import time
import phoenix as px
px.launch_app()
while True:
time.sleep(1) Dockerfile:-
FROM python:3.9.6
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python3", "s.py"]Yashas A. oh that's awesome you are doing that! I just started publishing an image to dockerhub: https://hub.docker.com/r/arizephoenix/phoenix It's super early days but feel free to try it out! It doesn't need the sleep anymore so it might be better to your liking. Here is the dockerfile: https://github.com/Arize-ai/phoenix/blob/main/Dockerfile You will notice the host parameter being 0.0.0.0 - that may be the key?
