frankwallis / WebpackAspnetMiddleware

Webpack development middleware for ASP.NET 5
50 stars 7 forks source link

Calulator sample throws "System.Net.Sockets.SocketException: Access denied" #2

Closed notpeelz closed 8 years ago

notpeelz commented 8 years ago

Framework: dnx451

Call stack:

fail: Microsoft.AspNet.Server.Kestrel[13]
      An unhandled exception was thrown by the application.
      System.Net.Sockets.SocketException: Access denied
        at System.Net.Sockets.Socket.SetSocketOption (SocketOptionLevel optionLevel, SocketOptionName optionName, Boolean optionValue) <0x41e07390 + 0x000c3> in <filename unknown>:0 
        at Redouble.AspNet.Webpack.NodeHost+<EnsureClient>d__6.MoveNext () <0x41dc9620 + 0x0047f> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x7f9d40fff5c0 + 0x00012> in <filename unknown>:0 
        at Redouble.AspNet.Webpack.NodeHost+<Invoke>d__15.MoveNext () <0x41dc7770 + 0x00264> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x7f9d40fff8d0 + 0x00017> in <filename unknown>:0 
        at Redouble.AspNet.Webpack.WebpackService+<CreateHost>d__5.MoveNext () <0x41da1b80 + 0x00325> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x7f9d40fff8d0 + 0x00017> in <filename unknown>:0 
        at Redouble.AspNet.Webpack.WebpackService+<GetFile>d__7.MoveNext () <0x41f3b640 + 0x001b9> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x7f9d40fff8d0 + 0x00017> in <filename unknown>:0 
        at Redouble.AspNet.Webpack.DevServer+<Invoke>d__4.MoveNext () <0x41e39be0 + 0x0081f> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x7f9d40fff5c0 + 0x00012> in <filename unknown>:0 
        at Microsoft.AspNet.Hosting.Internal.RequestServicesContainerMiddleware+<Invoke>d__3.MoveNext () <0x41e390f0 + 0x00573> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x7f9d40fff5c0 + 0x00012> in <filename unknown>:0 
        at Microsoft.AspNet.Hosting.Internal.HostingEngine+<>c__DisplayClass32_0+<<Start>b__0>d.MoveNext () <0x41e323c0 + 0x00436> in <filename unknown>:0 
      --- End of stack trace from previous location where exception was thrown ---
        at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x7f9d410016d0 + 0x00029> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x7f9d40fff6b0 + 0x000a7> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x7f9d40fff630 + 0x0006b> in <filename unknown>:0 
        at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x7f9d40fff5e0 + 0x0003a> in <filename unknown>:0 
        at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () <0x7f9d40fffb10 + 0x00012> in <filename unknown>:0 
        at Microsoft.AspNet.Server.Kestrel.Http.Frame+<RequestProcessingAsync>d__79.MoveNext () <0x41e11180 + 0x00ddc> in <filename unknown>:0 
frankwallis commented 8 years ago

Thanks for raising this, I have not been able to recreate this locally, but I am seeing this error when I run the tests on TravisCI, which is running on Linux. What platform are you using?

I have published 0.7.9 with a change which I think might fix this issue, the plugin was setting the TCP_NODELAY socket option to get slightly better performance. I have taken that out for now while I investigate why it was failing.

notpeelz commented 8 years ago

I'm on Ubuntu 15.10.

frankwallis commented 8 years ago

ok well that makes some sense. The build is now passing on Travis after I moved off the new docker architecture onto the old infrastructure, so I'm hopeful this will have fixed the issue. If not it may be worth trying to run it with root permissions if you are not already.