Raúl Mansilla
07/14/2021, 10:30 AMrequests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=4200): Max retries exceeded with url: /graphql (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f373f0b32b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages
# <https://pip.pypa.io/en/stable/reference/pip_install/#caching>
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
cache:
paths:
- .cache/pip
- venv/
before_script:
- python -V # Print out python version for debugging
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
test:
script:
- pip install -Iv prefect==0.14.19
- prefect version #for debugging
- mkdir .prefect
- touch .prefect/config.toml
- echo -e '[server]\nhost="<http://ip_to_prefect_server>"' > .prefect/config.toml
- prefect backend server
- prefect register --project raulTesting -p /builds/dmed/soa/prefect/overon_get_missing_test/overon_get_missing_gitlab.py -l "nld_migration"
tags:
- local-host
Kevin Kho
07/14/2021, 1:51 PMlocalhost
does seem to be the issue. I guess we need to test if that config.toml
is being picked up? Not sure how to test right now, will ask the team.nicholas
07/14/2021, 2:29 PMservers
as your config.toml section header, which should be server
, try adjusting thatRaúl Mansilla
07/14/2021, 3:29 PMnicholas
07/14/2021, 3:35 PM.prefect/config.toml
in the correct location; I believe it needs to be in the home directory (~
)Raúl Mansilla
07/14/2021, 3:40 PMnicholas
07/14/2021, 4:02 PM