-
Notifications
You must be signed in to change notification settings - Fork 652
404 files when publishing to azure using github CI but only the first time. Redeploy same commit works. #2277
Comments
can you share your Web App name, directly or indirectly? I'll take a look at what's going on. |
this one: dummyfordiscovery |
I'm experiencing a similar issue. Since around 2 weeks I need to deploy twice to get my changes live. I'm using VS 2017 csproj without any special configuration. |
@Bartmax I tried to build your project locally in my VS2015, but it failed at restoring packages...
it looks like there is an issue with bower, but my Azure deployment is successful, I wasn't able to reproduce your issue...
what exactly is the error message you are seeing, mine just shows |
There's no error on publish. The problem is client side files (CSS,js, etc) are not copied to target folder and you got 404 not found when accessing the site for those files.
…Sent from my iPhone
On Wed, Dec 21, 2016 at 6:24 PM -0300, "watashiSHUN" <notifications@github.com> wrote:
@Bartmax I tried to build your project locally in my VS2015, but it failed at restoring packages...
bower startbootstrap-sb-admin-2#^1.0.8 ENORESTARGET No tag found that was able to satisfy ^1.0.8
Additional error details:
No versions found in https://github.com/IronSummitMedia/startbootstrap-sb-admin-2.git
it looks like there is an issue with bower, and after I made the following change:
my Azure deployment is successful, I wasn't able to reproduce your issue...
Note: I already published this way like 20 times, 18 out of 20 got the error but not always.
what exactly is the error message you are seeing, mine just shows Deployment successful
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Please remove the project name from the image/references. I'm rather prefer to not disclose the name publicly
…Sent from my iPhone
On Wed, Dec 21, 2016 at 6:24 PM -0300, "watashiSHUN" <notifications@github.com> wrote:
@Bartmax I tried to build your project locally in my VS2015, but it failed at restoring packages...
bower startbootstrap-sb-admin-2#^1.0.8 ENORESTARGET No tag found that was able to satisfy ^1.0.8
Additional error details:
No versions found in https://github.com/IronSummitMedia/startbootstrap-sb-admin-2.git
it looks like there is an issue with bower, and after I made the following change:
my Azure deployment is successful, I wasn't able to reproduce your issue...
Note: I already published this way like 20 times, 18 out of 20 got the error but not always.
what exactly is the error message you are seeing, mine just shows Deployment successful
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@Bartmax I edited @watashiSHUN's entry. |
My bad, so that every time you push to Azure, it's just a theory, not confirmed yet. But for now, your easiest workaround it simply change your
[Edit] |
thank you @watashiSHUN, sounds very reasonable. I'll try that workaround and see if that helps. |
@watashiSHUN now that we are in |
@watashiSHUN no, those options behave exactly the same as project.json. I was thinking about something about include content but i figured that my folder is not on source control, so I added a .gitignore file inside wwwroot and included the empty folder on source control. I just saw your edit:
hope that fixes it :) |
@watashiSHUN mm. having an empty wwwroot on source control does NOT fixed the publish issue. I still have to redeploy twice to get assets. Why that would be the case? |
looks like "dummyfordiscovery" is no longer available, can you share another one? |
created |
How did you add the
after pushing to Azure, I verify the existence of |
My mistakes, I was looking at your old project, I didn't realize that your repository is actually under what I tried (and luckily worked) is this:
you can do this kind of recursive copy at different stages of the build/publish life cycle, does that help? |
@watashiSHUN I'll give it a try and let you know. i'm wondering why no one else seems to have this problem. |
Hi If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure: This way we can better track and assist you on this case Thanks, Joaquin Vano |
copied from: dotnet/aspnetcore#1879
I'm using ASPNET Core with grunt,bower version 1.1 (using project.json)
Every time I push to master, a build is triggered (configured on azure CI portal).
The first time, it publish successfully but all js and css are missing. (took like 10 mins to publish) (no files on disk and 404 errors) [grunt failed??]
Then I click on redeploy on azure portal (without touching anything from code) (it took a little less than previous one) and the second time it publishes successfully.
Note: I already published this way like 20 times, 18 out of 20 got the error but not always.
Note2: I never had to redeploy more than once. Everytime it fails, I click redeploy and every go smoothly on the 2nd try.
I find it hard to "debug" this but it's getting very annoying since the build got more frequent. Any ideas?
The text was updated successfully, but these errors were encountered: