AppVeyor Deployment Service Starts then crashes
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()
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
1 Posted by ebenezer.ikonne on 18 May, 2014 12:51 PM
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.
Support Staff 2 Posted by Feodor Fitsner on 18 May, 2014 02:14 PM
What are other events before this crash in Deployment Agent event log?
On Sunday, May 18, 2014, ebenezer.ikonne <
[email blocked]> wrote:
3 Posted by ebenezer.ikonne on 18 May, 2014 02:23 PM
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
Support Staff 4 Posted by Feodor Fitsner on 18 May, 2014 02:30 PM
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 Posted by ebenezer.ikonne on 18 May, 2014 02:48 PM
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 Posted by ebenezer.ikonne on 18 May, 2014 03:06 PM
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.
Support Staff 7 Posted by Feodor Fitsner on 18 May, 2014 03:12 PM
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 Posted by ebenezer.ikonne on 18 May, 2014 03:40 PM
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.
Support Staff 9 Posted by Feodor Fitsner on 18 May, 2014 04:11 PM
I will take a look what might be wrong. Could you please drop a screenshot of the environment settings?
- Feodor
10 Posted by ebenezer.ikonne on 18 May, 2014 06:31 PM
[image: Inline image 1]
This behavior seems new as I don't think I experienced this yesterday.
Thanks.
11 Posted by ebenezer.ikonne on 18 May, 2014 06:46 PM
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.
Support Staff 12 Posted by Feodor Fitsner on 18 May, 2014 06:54 PM
Thanks for additional info, that definitely helps.
- Feodor
13 Posted by ebenezer.ikonne on 19 May, 2014 05:53 PM
Hi -
Just checking in to see if there are any updates on this.
Thanks!
Support Staff 14 Posted by Feodor Fitsner on 19 May, 2014 06:55 PM
Hi,
So, to reproduce the problem I'm doing first deployment then deleting website in IIS manager and then deploying again, right?
15 Posted by ebenezer.ikonne on 19 May, 2014 07:55 PM
That's correct.
Support Staff 16 Posted by Feodor Fitsner on 19 May, 2014 07:57 PM
I see Deployment Agent constantly crashes on Windows 2008 R2 after 30 seconds of working. This is not good - checking what's wrong.
17 Posted by ebenezer.ikonne on 19 May, 2014 08:02 PM
Ok. That's definitely something I experienced as well.
Support Staff 18 Posted by Feodor Fitsner on 20 May, 2014 04:54 PM
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 Posted by ebenezer.ikonne on 20 May, 2014 05:01 PM
Also experiencing the same things on Windows 7.
Support Staff 20 Posted by Feodor Fitsner on 20 May, 2014 05:17 PM
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 Posted by ebenezer.ikonne on 20 May, 2014 05:39 PM
Interesting. It does work "sometimes" but definitely not consistently.
Support Staff 22 Posted by Feodor Fitsner on 20 May, 2014 07:42 PM
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 Posted by ebenezer.ikonne on 20 May, 2014 08:17 PM
Ok. I'll be paying to it...
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:43 AM.