Hello everyone, I'm completely new to metaflow. I...
# ask-metaflow
f
Hello everyone, I'm completely new to metaflow. I'm just trying to run this simple command : METAFLOW_SERVICE_URL=http://localhost:8080 METAFLOW_DEFAULT_METADATA="service" python3 testflow.py run but I receive the following message error "ConnectionRefusedError: [Errno 111] Connection refused" (I'm working on ubuntu 20.04 ). I would like to know if anyone can help me pls ?
v
hi Lamia 👋 firstly, you can use Metaflow without those two environment variables. Have you tried just
Copy code
python3 testflow.py run
It should work out of the box by using local files for metadata. If you want to use the central metadata service, you need to deploy the service e.g. on your cloud account using these instructions (or you can test it locally too with a bit more effort).
f
Hello thanks for your answer ! Actually I've already followed this tutorials and evrything works locally including the command line you sent. Right now I'm trying to setup the Client API following https://github.com/Netflix/metaflow-service . Currently I have an issue with the command line 'python3 -m services.metadata_service.server' which outputs me this error ERRORasyncioException in callback Connection._ready(<weakref at 0...x7f61200f9a00>) at /home/lUSER/.local/lib/python3.9/site-packages/aiopg/connection.py:779 handle: <Handle Connection._ready(<weakref at 0...x7f61200f9a00>) at /home/lamiasalhi/.local/lib/python3.9/site-packages/aiopg/connection.py:779> Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/home/USER/.local/lib/python3.9/site-packages/aiopg/connection.py", line 837, in _ready self._loop.add_writer( File "/usr/lib/python3.9/asyncio/selector_events.py", line 341, in add_writer self._add_writer(fd, callback, *args) File "/usr/lib/python3.9/asyncio/selector_events.py", line 299, in _add_writer self._selector.modify(fd, mask | selectors.EVENT_WRITE, File "/usr/lib/python3.9/selectors.py", line 390, in modify self._selector.modify(key.fd, selector_events) FileNotFoundError: [Errno 2] No such file or directory ERRORAsyncPostgresDBglobal:Exception occurred Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/tasks.py", line 490, in wait_for return fut.result() asyncio.exceptions.CancelledError
v
did you try the instructions under "Docker compose" https://github.com/Netflix/metaflow-service#using-docker-compose
1
f
Hi @straight-shampoo-11124, thanks for your answer again 😁. And sorry for the previous questions that looks irrelevant now that I look at them 😅. Actually I had to go through the docker documentation as I wasn’t familiar with it, now I figured out how to use the metaflow UI, but I have few questions : • First, right now to run the GUI, I run the command ‘docker-compose -f docker-compose.development.yml up’, and then I run the container of the metaflow-ui that I built from the https://github.com/Netflix/metaflow-ui. Is is the correct way to proceed ? Because https://github.com/Netflix/metaflow-service proposes 2 compose-up command lines, one that does create a container after building an image and the one for development that I’m using. From what I understood the docker-compose.development.yml has to be used to run the metaflow-ui. Am I correct, and if yes, do I have to run each time the command ‘docker-compose -f docker-compose.development.yml up’ as I understood ? • Secondly, I came up with an error with the DAG in the metaflow-ui, which gives me the following error in image. Did anyone faced this issue ? Or maybe it is a problem with some configuration on my linux... the rest of the features seems to work fine.