Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefect deploy entrypoint errors with "Conflicting entry found" if create a deployment and then move the directory with the flow and try to create deployment again #9983

Open
4 tasks done
discdiver opened this issue Jun 16, 2023 · 8 comments
Labels
bug Something isn't working status:stale This may not be relevant anymore

Comments

@discdiver
Copy link
Contributor

discdiver commented Jun 16, 2023

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Prefect documentation for this issue.
  • I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

flows.json file in the root ~./prefect directory has the incorrect absolute value if you move your entrypont file and run prefect deploy again. This was tricky to debug because I didn't know where the old file path was stored.

Rerunning

prefect deploy 104/flows.py:pipe

after changing the file path where you flow code exists results in:

pipe: 
Desktop/prefect/demos/certification_courses/pacc/pacc-june-demos
/104/flows.py:pipe

The indicated directory no longer exists. I'm not sure why it would matter if it did exist. There is no other flow.py file in the directory where I run the command.

Relevant section of the codebase:

Reproduction

`prefect deploy my_file.py:my_flow`

Error

entry found for flow with name 'pipe':
pipe: 
Desktop/prefect/demos/certification_courses/pacc/pacc-june-demos
/104/flows.py:pipe

Versions

Version:             2.10.15
API version:         0.8.4
Python version:      3.10.8
Git commit:          49205e57
Built:               Fri, Jun 16, 2023 1:29 PM
OS/Arch:             darwin/arm64
Profile:             prod
Server type:         cloud


### Additional context

_No response_
@discdiver discdiver added bug Something isn't working status:triage labels Jun 16, 2023
@discdiver discdiver changed the title prefect deploy my_file:my_flow "Conflicting entry found for flow" for non-existent entrypoint when runprefect deploy my_file:my_flow Jun 16, 2023
@discdiver discdiver changed the title "Conflicting entry found for flow" for non-existent entrypoint when runprefect deploy my_file:my_flow "Conflicting entry found for flow" for non-existent entrypoint when run prefect deploy my_file:my_flow Jun 16, 2023
@discdiver discdiver changed the title "Conflicting entry found for flow" for non-existent entrypoint when run prefect deploy my_file:my_flow In some cases prefect deploy entrypoint looks for deleted entrypoint files and incorrectly concludes Conflicting entry found for flow with name Jun 16, 2023
@discdiver discdiver reopened this Jun 17, 2023
@discdiver discdiver changed the title In some cases prefect deploy entrypoint looks for deleted entrypoint files and incorrectly concludes Conflicting entry found for flow with name prefect deploy entrypoint errors with "Conflicting entry found" if create a deployment and then move the directory and try to create deployment again Jun 17, 2023
@discdiver discdiver changed the title prefect deploy entrypoint errors with "Conflicting entry found" if create a deployment and then move the directory and try to create deployment again prefect deploy entrypoint errors with "Conflicting entry found" if create a deployment and then move the directory with the flow and try to create deployment again Jun 17, 2023
@discdiver
Copy link
Contributor Author

@desertaxle or @serinamarie - probably of interest to you.

@discdiver
Copy link
Contributor Author

Somewhat related - flows.json also gets created and populated in ~/.prefect directory even if the prefect deploy entrypoint is aborted during the guided creation experience.

@discdiver
Copy link
Contributor Author

discdiver commented Jun 22, 2023

Ideally flows.json would not be created at all. We saw an error resulting from hard-to-find flows.json at PACC London.

@taylor-curran
Copy link
Contributor

I had the same issue but then I deleted /.prefect/flows.json and that fixed it 🎉

@jeremytanjianle
Copy link

jeremytanjianle commented Jul 10, 2023

Ideally flows.json would not be created at all. We saw an error resulting from hard-to-find flows.json at PACC London.

I agree with this comment regarding flows.json... and that actively deleting ~/.prefect/flows.json is quite a troublesome fix.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

This issue is stale because it has been open 30 days with no activity. To keep this issue open remove stale label or comment.

@github-actions github-actions bot added the status:stale This may not be relevant anymore label Aug 9, 2023
@johnkangw
Copy link

@discdiver @taylor-curran I have an issue where I run prefect deploy --all on my local machine (Windows), which works and populates the flow.json. The problem is that I have a GitHub action that runs the same command but errors out because the pathing is different using a Ubuntu runner. Not having a flows.json would be nice.

@discdiver
Copy link
Contributor Author

@desertaxle fyi - passing along, @johnkangw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:stale This may not be relevant anymore
Projects
None yet
Development

No branches or pull requests

4 participants