<@ULVA73B9P> I am trying to set the `path` of a de...
# ask-marvin
a
@Marvin I am trying to set the
path
of a deployment inside
prefect.yaml
. This works on prefect cloud but is not working on self-hosted prefect for some reason. Is there a reason why?
m
Error: status_code: 529, model_name: claude-3-5-sonnet-latest, body: {'type': 'error', 'error': {'type': 'overloaded_error', 'message': 'Overloaded'}}
thought for 44.3 seconds
Based on the research and issue review, here's what's happening with deployment paths in `prefect.yaml`: 1. First, to clarify - the
path
setting in
prefect.yaml
should work identically between Prefect Cloud and self-hosted environments. There's no architectural difference in how this is handled. 2. However, there are a few common reasons why this might not be working in your self-hosted environment: - Environment Variables: Make sure any environment variables referenced in your path (using
{{ $MY_ENV_VAR }}
syntax) are properly set in your self-hosted environment - Server Configuration: Verify that your self-hosted server's
PREFECT_API_URL
is correctly configured - Authentication: Ensure proper authentication is set up for your self-hosted instance 3. To help diagnose the issue, could you share: - The specific path configuration you're using in your
prefect.yaml
- Any error messages you're seeing - Whether you're using environment variables in the path setting This will help me provide more targeted assistance for your specific setup. In the meantime, here are some best practices for deployment paths in self-hosted environments: - Use relative paths when possible to maintain portability - If using absolute paths, consider using environment variables for flexibility - Ensure all referenced directories exist and have appropriate permissions - Double-check that your self-hosted server has access to the specified paths You can find more details about deployment configuration in the Prefect documentation.
a
this is my deployment configuration in prefect.yaml:
Copy code
- name: production
  version: null
  tags: []
  description: null
  schedule: null
  flow_name: hello-world
  entrypoint: flows/hello_world.py:hello_world
  path: flows
there is no error. when deploying on cloud, i see
Path: flows
in the Prefect UI. on self-hosted, I see
Path: None
.