Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

-13 EACES error during container startup #2352

Closed
mvsouza opened this issue Feb 28, 2018 · 10 comments
Closed

-13 EACES error during container startup #2352

mvsouza opened this issue Feb 28, 2018 · 10 comments

Comments

@mvsouza
Copy link

mvsouza commented Feb 28, 2018

I'm developing a personal project, and I'm trying to deploy the staging environment on Heroku. Although I pushed the image to Heroku, the container fails on the startup.

The Heroku log showed the stack trace:

2018-02-28T01:29:42.704675+00:00 heroku[web.1]: Starting process with command dotnet SCIQuoting.Webapi.dll
2018-02-28T01:29:47.463506+00:00 app[web.1]: �[40m�[1m�[33mwarn�[39m�[22m�[49m: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
2018-02-28T01:29:47.463530+00:00 app[web.1]: No XML encryptor configured. Key {d578adde-8b09-4342-8fa0-877f0f1db0cf} may be persisted to storage in unencrypted form.
2018-02-28T01:29:47.471581+00:00 app[web.1]: �[40m�[1m�[33mwarn�[39m�[22m�[49m: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
2018-02-28T01:29:47.471586+00:00 app[web.1]: No XML encryptor configured. Key {d578adde-8b09-4342-8fa0-877f0f1db0cf} may be persisted to storage in unencrypted form.
2018-02-28T01:29:48.902911+00:00 app[web.1]: �[41m�[1m�[37mcrit�[39m�[22m�[49m: Microsoft.AspNetCore.Server.Kestrel[0]
2018-02-28T01:29:48.902943+00:00 app[web.1]: Unable to start Kestrel.
2018-02-28T01:29:48.902952+00:00 app[web.1]: Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException: Error -13 EACCES permission denied
2018-02-28T01:29:48.902953+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.LibuvFunctions.ThrowError(Int32 statusCode)
2018-02-28T01:29:48.902955+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvTcpHandle.Bind(IPEndPoint endPoint)
2018-02-28T01:29:48.902958+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.ListenTcp(Boolean useFileHandle)
2018-02-28T01:29:48.902959+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.<>c.b__8_0(Listener listener)
2018-02-28T01:29:48.902963+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvThread.DoPostWork()
2018-02-28T01:29:48.902965+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.902967+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.902969+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.902970+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.ListenerPrimary.d__15.MoveNext()
2018-02-28T01:29:48.902972+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.902982+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.902984+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.902986+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:29:48.902987+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:49.034619+00:00 heroku[web.1]: Process exited with status 134
2018-02-28T01:29:48.902989+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.902991+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:29:48.902993+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.902994+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.902996+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.902998+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_01.<<StartAsync>g__OnBind|0>d.MoveNext() 2018-02-28T01:29:48.902999+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.903001+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.903003+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.903004+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__5.MoveNext() 2018-02-28T01:29:48.903006+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.903007+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.903009+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.903011+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() 2018-02-28T01:29:48.903012+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.903014+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.903016+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.903017+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() 2018-02-28T01:29:48.903019+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.903020+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.903022+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.903023+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() 2018-02-28T01:29:48.903025+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.903026+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.903028+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.903030+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__211.MoveNext()
2018-02-28T01:29:48.905651+00:00 app[web.1]: �[41m�[1m�[37mcrit�[39m�[22m�[49m: Microsoft.AspNetCore.Server.Kestrel[0]
2018-02-28T01:29:48.905653+00:00 app[web.1]: Unable to start Kestrel.
2018-02-28T01:29:48.905654+00:00 app[web.1]: Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException: Error -13 EACCES permission denied
2018-02-28T01:29:48.905656+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.LibuvFunctions.ThrowError(Int32 statusCode)
2018-02-28T01:29:48.905657+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvTcpHandle.Bind(IPEndPoint endPoint)
2018-02-28T01:29:48.905661+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.ListenTcp(Boolean useFileHandle)
2018-02-28T01:29:48.905662+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.<>c.b__8_0(Listener listener)
2018-02-28T01:29:48.905664+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvThread.DoPostWork()
2018-02-28T01:29:48.905665+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.905666+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.905667+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.905668+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.ListenerPrimary.d__15.MoveNext()
2018-02-28T01:29:48.905669+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.905670+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.905672+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.905674+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:29:48.905675+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.905677+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.905679+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:29:48.905680+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.905682+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.905683+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.905685+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_01.<<StartAsync>g__OnBind|0>d.MoveNext() 2018-02-28T01:29:48.905687+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.905688+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.905690+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.905692+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__5.MoveNext() 2018-02-28T01:29:48.905693+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.905698+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.905700+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.905702+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() 2018-02-28T01:29:48.905704+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.905705+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.905707+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.905708+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() 2018-02-28T01:29:48.905710+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.905711+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.905712+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.905713+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() 2018-02-28T01:29:48.905714+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.905715+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.905717+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.905718+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__211.MoveNext()
2018-02-28T01:29:48.957869+00:00 app[web.1]:
2018-02-28T01:29:48.968833+00:00 app[web.1]: Unhandled Exception: Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException: Error -13 EACCES permission denied
2018-02-28T01:29:48.968837+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.LibuvFunctions.ThrowError(Int32 statusCode)
2018-02-28T01:29:48.968838+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvTcpHandle.Bind(IPEndPoint endPoint)
2018-02-28T01:29:48.968840+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.ListenTcp(Boolean useFileHandle)
2018-02-28T01:29:48.968842+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.<>c.b__8_0(Listener listener)
2018-02-28T01:29:48.968844+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvThread.DoPostWork()
2018-02-28T01:29:48.968846+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968848+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968850+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968851+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.ListenerPrimary.d__15.MoveNext()
2018-02-28T01:29:48.968853+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968854+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968856+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968858+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:29:48.968860+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968861+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968870+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:29:48.968872+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968873+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968875+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968876+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_01.<<StartAsync>g__OnBind|0>d.MoveNext() 2018-02-28T01:29:48.968878+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.968879+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.968881+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.968882+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__5.MoveNext() 2018-02-28T01:29:48.968884+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.968886+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.968887+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.968889+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() 2018-02-28T01:29:48.968891+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.968892+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.968894+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.968896+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() 2018-02-28T01:29:48.968897+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.968899+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.968900+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.968902+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() 2018-02-28T01:29:48.968903+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:29:48.968905+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:29:48.968907+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:29:48.968909+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__211.MoveNext()
2018-02-28T01:29:48.968910+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968912+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968914+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968923+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.Internal.WebHost.d__26.MoveNext()
2018-02-28T01:29:48.968924+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968926+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968928+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968929+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.d__5.MoveNext()
2018-02-28T01:29:48.968931+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968932+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968934+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968935+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.d__4.MoveNext()
2018-02-28T01:29:48.968937+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:29:48.968938+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:29:48.968940+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:29:48.968941+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
2018-02-28T01:29:48.968943+00:00 app[web.1]: at SCIQuoting.Webapi.Program.Main(String[] args) in /src/src/SCIQuoting.Webapi/Program.cs:line 18
2018-02-28T01:29:48.983323+00:00 app[web.1]: Aborted
2018-02-28T01:29:49.058932+00:00 heroku[web.1]: State changed from starting to crashed
2018-02-28T01:29:49.061569+00:00 heroku[web.1]: State changed from crashed to starting
2018-02-28T01:29:57.395164+00:00 heroku[web.1]: Starting process with command dotnet SCIQuoting.Webapi.dll
2018-02-28T01:30:01.136525+00:00 app[web.1]: �[40m�[1m�[33mwarn�[39m�[22m�[49m: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
2018-02-28T01:30:01.136555+00:00 app[web.1]: No XML encryptor configured. Key {58eb56a8-4685-4a01-8618-20db8ff4f794} may be persisted to storage in unencrypted form.
2018-02-28T01:30:01.140767+00:00 app[web.1]: �[40m�[1m�[33mwarn�[39m�[22m�[49m: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
2018-02-28T01:30:01.140770+00:00 app[web.1]: No XML encryptor configured. Key {58eb56a8-4685-4a01-8618-20db8ff4f794} may be persisted to storage in unencrypted form.
2018-02-28T01:30:03.930170+00:00 app[web.1]: �[41m�[1m�[37mcrit�[39m�[22m�[49m: Microsoft.AspNetCore.Server.Kestrel[0]
2018-02-28T01:30:03.930225+00:00 app[web.1]: Unable to start Kestrel.
2018-02-28T01:30:03.930227+00:00 app[web.1]: Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException: Error -13 EACCES permission denied
2018-02-28T01:30:03.930229+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.LibuvFunctions.ThrowError(Int32 statusCode)
2018-02-28T01:30:03.930231+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvTcpHandle.Bind(IPEndPoint endPoint)
2018-02-28T01:30:03.930233+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.ListenTcp(Boolean useFileHandle)
2018-02-28T01:30:03.930234+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.<>c.b__8_0(Listener listener)
2018-02-28T01:30:03.930324+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvThread.DoPostWork()
2018-02-28T01:30:03.930325+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.930327+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.930334+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:03.930336+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.ListenerPrimary.d__15.MoveNext()
2018-02-28T01:30:03.930338+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.930340+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.930341+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:03.930343+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:30:03.930345+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.930346+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.930348+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:30:03.930350+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.930352+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.930354+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:03.930356+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_01.<<StartAsync>g__OnBind|0>d.MoveNext() 2018-02-28T01:30:03.930358+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.930359+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.930361+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.930363+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__5.MoveNext() 2018-02-28T01:30:03.930365+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.930366+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.930368+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.930370+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() 2018-02-28T01:30:03.930372+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.930374+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.930375+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.930377+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() 2018-02-28T01:30:03.930379+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.930380+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.930382+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.930383+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() 2018-02-28T01:30:03.930385+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.930387+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.930388+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.930390+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__211.MoveNext()
2018-02-28T01:30:03.942827+00:00 app[web.1]: �[41m�[1m�[37mcrit�[39m�[22m�[49m: Microsoft.AspNetCore.Server.Kestrel[0]
2018-02-28T01:30:03.942831+00:00 app[web.1]: Unable to start Kestrel.
2018-02-28T01:30:03.942833+00:00 app[web.1]: Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException: Error -13 EACCES permission denied
2018-02-28T01:30:03.942840+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.LibuvFunctions.ThrowError(Int32 statusCode)
2018-02-28T01:30:03.942841+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvTcpHandle.Bind(IPEndPoint endPoint)
2018-02-28T01:30:03.942843+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.ListenTcp(Boolean useFileHandle)
2018-02-28T01:30:03.942845+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.<>c.b__8_0(Listener listener)
2018-02-28T01:30:03.942854+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvThread.DoPostWork()
2018-02-28T01:30:03.942856+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.942858+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.942859+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:03.942861+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.ListenerPrimary.d__15.MoveNext()
2018-02-28T01:30:03.942863+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.942865+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.942867+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:03.942868+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:30:03.942870+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.942872+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.942874+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:30:03.942876+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:03.942877+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:03.942879+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:03.942881+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_01.<<StartAsync>g__OnBind|0>d.MoveNext() 2018-02-28T01:30:03.942882+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.942884+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.943056+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.943059+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__5.MoveNext() 2018-02-28T01:30:03.943061+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.943063+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.943065+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.943072+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() 2018-02-28T01:30:03.943074+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.943076+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.943077+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.943084+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() 2018-02-28T01:30:03.943086+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.943088+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.943089+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.943091+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() 2018-02-28T01:30:03.943092+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:03.943097+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:03.943098+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:03.943100+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__211.MoveNext()
2018-02-28T01:30:04.168278+00:00 app[web.1]:
2018-02-28T01:30:04.200190+00:00 app[web.1]: Unhandled Exception: Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvException: Error -13 EACCES permission denied
2018-02-28T01:30:04.200205+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.LibuvFunctions.ThrowError(Int32 statusCode)
2018-02-28T01:30:04.200207+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Networking.UvTcpHandle.Bind(IPEndPoint endPoint)
2018-02-28T01:30:04.200209+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.ListenTcp(Boolean useFileHandle)
2018-02-28T01:30:04.200211+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.Listener.<>c.b__8_0(Listener listener)
2018-02-28T01:30:04.200213+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.LibuvThread.DoPostWork()
2018-02-28T01:30:04.200215+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200216+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200218+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200220+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal.ListenerPrimary.d__15.MoveNext()
2018-02-28T01:30:04.200221+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200223+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200225+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200227+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:30:04.200228+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200230+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200232+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.LibuvTransport.d__20.MoveNext()
2018-02-28T01:30:04.200233+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200235+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200237+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200239+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_01.<<StartAsync>g__OnBind|0>d.MoveNext() 2018-02-28T01:30:04.200240+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:04.200242+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:04.200244+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:04.200245+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindEndpointAsync>d__5.MoveNext() 2018-02-28T01:30:04.200247+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:04.200249+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:04.200250+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:04.200252+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAddressAsync>d__7.MoveNext() 2018-02-28T01:30:04.200253+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:04.200255+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:04.200257+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:04.200258+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.AddressesStrategy.<BindAsync>d__2.MoveNext() 2018-02-28T01:30:04.200260+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:04.200262+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:04.200263+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:04.200265+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.<BindAsync>d__0.MoveNext() 2018-02-28T01:30:04.200266+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown --- 2018-02-28T01:30:04.200268+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2018-02-28T01:30:04.200270+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2018-02-28T01:30:04.200272+00:00 app[web.1]: at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<StartAsync>d__211.MoveNext()
2018-02-28T01:30:04.200273+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200275+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200277+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200285+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.Internal.WebHost.d__26.MoveNext()
2018-02-28T01:30:04.200287+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200289+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200291+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200292+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.d__5.MoveNext()
2018-02-28T01:30:04.200294+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200296+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200297+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200299+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.d__4.MoveNext()
2018-02-28T01:30:04.200301+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200302+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200304+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200306+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
2018-02-28T01:30:04.200307+00:00 app[web.1]: at SCIQuoting.Webapi.Program.Main(String[] args) in /src/src/SCIQuoting.Webapi/Program.cs:line 18
2018-02-28T01:30:04.225966+00:00 app[web.1]: Aborted
2018-02-28T01:30:04.309014+00:00 heroku[web.1]: Process exited with status 134
2018-02-28T01:30:04.323612+00:00 heroku[web.1]: State changed from starting to crashed
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
2018-02-28T01:30:04.200296+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200297+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200299+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.d__4.MoveNext()
2018-02-28T01:30:04.200302+00:00 app[web.1]: at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2018-02-28T01:30:04.200304+00:00 app[web.1]: at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2018-02-28T01:30:04.200301+00:00 app[web.1]: --- End of stack trace from previous location where exception was thrown ---
2018-02-28T01:30:04.200306+00:00 app[web.1]: at Microsoft.AspNetCore.Hosting.WebHostExtensions.Run(IWebHost host)
2018-02-28T01:30:04.200307+00:00 app[web.1]: at SCIQuoting.Webapi.Program.Main(String[] args) in /src/src/SCIQuoting.Webapi/Program.cs:line 18
2018-02-28T01:30:04.225966+00:00 app[web.1]: Aborted

@davidfowl
Copy link
Member

Seems like you don't have access to the port kestrel is trying to bind to. How does the port mapping on heroku work? Do you get passed the port in an env variable?

@mvsouza
Copy link
Author

mvsouza commented Feb 28, 2018

@davidfowl, that helps alot!
I was reading about how heroku works in that matter. It seems that it export a random port on "PORT", so I'm trying to initialize the container like this:

CMD ["dotnet", "SCIQuoting.Webapi.dll","--ASPNETCORE_URLS","http://+:$(PORT)"]

@davidfowl
Copy link
Member

Is that what you're doing that caused the error?

@mvsouza
Copy link
Author

mvsouza commented Feb 28, 2018

No, I've tried that CMD, in onder to run with a dynamic port. Now I also tried like:

CMD ["dotnet", "SCIQuoting.Webapi.dll", "--server.urls", "http://+:$(PORT)"]

@mvsouza
Copy link
Author

mvsouza commented Feb 28, 2018

Before I wasn't passing any parameter, but steal both of them didn't work.

@davidfowl
Copy link
Member

These aren't command line arguments they are environment variables. Also I'm not sure the PORT variable is available at container image build time (which is what you're kinda doing). If the environment only exists at runtime, then you need to change the code in your application to read it and consume it.

https://github.com/mvsouza/SouzaCIQuoting/blob/61fbaddb939e79af45940e05d416f5092113a8fe/src/SCIQuoting.Webapi/Program.cs#L22

I would make a new extension method on IWebHostBuilder that uses the PORT environment variable if available, otherwise does nothing.

public static class WebHostBuilderExtensions
{
     public static IWebHostBuilder UsePort(this IWebHostBuilder builder)
     {
         var port = Environment.GetEnvironmentVariable("PORT");
          if (string.IsNullOrEmpty(port))
          {
               return builder;
          }
          return builder.UseUrls($"http://+:{port}");
     }
}

Then you can call this from your Program.cs and it should work (crosses fingers 😄 ).

There might be another way to pass the env variable to the app in a more docker native way but I'm not sure what that is.

/cc @glennc

@mvsouza
Copy link
Author

mvsouza commented Feb 28, 2018

I've tried to via cli on my windows:
dotnet SCIQuoting.Webapi.dll --server.urls http://0.0.0.0:$PORT
It worked!
I will keep aware of whatever happens.
You rock!

@mvsouza
Copy link
Author

mvsouza commented Mar 1, 2018

Found out a way!
Already pushed the changes. I edit the dockerfile to use the dynamic port on deploy, and configured travis to push it automatically to Heroku on merging to master.
Thanks for helping my!

@muratg muratg closed this as completed Mar 6, 2018
@MonisIslam
Copy link

@davidfowl Sir i need you help regarding this error, Can you please give a time for that.
I am facing same issues after downloaded source code from Azure.
Will Explain you scenario as per my scenario.
capture

@Tratcher
Copy link
Member

Comments on closed issues are not tracked, please open a new issue with the details for your scenario.

@aspnet aspnet locked as resolved and limited conversation to collaborators Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants