Tag: azure

在Node.js上收到“更改”+“更改”事件后,Azure Workerangular色重新启动

我使用azure-sdk-for-node包在Azure工作者angular色中运行一个简单的Node.js应用程序。 var azure = require('azure'), http = require('http'), winston = require('winston'), logger = new (winston.Logger)({ transports: [ new (winston.transports.File)({ filename: 'C:\\log.txt' }) ] }), http.createServer(function (req, res) { res.writeHead(200); res.end('Hello, World!'); }).listen(process.env.port || 1337); azure.RoleEnvironment.on('changing', function (changes) { winston.info('changing', changes); // Got configuration changes here // { // "changes": [ // { // "type": "ConfigurationSettingChange", […]

EventEmitter内存泄漏

我正在使用meteor。 我build立了一个meteor软件包,帮助上传文件到blob存储。 我得到以下错误。 这个错误在5次中只发生一次。 W20141025-15:22:40.195(5.5)? (STDERR) (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. W20141025-15:22:40.546(5.5)? (STDERR) Trace W20141025-15:22:40.546(5.5)? (STDERR) at addListener (events.js:160:15) W20141025-15:22:40.546(5.5)? (STDERR) at /Users/user/boutfeeds/packages/jamesfebin:azure-blob-upload/.build.jamesfebin:azure-blob-upload/npm/node_modules/azure-storage/lib/common/services/storageserviceclient.js:399:31 W20141025-15:22:40.547(5.5)? (STDERR) at /Users/user/boutfeeds/packages/jamesfebin:azure-blob-upload/.build.jamesfebin:azure-blob-upload/npm/node_modules/azure-storage/lib/common/services/storageserviceclient.js:516:5 W20141025-15:22:40.547(5.5)? (STDERR) at SharedKey.signRequest (/Users/user/boutfeeds/packages/jamesfebin:azure-blob-upload/.build.jamesfebin:azure-blob-upload/npm/node_modules/azure-storage/lib/common/signing/sharedkey.js:81:3) W20141025-15:22:40.547(5.5)? (STDERR) at Object.StorageServiceClient._buildRequestOptions (/Users/user/boutfeeds/packages/jamesfebin:azure-blob-upload/.build.jamesfebin:azure-blob-upload/npm/node_modules/azure-storage/lib/common/services/storageserviceclient.js:498:27) W20141025-15:22:40.634(5.5)? (STDERR) at operation (/Users/user/boutfeeds/packages/jamesfebin:azure-blob-upload/.build.jamesfebin:azure-blob-upload/npm/node_modules/azure-storage/lib/common/services/storageserviceclient.js:255:10) W20141025-15:22:40.634(5.5)? (STDERR) at […]

Azure Webjob System.IO.PathTooLongException

我正在尝试在Azure网站上部署一个On Demand node.js WebJob,它使用了一些节点库,但每次运行都会产生错误 Failed to copy job files: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. 拿出图书馆补救错误,但是我不能运行WebJob。 我如何解决这个问题?

Microsoft Azure持续集成 – 使用Grunt“编译”步骤的NodeJs解决scheme

我的问题的一些前兆。 我可能会有一些详细的细节,但我只是想确保我不会遗漏任何可能导致我的问题。 (我会在问题的末尾附上完整的错误日志,但是我不希望任何人对此有太大的反应,我会尽可能地总结一下) 我使用Yeoman支撑了一个AngularJS项目。使用yo angular命令。 然后我创build了deploy.cmd & .deployment文件 推到我的Git仓库上的Bitbucket。 (只提交根文件夹文件,testing和应用程序文件夹) 从那里,通过他们的网站快速设置链接到Azure。 我的版本分成两部分,在部署期间安装grunt和bower(全局),然后在npm软件包安装期间安装grunt软件包 然后我需要尝试运行grunt build成为POST_DEPLOYMENT_ACTION package.json (prod依赖) "dependencies": { "grunt": "^0.4.1", "grunt-autoprefixer": "^0.7.3", "grunt-concurrent": "^0.5.0", "grunt-contrib-clean": "^0.5.0", "grunt-contrib-concat": "^0.4.0", "grunt-contrib-copy": "^0.5.0", "grunt-contrib-cssmin": "^0.9.0", "grunt-contrib-htmlmin": "^0.3.0", "grunt-contrib-imagemin": "^0.8.1", "grunt-contrib-jshint": "^0.10.0", "grunt-contrib-uglify": "^0.4.0", "grunt-filerev": "^0.2.1", "grunt-google-cdn": "^0.4.0", "grunt-newer": "^0.7.0", "grunt-ng-annotate": "^0.3.0", "grunt-svgmin": "^0.4.0", "grunt-usemin": "^2.1.1", "grunt-wiredep": "^1.7.0", "jshint-stylish": […]

Mean.io在Azure VM上的奇怪行为

我使用Ubuntu 14.04 LTS OS创build了一个Azure虚拟机。 我在此虚拟机上安装了一个mean.io应用程序版本0.3.3,nginx通过端口80在http端口3000中代理请求。我在Azure门户中打开了一个端点,在私有端口3000上打开了TCP协议,公共端口80.我在Azure VM上安装了最新版本的节点。 数据库(mongoDB)托pipe在compose.io上。 在pm2( https://www.npmjs.org/package/pm2 )中,我创build了一个运行应用程序的守护进程。 所有显然工作正常:CPU是没有负载,内存是空的(只有100MB)。 但一段时间后,node.js无法处理请求。 我试图在localhost 3000做一个“curl”,但我没有任何回应。 问题只存在于Azure虚拟机中:我在我的开发机器(ubuntu 14.04桌面)和Digital Ocean(ubuntu 14.04服务器的另一个发行版)上尝试了相同的应用程序,使用相同的configuration,所有工作都正常。 你能帮我find问题吗?

天青node.js请求,响应 – 寻求一些澄清

我正在使用Azure移动服务 – NodeJS后端,编程时,我总是面对这个疑问 – 让我解释一下使用下面的代码片段 //————————————————————————– function addUserToDB(request, response){ ///some code here var theUser = request.user; ///get the user's entity object try { objAppUser = buildAppUserEntityObj(theUser, request); //for simplicity sake, lets say this is not asynchronous function } catch (err) { console.log ('error in addUserToDB when calling buildAppUserEntityObj'); //****????**** request.respond(statusCodes.BAD_REQUEST, err); return; // ##????## is […]

无法将Node.js从Cloud9 IDE部署到Azure网站

似乎有很多指南,但没有新的版本。 此外,新版本的Cloud9显然没有UI部署function。 我有Azure网站创build。 我有从Azure的部署文件为该网站我有Cloud9 node.js项目准备好和工作。 我已经从Cloud9 Terminal安装了Azure软件包。 npm安装蔚蓝 杜,那么部署的步骤/命令到底是什么?

Azure网站上的Node.js 500状态

我正在尝试获取在Azure上运行的node.js(meanjs)网站。 该网站在我的本地环境工作,没有任何错误。 但是在部署完成后,当我进入我的网站时,我的networking选项卡中出现了一个500错误。 对我来说没有明显的错误。 我使用https://groups.google.com/forum/#!topic/meanjs/LrHmE43RSvA来引导我如何使用azure色的cli进行设置。 它也设置为部署forms我的github。 在Azure门户中,部署不会失败。 我已经通过日志,并试图find一个问题,但我几乎不知道从哪里开始。 通过阅读,有些东西看起来很奇怪。 (日志很长,超过字符限制,否则我会公布所有内容。) MSBUILD:错误MSB3428:无法加载Visual C ++组件“VCBuild.exe”。 要解决这个问题,1)安装.NET Framework 2.0 SDK,2)安装Microsoft Visual Studio 2005或者3)将组件的位置添加到系统path,如果它安装在别处。 [d:\家\网站\库\ node_modules \ BSON \build立\ binding.sln] 而且有很多 npm警告未满足的依赖 然后,他们都得到处理,文件被抄送到wwwroot并成功完成。 我尝试过的一些事情是更改部署分支,删除网站,并重新开始。 我有 让我知道如果有任何事情,我可以添加到这篇文章,我真的想得到这个工作。 谢谢你的帮助。 编辑** 我添加了bson到.gitignore,并得到一个新的错误。 我也在下面得到一些新的错误是什么改变了。 bson@0.2.18 install D:\ home \ site \ repository \ node_modules \ bson(node-gyp rebuild 2> builderror.log) (出口0) MSBUILD:错误MSB3428:无法加载Visual C ++组件“VCBuild.exe”。 […]

Microsoft Azure免费网站问题(NodeJS服务器)

我有一个在Azure免费网站上运行的NodeJS服务器。 服务器安装了websocket模块。 每个连接的用户将caching一些对象的数据,以便任何连接的人可以从这个对象中检索caching的数据。 我遇到的问题是,服务器似乎并没有把这个对象保持很长时间。 我可以在一段时间内访问数据,但如果我在当天晚些时候尝试,它只是消失了。 Azure是否正在closures服务器,因为它没有任何活动,导致对象被释放? 如果NodeJS在一段时间之后没有使用它们,是否会释放对象?

Azure部署错误errno 47

我试图在azure中部署nodeJS应用程序。 在部署我有npm错误! errno 47。 也许可以帮助我在开发时优化了最大字符path,我在本地修复了这个问题。 所有的答案将不胜感激。 Command: "D:\home\site\deployments\tools\deploy.cmd" Handling node.js deployment. KuduSync.NET from: 'D:\home\site\repository' to: 'D:\home\site\wwwroot' Copying file: 'index.js' Copying file: 'mmfrontend-crm-node.njsproj' Copying file: 'package.json' Node.js versions available on the platform are: 0.6.17, 0.6.20, 0.8.2, 0.8.19, 0.8.26, 0.8.27, 0.8.28, 0.10.5, 0.10.18, 0.10.21, 0.10.24, 0.10.26, 0.10.28, 0.10.29, 0.10.31, 0.10.32, 0.12.0. Selected node.js version 0.10.32. Use package.json […]