https://prefect.io logo
Title
m

Marion Sauvage

01/05/2023, 10:17 AM
Hello , I am trying to set up a prefect Orion server. I am having trouble creating a work queue. I had the error :
Error occured when trying to create new work queue
in a 405 response for a request to
<http://xx.xx.xx.xx:4200/xx.xx.xx.xx:4200/api/work_queues/>
We use this Dockerfile to run the server:
FROM python:3.9.16

RUN pip install prefect prefect[aws]
RUN prefect config set PREFECT_API_URL=http:/xx.xx.xx.xx:4200/api
CMD ["prefect", "orion", "start", "--host", "0.0.0.0"]
Thanks a lot for your help !
1
Prefect version: 2.7.5
d

Danilo Drobac

01/05/2023, 3:52 PM
How are you trying to create the work queue?
Using the UI or are you applying a Deployment
a

Aymeric Alixe

01/05/2023, 4:23 PM
@Danilo Drobac with the ui
d

Danilo Drobac

01/05/2023, 4:47 PM
Can you try creating one with the CLI or by creating a Deployment to see whether that works? If so then it's some sort of issue with the UI server.
a

Aymeric Alixe

01/05/2023, 5:08 PM
@Danilo Drobac We created one with a deployment as well (no error returned). But still not visible with the ui
d

Danilo Drobac

01/05/2023, 7:47 PM
Well that's an interesting problem in itself. If the Deployment is running successfully and you're not seeing the results, that is curious. Are you running the CLI commands from the container (where the Orion server is)? Or are you doing them from a local terminal and trying to connect to the Docker container?
a

Aymeric Alixe

01/06/2023, 8:54 AM
We were doing it from a local terminal with env PREFECT_API_URL set to remote api http😕xx.xx.xx.xx:4200/api
b

Benoît Linsey-Fazi

01/06/2023, 11:11 AM
Problem fixed, the issue came from a typo thank you for your help
👍 3