Hi all Starting from 0.14.17 _(also in 0.14.19)_ t...
# ask-community
m
Hi all Starting from 0.14.17 (also in 0.14.19) the gitlab storage does not work anymore:
Failed to load and execute Flow's environment: GitlabGetError('404 Project Not Found')
We use it with a own hosted gitlab environment. Beside of the new based docker image, we changed nothing:
prefecthq/prefect:0.14.12-python3.8 -> prefecthq/prefect:0.14.17-python3.8
prefecthq/prefect:0.14.12-python3.8 -> prefecthq/prefect:0.14.19-python3.8
Till 0.14.16 it's working:
prefecthq/prefect:0.14.12-python3.8 -> prefecthq/prefect:0.14.16-python3.8
The new Git storage is not able to handle the company's certificate (this was my first try): git storage: ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131) Are there any problems known? We use it like this in the flow configuration:
Copy code
, storage=GitLab(
    host="<https://gitlab.xxx.ch>"
    , repo="group/repo"
    , path="test_flow.py"
    , ref="feature"
    , secrets=["GITLAB_ACCESS_TOKEN"]
)
1
k
Hey @Michael Hadorn! I was looking and that storage file literally hasn’t changed since 0.14.7. Will look into it a bit.
There was a python-gitlab release 23 days ago. If it’s fine with you, could you try pinning to python-gitlab 2.6 with a newer Prefect image and see if it works?
If that works for you, we’ll open an issue to pin this to python-gitlab 2.6
m
Hi @Kevin Kho Thanks a lot, this solved my issue! It's working with python-gitlab 2.6. I installed everything with "pip install -e ." for building the docker image. The setup.py contains also "prefect[gitlab]==0.14.19". But prefect is already in the base image, so i removed this from the setup and added new python-gitlab==2.6.0. So my problem regarding the gitlab storage is solved. Do you know, if I could use the new git storage with certificate? I think thats the reason you built the git storage, to get rid of dependencies like this python-gitlab. So we should switch to this storage class.
k
There is a bit more work being done on that so I wouldn’t recommend that yet. I believe that was added to support Deploy Keys
m
Ok. Thanks! You guys are awesome!