首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CLI v2.0.1-beta.28 proxies.json发行

CLI v2.0.1-beta.28 proxies.json发行
EN

Stack Overflow用户
提问于 2018-06-02 17:19:40
回答 1查看 398关注 0票数 1

我将添加到我的项目proxies.json文件中,但是在该运行时无法以异常启动之后。有什么想法吗?我已经看了GitHub的问题,没有任何运气。

在和我添加gist与*.csproj和proxies.json文件的再现。

非常感谢

代码语言:javascript
复制
[02/06/2018 17:10:57] Initializing Azure Function proxies
[02/06/2018 17:10:57] Error processig configuration of Function Proxies
[02/06/2018 17:10:57]
Function host is not running.
[02/06/2018 17:10:59] A ScriptHost error has occurred
[02/06/2018 17:10:59] Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = ProxyHandler (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Runtime.ProxyHandler], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception fordetails. Registration: Activator = ApiInspectorHandler (ReflectionActivator), Services = [Microsoft.Azure.AppService.Proxy.Runtime.Handlers.ApiInspectorHandler], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DebugLogStorageService (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Runtime.Logging.IDebugLogService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FileSystemStorage (DelegateActivator), Services = [DetailedTrace (Microsoft.Azure.AppService.Proxy.Common.Infra.IBlobStorage)], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime,Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Access to the path '/Users/maciejgos\LogFiles\Application\Proxies\DetailedTrace' is denied. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) (See inner exception for details.). Autofac: An error occurredduring the activation of a particular registration. See the inner exception for details. Registration: Activator = ApiInspectorHandler (ReflectionActivator),Services = [Microsoft.Azure.AppService.Proxy.Runtime.Handlers.ApiInspectorHandler], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = DebugLogStorageService (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Runtime.Logging.IDebugLogService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FileSystemStorage (DelegateActivator), Services = [DetailedTrace (Microsoft.Azure.AppService.Proxy.Common.Infra.IBlobStorage)], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Access to the path '/Users/maciejgos\LogFiles\Application\Proxies\DetailedTrace' is denied. (See inner exception for details.) (See inner exception for details.) (See inner exception for details.). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator= DebugLogStorageService (DelegateActivator), Services = [Microsoft.Azure.AppService.Proxy.Runtime.Logging.IDebugLogService], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FileSystemStorage (DelegateActivator), Services = [DetailedTrace (Microsoft.Azure.AppService.Proxy.Common.Infra.IBlobStorage)], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope ---> Access to the path '/Users/maciejgos\LogFiles\Application\Proxies\DetailedTrace' is denied. (See inner exception for details.) (See inner exception for details.). Autofac: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = FileSystemStorage (DelegateActivator), Services = [DetailedTrace (Microsoft.Azure.AppService.Proxy.Common.Infra.IBlobStorage)], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared,Ownership = OwnedByLifetimeScope ---> Access to the path '/Users/maciejgos\LogFiles\Application\Proxies\DetailedTrace' is denied. (See inner exception for details.). System.IO.FileSystem: Access to the path '/Users/maciejgos\LogFiles\Application\Proxies\DetailedTrace' is denied. Permission denied.
[02/06/2018 17:10:59] Stopping Host

https://gist.github.com/maciejgos/4bc0650aa72dd94e61b798e94da83aeb

我今天还观察到一句话。当我添加空proxies.json文件时,只要我开始添加json结构{},一切就可以了。

为了更容易地再现,我添加了用于复制https://1drv.ms/u/s!AkqjecaXrgd9469n7iG3ui-4tAnnoA的示例源代码。

Azure函数CLI使用macOS安装在自制上。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-04 07:31:27

我创建一个http触发器模板并在您的git中复制文件,但是不能在我这端复制您的整个异常。

我只得到了Error processing configuration of Function Proxies和主机成功启动。

此单个错误消息是由"backendUri": ""proxies.json文件中引起的。应该删除此参数,而不是将其设置为空字符串,因为您直接在代理中设置响应。见文档

另外,我在异常消息中看到了Access to the path '/Users/YourName\LogFiles\Application\Proxies\DetailedTrace' is denied,因此您可以尝试以管理员/超级用户的身份运行cli。

更新

您的示例在我这一边运行良好(OS:Windows),而不以cli作为管理员。

如果我使用windows,它不会创建像您这样的文件夹。如果我使用git,就会创建C:\Users\UserName\LogFiles\Application\Proxies\DetailedTrace

因此,为了在MacOS上使用代理启动主机,可能需要以超级用户的身份运行cli 2.0.1-beta.28。已经在azure-功能-主机上打开了一个问题。你可以追踪到更多的信息。

更新2

这个问题已经解决了,并且在cli 2.0.1-beta.35中,代理应该可以像预期的那样工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50659371

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档