Префикс Stackify http://localhost:2012 отказался подключаться - PullRequest
0 голосов
/ 03 октября 2019

Я установил Stackify Prefix 3.0.28.0 несколько дней назад, и профилировщик работал нормально, пока я не перезапустил свою систему. После перезагрузки системы при попытке открыть http://localhost:2012 она вернулась со стандартной ошибкой chrome localhost отказался подключиться. (ERR_CONNECTION_REFUSED) Однако, как упоминалось в руководстве по устранению неполадок в https://docs.stackify.com/docs/prefix-basic-troubleshooting#verify-if-the-stackify-profiler-is-working Я заметил, что профилировщик собирает данные, только http://localhost:2012 не работает.

Я перепробовал все вариантыупоминается в руководстве по устранению неполадок, включая перезапуск системы, IIS, Stackify Prefix Windows Service и проверенные переменные среды системы. Я также попытался заменить localhost на 127: 0.0.1, установив правила брандмауэра Windows для порта 2012. Кажется, все в порядке, но не удалось заставить работать http://localhost:2012.

http://localhost и приложение asp.net работают нормально. Согласно stackify.log я получаю следующие ошибки (даже когда журнал уведомляет веб-сервер, сервер именованных каналов запущен):

INFO  2019-10-03 19:18:35,160/GMT [6] Starting web server
INFO  2019-10-03 19:18:35,160/GMT [6] Attempting Binding to http://*:2012
WARN  2019-10-03 19:18:35,269/GMT [6] Error starting web server, will try again
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
   at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer(StartContext context)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
   at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start(StartOptions options)
   at Microsoft.Owin.Hosting.Starter.HostingStarter.Start(StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.StartImplementation(IServiceProvider services, StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start(StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start[TStartup](StartOptions options)
   at DevDashWindowsHost.HostProcess.ResetWebserver()
ERROR 2019-10-03 19:18:35,269/GMT [6] Error starting web server again
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.HttpListenerException: The process cannot access the file because it is being used by another process
   at System.Net.HttpListener.AddAllPrefixes()
   at System.Net.HttpListener.Start()
   at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
   at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(IAppBuilder builder)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer(StartContext context)
   at Microsoft.Owin.Hosting.Engine.HostingEngine.Start(StartContext context)
   at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start(StartOptions options)
   at Microsoft.Owin.Hosting.Starter.HostingStarter.Start(StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.StartImplementation(IServiceProvider services, StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start(StartOptions options)
   at Microsoft.Owin.Hosting.WebApp.Start[TStartup](StartOptions options)
   at DevDashWindowsHost.HostProcess.ResetWebserver()
INFO  2019-10-03 19:18:35,269/GMT [6] Web server started
INFO  2019-10-03 19:18:35,269/GMT [6] Starting named pipe server
INFO  2019-10-03 19:18:35,285/GMT [6] Named pipe server started
INFO  2019-10-03 19:18:35,691/GMT [6] Java APM Jar: C:\Program Files (x86)\StackifyPrefix\java\lib\stackify-java-apm-1.16.0.jar (1.16.0)
INFO  2019-10-03 19:18:35,691/GMT [6] Java APM Jar Symlink: OK
INFO  2019-10-03 19:18:35,691/GMT [6] Starting #APM ProfileLogManager

Кроме того, существует несколько других записей, таких как

INFO  2019-10-03 19:18:42,770/GMT [10] POST https://api.stackify.com/api/prefix/GetMessages
INFO  2019-10-03 19:18:46,817/GMT [13] HTTP Status: OK
INFO  2019-10-03 19:18:46,817/GMT [10] POST https://api.stackify.com/api/prefix/DevicePing
INFO  2019-10-03 19:18:48,552/GMT [13] HTTP Status: OK
INFO  2019-10-03 19:19:36,927/GMT [5] Writing INI

Конфиг:

* Windows 10, 64 bit
* Visual Studio 2017 Community 15.9.1
...