发布 - AzureServiceProject命令失败的Node.js应用 [英] Publish-AzureServiceProject command failed for node.js application

查看:159
本文介绍了发布 - AzureServiceProject命令失败的Node.js应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面这个教程从我的机器上部署的Node.js应用到Windows Azure:
https://www.windowsazure.com/en-us/发展/的NodeJS /教程/工具入门/

我的命令如下:

 发布-AzureServiceProject -ServiceName socketlistener -Location东美 - 启动

但我收到以下错误

 发布到Windows Azure。这可能会需要几分钟...下午1时32分36秒 -  preparing运行时部署服务socketlistener
下午1时32分38秒 - preparing部署与订阅ID socketlistener:*** ...
下午1时32分40秒 - 验证存储账户socketlistener......发布 - AzureService:对于包路径不中D的存在是:\\ dev的\\节点\\ socketlistener \\ cloud_package.cspkg。
在行:1字符:21
发布 - AzureService<<<<
CategoryInfo:CloseError:(:) [发布 - AzureService],FileNotFoundException异常


解决方案

我所怀疑的是,有一些问题与它在创建软件包导致问题的应用程序配置(服务定义和服务配置)。该错误消息也表明了同样的问题。基于发布 - AzureServiceProject命令执行,下一步是验证存储帐户后创建的软件包。而创建包后,下一步是连接服务端点,您可以在相同的链接上面你在下面的教程验证。

要验证是否有您的设备或连接没有问题,到Windows Azure应用程序,尝试创建一个新的Node.js应用程序,添加新的网络/辅助角色,不要使配置中的任何更改,然后尝试部署。这将确认是否有与你的机器配置的任何问题(如有)或其他问题:


  • 新AzureServiceProject your_node_project

  • 添加-AzureNodeWebRole

  • 发布-AzureServiceProject -ServiceName socketlistener -Location东美 - 启动

I am following this tutorial to deploy node.js application from my machine to windows azure: https://www.windowsazure.com/en-us/develop/nodejs/tutorials/getting-started/

my command is as below:

Publish-AzureServiceProject -ServiceName socketlistener -Location "East US" -Launch

but I am getting the following error

Publishing  to Windows Azure. This may take several minutes...

1:32:36 PM - Preparing runtime deployment for service 'socketlistener'
1:32:38 PM - Preparing deployment for socketlistener with Subscription ID: ***...
1:32:40 PM - Verifying storage account 'socketlistener'...

Publish-AzureService : Path for package doesn't exist in D:\dev\node\socketlistener\cloud_package.cspkg.
At line:1 char:21
Publish-AzureService <<<<
CategoryInfo : CloseError: (:) [Publish-AzureService], FileNotFoundException

解决方案

What I am suspecting is that there is some issue with your application configuration (Service Definition or Service Configuration) which is causing problem in package creation. The error message also suggests the same problem. Based on Publish-AzureServiceProject command execution the next step is to create the package after verifying the storage account. And after the package creation, the next step is to connect service endpoint which you can verify in the same link above you are following in tutorial.

To verify that there is no issue with your machine or connection to Windows Azure application, try creating a new Node.js application, add new web/worker role and do not make any changes in configuration then try deploying. This will verify if there is any issue with your machine configuration (if any) or other issue:

  • New-AzureServiceProject your_node_project
  • Add-AzureNodeWebRole
  • Publish-AzureServiceProject -ServiceName socketlistener -Location "East US" -Launch

这篇关于发布 - AzureServiceProject命令失败的Node.js应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆