AppVeyor Deployment Service Starts then crashes

ebenezer.ikonne's Avatar

ebenezer.ikonne

18 May, 2014 12:50 PM

Hi -

On a certain server (that is pretty locked down when it comes to access), when I start the Deployment Service, it eventually crashes with the stack below logged in the Event Viewer. Is there a way to get more information and figure out exactly what may be going on?

Stack:
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b__1(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

  1. 1 Posted by ebenezer.ikonne on 18 May, 2014 12:51 PM

    ebenezer.ikonne's Avatar

    I should also add that on other servers, the event log indicates that SignalR is connected via WebSockets but on the server that has problems, SignalR is connected via serverSentEvents. I don't know if that makes a difference.

  2. Support Staff 2 Posted by Feodor Fitsner on 18 May, 2014 02:14 PM

    Feodor Fitsner's Avatar

    What are other events before this crash in Deployment Agent event log?

    On Sunday, May 18, 2014, ebenezer.ikonne <
    [email blocked]> wrote:

  3. 3 Posted by ebenezer.ikonne on 18 May, 2014 02:23 PM

    ebenezer.ikonne's Avatar

    It first says "Service Started Successfully...."

    then the following (before the callstack) from Windows Error Reporting..

    Problem signature:
    P1: appveyor.deploymentagent.service
    P2: 2.1.78.0
    P3: 536a74f1
    P4: mscorlib
    P5: 4.0.30319.17929
    P6: 4ffa561c
    P7: 48c8
    P8: 7
    P9: System.InvalidOperationException
    P10:

    Attached files:

    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_appveyor.deploym_c7a4a473cc9d03124fbd9b8271ded5d5f5dc937_13e0025a

    Analysis symbol:
    Rechecking for solution: 0
    Report Id: c31b4730-de97-11e3-a35a-005056827b60
    Report Status: 4

  4. Support Staff 4 Posted by Feodor Fitsner on 18 May, 2014 02:30 PM

    Feodor Fitsner's Avatar

    Hm, not much. Is it ever trying to connect after that? Have you tried
    rinstalling the app?

    On Sunday, May 18, 2014, ebenezer.ikonne <
    [email blocked]> wrote:

  5. 5 Posted by ebenezer.ikonne on 18 May, 2014 02:48 PM

    ebenezer.ikonne's Avatar

    LOL. I was just doing that and it seems to be working better
    now...although I get this in the logs.

    System.NullReferenceException: Object reference not set to an instance of
    an object.
       at
    Microsoft.Web.Deployment.WebDeployTelemetryService.LogWebDeployVersion()

    Additionally, when I wipe the directory and site and try to redeploy, I
    also get this:

    Deployment job huq1bgn2lc2dq7gw error: Filename:
    Error: Cannot add duplicate collection entry of type 'add' with unique key
    attribute 'name' set to 'My Release'

    This wasn't happening before.

    Thanks for all your help.

  6. 6 Posted by ebenezer.ikonne on 18 May, 2014 03:06 PM

    ebenezer.ikonne's Avatar

    I don't know if this helps but the OS is Windows 2008R2. After
    reinstalling, I have also experienced that after restarting the service it
    will randomly crash.

    Thanks.

  7. Support Staff 7 Posted by Feodor Fitsner on 18 May, 2014 03:12 PM

    Feodor Fitsner's Avatar

    Yeah, thanks.

    Do you have .NET 4.5.1 installed or it's just 4.5?
    What does "My Release" stand for?

    Best regards,
    Feodor Fitsner

    Skype: feodor.fitsner
    LinkedIn: linkedin.com/in/fitsner <http://www.linkedin.com/in/fitsner>
    Twitter: @appveyor <https://twitter.com/appveyor>

  8. 8 Posted by ebenezer.ikonne on 18 May, 2014 03:40 PM

    ebenezer.ikonne's Avatar

    Will check level of framework...

    Error: Cannot add duplicate collection entry of type 'add' with unique key
    attribute 'name' set to 'My Release'

    My Release is the value of the site_name property. I get this anytime I
    try to redeploy to an environment where the site was removed and backing
    directory deleted.

  9. Support Staff 9 Posted by Feodor Fitsner on 18 May, 2014 04:11 PM

    Feodor Fitsner's Avatar

    I will take a look what might be wrong. Could you please drop a screenshot of the environment settings?

    - Feodor

  10. 10 Posted by ebenezer.ikonne on 18 May, 2014 06:31 PM

    ebenezer.ikonne's Avatar

    [image: Inline image 1]

    This behavior seems new as I don't think I experienced this yesterday.

    Thanks.

  11. 11 Posted by ebenezer.ikonne on 18 May, 2014 06:46 PM

    ebenezer.ikonne's Avatar

    Some additional info...

    If I create the website via IIS Manager and leave it empty, then there is
    no error. So it does have something to do with the fact that the site
    existed, was deleted, and now I'm trying to have AppVeyor recreate it.

    Thanks.

  12. Support Staff 12 Posted by Feodor Fitsner on 18 May, 2014 06:54 PM

    Feodor Fitsner's Avatar

    Thanks for additional info, that definitely helps.

    - Feodor

  13. 13 Posted by ebenezer.ikonne on 19 May, 2014 05:53 PM

    ebenezer.ikonne's Avatar

    Hi -

    Just checking in to see if there are any updates on this.

    Thanks!

  14. Support Staff 14 Posted by Feodor Fitsner on 19 May, 2014 06:55 PM

    Feodor Fitsner's Avatar

    Hi,

    So, to reproduce the problem I'm doing first deployment then deleting website in IIS manager and then deploying again, right?

  15. 15 Posted by ebenezer.ikonne on 19 May, 2014 07:55 PM

    ebenezer.ikonne's Avatar

    That's correct.

  16. Support Staff 16 Posted by Feodor Fitsner on 19 May, 2014 07:57 PM

    Feodor Fitsner's Avatar

    I see Deployment Agent constantly crashes on Windows 2008 R2 after 30 seconds of working. This is not good - checking what's wrong.

  17. 17 Posted by ebenezer.ikonne on 19 May, 2014 08:02 PM

    ebenezer.ikonne's Avatar

    Ok. That's definitely something I experienced as well.

  18. Support Staff 18 Posted by Feodor Fitsner on 20 May, 2014 04:54 PM

    Feodor Fitsner's Avatar

    The update. If a client is on Windows 7 (Windows 2008 R2) and earlier SignalR's communication protocol falls to Server-Side Events (SSE) or long-polling (LP). Web Sockets are supported on Windows 8 (Windows Server 2012) only or later. The problem is that while connected via SSE or LP adding to SignalR groups is not working. I'm currently investigating the issue to see if it's just AppVeyor setup (we use Service Bus backplane) or it's a more common issue.

  19. 19 Posted by ebenezer.ikonne on 20 May, 2014 05:01 PM

    ebenezer.ikonne's Avatar

    Also experiencing the same things on Windows 7.

  20. Support Staff 20 Posted by Feodor Fitsner on 20 May, 2014 05:17 PM

    Feodor Fitsner's Avatar

    Well, it's getting even more interesting. it's somehow related to the client. If I run Fiddler and do the same test it's successfully connected and added to the group...

  21. 21 Posted by ebenezer.ikonne on 20 May, 2014 05:39 PM

    ebenezer.ikonne's Avatar

    Interesting. It does work "sometimes" but definitely not consistently.

  22. Support Staff 22 Posted by Feodor Fitsner on 20 May, 2014 07:42 PM

    Feodor Fitsner's Avatar

    OK, after spending hours trying to nail down this issue I came up with the following issue: https://github.com/SignalR/SignalR/issues/3042

    Let's wait for the response from SignalR team, but until then we'll be considering Windows Server 2012 (or Windows 8) or later as a minimum requirement for running AppVeyor Deployment Agent.

  23. 23 Posted by ebenezer.ikonne on 20 May, 2014 08:17 PM

    ebenezer.ikonne's Avatar

    Ok. I'll be paying to it...

  24. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:43 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac