Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

CI working intermittently for Azure website #228

Closed
starlogik opened this Issue · 8 comments

4 participants

starlogik David Ebbo bradmi Dinesh Ravva
starlogik

I have several Azure websites, when I setup CI with github, if the repo is itself a web project, there is no problem.

when the repo is a solution with .sln file, and there is 1x MVC4 website in a subdirectory, the site mostly will not deploy (nor show any errors in the Azure website deployment page).

once in a while it works, randomly though, this happens with or without a .deployment file in the root.
this happens on 2 websites on both the master and staging branches

folder structure is as follows:

root
  |
  |---- class lib1
  |
  |---- class lib2
  |
  |---- web_project
  |          |---- * ...
  |          |---- web_project.csproj
  |
  |---- class lib3
  |
  |---- packages (nuget)
  |
  |---- .deployment
  |
  |---- .gitignore
  |
  |---- solution.sln

.deployment content is

[config]
project = web_project

the repo also has a webhook for appharbor, which builds without a problem.

is this a common issue, is there any way to see an error log if not visible in the azure portal (I have also looked through the files FTP.

ps github repository is private

David Ebbo
Owner

@starlogik In order to isolate and remove ambiguity, would you be able to share a minimal repo where you are seeing this behavior?

Also, do you only see this behavior when you use the CI hook, or also when you push directly to the Azure web site? Thanks!

David Ebbo davidebbo was assigned
starlogik

@davidebbo I see this behavior when I use the CI hook.

I setup another project with a similar structure and it seemed to work (the repository updated after the CI hook albeit the deployment build failed because of missing Azure assemblies which I'm sure is easily solved).

so to rule out that the problem could be with the Azure website, I have just created a new fresh website with the same Git publishing settings as my problem site.
both sites are configured to the same Git project on the master branch.
I then did a push to master, and magically the problem site received the deployment, updated and built successfully!

but now the new site still has no deployments, I checked the git trace files in FTP and it looks as if the hook was received, although the repository and deployments directories are empty.

perhaps my understanding of how this process works is a little skew, though I do think there is a problem here.
is it possible that the repo is too large?
since I have used TFS publishing previously, there are also PublishProfiles lingering in my project. could this be conflicting?

starlogik

@davidebbo, an update... I think the problem is definitely with the GitHub hook only.
if I push changes to the azure repo, the deployment updates immediately everytime without fail.
but if the changes are pushed to the GitHub repo, although the trace shows that the webhook was received, the deployment very seldom updates.

David Ebbo
Owner

Strange, I'm sure I had replied earlier but don't see it here. Might have left it in a browser and forgot to click send. Oh well! :)

Would you be able to share your log, or at least paste the part that relates to the hook from Github? It is strange that the hook would be received yet that no deployment would happen.

starlogik

I have just setup a new site with Git publishing to the same GitHub repo, I have not made pushed any new changes to give the site time to receive it. after about 30mins still no existing deployment is visible. ( fyi the size of the repo is ~100MB )

herewith the entire git trace @ /LogFiles/Git/trace/trace.xml, which as of a few minutes ago is now empty again, as are the /site/deployments and /site/repository directories.

should i perhaps be tracing elsewhere?

<?xml version="1.0" encoding="utf-8"?>
<trace>
    <step title="Incoming Request" date="12/03 7:20:32" url="/settings/branch" method="GET" type="request" h_Connection="Keep-Alive" h_Accept="application/json" h_Authorization="Basic JHRlc3Rmb3JlYmJvOmdKY0tENHBLM0ZlRGh3R29sRWZlc0doWHFIdWd0QmlTcHN2TnpoQ2p5Tmo1bjR6SFphNWN2Z3Z0WGJiOA==" h_Host="testforebbo.scm.azurewebsites.net" h_Max-Forwards="9" h_X-LiveUpgrade="1" h_X-Original-URL="/settings/branch" h_X-Forwarded-For="70.37.162.148:4608, 10.207.174.53" h_X-ARR-LOG-ID="68c3ec92-c639-4640-bc34-3d61e08b8a97" elapsed="522">
        <step title="Outgoing response" date="12/03 7:20:33" type="response" statusCode="404" statusText="Not Found" h_Server="Microsoft-IIS/7.5" h_Cache-Control="private" h_X-AspNet-Version="4.0.30319" h_Content-Type="application/json; charset=utf-8" elapsed="0" />
    </step>
    <step title="Incoming Request" date="12/03 7:20:33" url="/settings/branch" method="GET" type="request" h_Connection="Keep-Alive" h_Accept="application/json" h_Authorization="Basic JHRlc3Rmb3JlYmJvOmdKY0tENHBLM0ZlRGh3R29sRWZlc0doWHFIdWd0QmlTcHN2TnpoQ2p5Tmo1bjR6SFphNWN2Z3Z0WGJiOA==" h_Host="testforebbo.scm.azurewebsites.net" h_Max-Forwards="9" h_X-LiveUpgrade="1" h_X-Original-URL="/settings/branch" h_X-Forwarded-For="70.37.162.148:13743, 10.207.208.25" h_X-ARR-LOG-ID="d0155055-668b-4d73-af00-8e74803e9caa" elapsed="2">
        <step title="Outgoing response" date="12/03 7:20:33" type="response" statusCode="404" statusText="Not Found" h_Server="Microsoft-IIS/7.5" h_Cache-Control="private" h_X-AspNet-Version="4.0.30319" h_Content-Type="application/json; charset=utf-8" elapsed="0" />
    </step>
    <step title="Incoming Request" date="12/03 7:20:33" url="/settings/branch" method="GET" type="request" h_Connection="Keep-Alive" h_Accept="application/json" h_Authorization="Basic JHRlc3Rmb3JlYmJvOmdKY0tENHBLM0ZlRGh3R29sRWZlc0doWHFIdWd0QmlTcHN2TnpoQ2p5Tmo1bjR6SFphNWN2Z3Z0WGJiOA==" h_Host="testforebbo.scm.azurewebsites.net" h_Max-Forwards="10" h_X-LiveUpgrade="1" h_X-Original-URL="/settings/branch" h_X-Forwarded-For="70.37.162.148:15216" h_X-ARR-SSL="2048|128|DC=com, DC=microsoft, DC=corp, DC=redmond, CN=Microsoft Secure Server Authority|CN=*.azurewebsites.net" h_X-ARR-LOG-ID="a262e245-f15c-469a-b690-715dfcdc7675" elapsed="3">
        <step title="Outgoing response" date="12/03 7:20:33" type="response" statusCode="404" statusText="Not Found" h_Server="Microsoft-IIS/7.5" h_Cache-Control="private" h_X-AspNet-Version="4.0.30319" h_Content-Type="application/json; charset=utf-8" elapsed="0" />
    </step>
    <step title="Incoming Request" date="12/03 7:20:50" url="/settings/branch" method="GET" type="request" h_Connection="Keep-Alive" h_Accept="application/json" h_Authorization="Basic JHRlc3Rmb3JlYmJvOmdKY0tENHBLM0ZlRGh3R29sRWZlc0doWHFIdWd0QmlTcHN2TnpoQ2p5Tmo1bjR6SFphNWN2Z3Z0WGJiOA==" h_Host="testforebbo.scm.azurewebsites.net" h_Max-Forwards="10" h_X-LiveUpgrade="1" h_X-Original-URL="/settings/branch" h_X-Forwarded-For="70.37.162.148:54234" h_X-ARR-SSL="2048|128|DC=com, DC=microsoft, DC=corp, DC=redmond, CN=Microsoft Secure Server Authority|CN=*.azurewebsites.net" h_X-ARR-LOG-ID="2ae3ba22-d7e8-4ffc-b458-41e3b1231c12" elapsed="38">
        <step title="Outgoing response" date="12/03 7:20:50" type="response" statusCode="404" statusText="Not Found" h_Server="Microsoft-IIS/7.5" h_Cache-Control="private" h_X-AspNet-Version="4.0.30319" h_Content-Type="application/json; charset=utf-8" elapsed="0" />
    </step>
    <step title="Incoming Request" date="12/03 7:21:01" url="/sshkey" method="PUT" type="request" h_Connection="Keep-Alive" h_Content-Length="1770" h_Content-Type="application/json; charset=utf-8" h_Accept="application/json" h_Authorization="Basic JHRlc3Rmb3JlYmJvOmdKY0tENHBLM0ZlRGh3R29sRWZlc0doWHFIdWd0QmlTcHN2TnpoQ2p5Tmo1bjR6SFphNWN2Z3Z0WGJiOA==" h_Expect="100-continue" h_Host="testforebbo.scm.azurewebsites.net" h_Max-Forwards="10" h_X-LiveUpgrade="1" h_X-Original-URL="/sshkey" h_X-Forwarded-For="70.37.162.148:60496" h_X-ARR-SSL="2048|128|DC=com, DC=microsoft, DC=corp, DC=redmond, CN=Microsoft Secure Server Authority|CN=*.azurewebsites.net" h_X-ARR-LOG-ID="af00977d-e567-4634-9bd9-29d3a3b4aed5" elapsed="230">
        <step title="SSHKeyController.SetPrivateKey" date="12/03 7:21:01" elapsed="54">
            <step title="Aquired Lock" date="12/03 7:21:01" type="lock" elapsed="0" />
            <step title="SSHKeyManager.SetPrivateKey" date="12/03 7:21:01" elapsed="10" />
            <step title="Lock released" date="12/03 7:21:01" type="lock" elapsed="0" />
        </step>
        <step title="Outgoing response" date="12/03 7:21:01" type="response" statusCode="204" statusText="No Content" h_Server="Microsoft-IIS/7.5" h_Cache-Control="private" h_X-AspNet-Version="4.0.30319" elapsed="0" />
    </step>
    <step title="Incoming Request" date="12/03 7:21:14" url="/deployments?$orderby=ReceivedTime%20desc&amp;$top=20" method="GET" type="request" h_Connection="Keep-Alive" h_Accept="application/json" h_Accept-Language="en-US" h_Authorization="Basic JHRlc3Rmb3JlYmJvOmdKY0tENHBLM0ZlRGh3R29sRWZlc0doWHFIdWd0QmlTcHN2TnpoQ2p5Tmo1bjR6SFphNWN2Z3Z0WGJiOA==" h_Host="testforebbo.scm.azurewebsites.net" h_Max-Forwards="10" h_x-ms-client-request-id="d392dca1-32e7-4416-b578-d78e702d2285-2012-12-03 07:21:14Z" h_x-ms-client-session-id="cae42319-bb2c-4409-b372-d33712e0e5e2" h_x-ms-principal-id="00034001A0FEA940" h_x-ms-subscription-ids="6cd3667e-eab1-424e-8f06-4d449d0d1ec5,689925f5-f4c1-45ff-97f0-8be85344fb83" h_X-LiveUpgrade="1" h_X-Original-URL="/deployments?$orderby=ReceivedTime%20desc&amp;$top=20" h_X-Forwarded-For="70.37.162.148:43927" h_X-ARR-SSL="2048|128|DC=com, DC=microsoft, DC=corp, DC=redmond, CN=Microsoft Secure Server Authority|CN=*.azurewebsites.net" h_X-ARR-LOG-ID="facc2e68-bbd2-401e-9f2f-5c034a6bb167" elapsed="19">
        <step title="DeploymentService.GetDeployResults" date="12/03 7:21:14" elapsed="0" />
        <step title="DeploymentManager.GetResults" date="12/03 7:21:14" elapsed="9" />
        <step title="Outgoing response" date="12/03 7:21:14" type="response" statusCode="200" statusText="OK" h_Server="Microsoft-IIS/7.5" h_Cache-Control="private" h_X-AspNet-Version="4.0.30319" h_Content-Type="application/json; charset=utf-8" elapsed="0" />
    </step>
David Ebbo
Owner

I trimmed it to remove most of the /deployments (which happens when the portal polls for update). But there were no requests there from the github hook.

David Ebbo
Owner

@starlogik are you still seeing this issue?

bradmi

Please reactivate if this still reproduces.

bradmi bradmi closed this
Dinesh Ravva dravva was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.