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

Python deployment sometimes fails #2690

Open
erikpa1 opened this issue Oct 8, 2024 · 3 comments
Open

Python deployment sometimes fails #2690

erikpa1 opened this issue Oct 8, 2024 · 3 comments
Milestone

Comments

@erikpa1
Copy link

erikpa1 commented Oct 8, 2024

Hi I deployed same code multiple times , only with config file changed, and sometimes in 10 deployments I got logs from web app

2024-10-08T12:30:06.792299777Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-08T12:30:06.792307278Z File "", line 1204, in _gcd_import
2024-10-08T12:30:06.792315078Z File "", line 1176, in _find_and_load
2024-10-08T12:30:06.792322079Z File "", line 1140, in _find_and_load_unlocked
2024-10-08T12:30:06.792329079Z ModuleNotFoundError: No module named 'app'

The logs says all deployed, but anyway I got the same error

I deployed the same code 4x in row and on 4th try it worked...

I know maybe it's not in the power of plugin but it could be nice to list final files structure or something like that

@MicroFish91
Copy link
Contributor

For successfully deployed files, you can view under the files node of the resource in the tree view. It could definitely be useful to display the output files during deployment as well, we should look into providing better indicators using our newer activity log features.

@MicroFish91 MicroFish91 added this to the Backlog milestone Oct 9, 2024
@erikpa1
Copy link
Author

erikpa1 commented Oct 10, 2024

@MicroFish91

The Files are not working even via ftps because, there is some random file (maybe I created a time ago) after deployment there is really a lot of files, not only this one... I think Microsoft for python app stopped support this folder...

Image

As you can see I deployed project, but it's not there there is still the same app.py file,... :

Image

@erikpa1
Copy link
Author

erikpa1 commented Oct 11, 2024

@MicroFish91

Ok I figured out, but I have no Idea what to do with this understanding, sometimes when I deploy there is version from many months before, where is only "app.py" which when I fixed it solved "No module named 'app'", but this is also second problem, WHY there is this file ? why it's even showing, why in www/root are not my files ? or better question, where they are ? :D

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants