-
Notifications
You must be signed in to change notification settings - Fork 199
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
Getting 404 when deploying #192
Comments
Ok, so, it worked once I switched to using windows. Here's the YAML (https://github.com/DevBetterCom/DevBetterWeb/blob/main/.github/workflows/ci-cd.yml):
Only thing I changed is |
Hi @ardalis, I'm not sure exactly what the difference is between the different OS's for publishing with Zip Deploy, but given that your target app is running on Windows, this might be the expected behavior. |
Hi, I just had a call with the Azure Support team. We experience the same problem as mentioned in the initial post, a "CODE 404" error on the zip deploy. Curiously when switching the github action from ubuntu-latest to windows-latest the issue appears to resolve for us as well. We also run the Azure App Service on Windows, however I fail to understand how a network request fails if it is made between a linux and a windows machine but doesn't between two windows machines. We also had the issue one or two weeks ago and were also in contact with Azure Support but it auto resolved a couple of days after the first appearance. |
@ehamai if it's the expected behavior it should be well-documented; is it documented at all? Also, if this is the expected or known behavior, I would expect a more helpful error message than a 404 Not Found with no other useful information. Last time I checked, HTTP worked across different operating systems, so I'm guessing the issue isn't at the HTTP layer, but somewhere in Azure's stack, where they could have chosen a different, more informative response. |
I don't think it's desired behaviour, it has been working fine for many months up until now. |
We just ran into the problem again even when using windows actions. Edit: Switching back to running the actions on linux again mitigated the problem this time. There's something really strange afoot here. |
Yea. this issue suddenly popped up again. Getting CODE 404. |
@spellegrino021 could you help take a look into this please? |
This issue is idle because it has been open for 14 days with no activity. |
Any updates here? |
This issue is idle because it has been open for 14 days with no activity. |
Any updates here? Right now I can work around this by swapping my container between windows and ubuntu, but this is annoying and it seems to be inconsistent as to which one will work and when. |
We haven't hit this snag for over a month now. We didn't need to take further action. |
I'm still getting this daily. running azure/webapps-deploy@v2 |
This issue is idle because it has been open for 14 days with no activity. |
I was also getting the 404 error while deploying, after debugging I found the IIS server is throwing 404 because my commit message was pretty long (because of merging multiple commits using squash & merge option in the pull request in Github the description contained commit messages of all the previous commits before squash and this big commit message is now being passed as query parameter to Kudu server in the App Service) and it exceeded the default allowed URL parameters length by the IIS server of App Service (Windows).
I have created a new commit with shorter commit message and the deployment was successful even when I have used the "runs-on: ubuntu-latest" option. |
Wow! What a find ... is there a way to prevent the GH action from sending that? This definitely tracks with our situation. I thought the resolution was swapping the container ... but to do that, i was making a small commit which likely is what solved the problem then.
|
I believe we need to make the changes in src/actionparameters.ts and raise a pull request to fix thing, I think instead of removing the entire commit message we can trim the long commit messages going beyond a fixed length. From this url the default size for maxQueryString is 2048 bytes. |
This issue is idle because it has been open for 14 days with no activity. |
It would be really nice if someone could look at and merge #226 to fix this problem. Ran into it again today. |
This issue is idle because it has been open for 14 days with no activity. |
It is not idle, it's waiting for someone to look at #226 |
This issue is idle because it has been open for 14 days with no activity. |
Still not idle |
I sent an approval on it hoping it might get some attention |
This issue is idle because it has been open for 14 days with no activity. |
Still not idle |
i am still getting a mysterious 404 error and it so happens that i got it when committing with a long commit message, but i cannot get it unstuck with a smaller subsequent commit message
|
This if for a public repo you can see here:
https://github.com/DevBetterCom/DevBetterWeb
Running the CI/CD workflow (github action), everything works until the deploy step, when I get back a 404 result. Here's the failing log:
I've been searching and I can't find any information on why one might get a 404 here. I don't see anything in the Azure Portal for this app (though I admit I'm not sure where to look). I just tried switching the deploy step to use Windows instead of Ubuntu - not sure if that will make a difference. Any ideas?
The text was updated successfully, but these errors were encountered: