gpt4 book ai didi

node.js - Azure DevOps 管道打开的文件太多

转载 作者:搜寻专家 更新时间:2023-11-01 00:48:36 24 4
gpt4 key购买 nike

使用 azure-dev 开发 Node js 应用程序到应用程序服务时出现以下错误

  ##[error]Error: EMFILE: too many open files, open 'C:\agent\_work\_temp\temp_web_package_05489241004778522\node_modules\tar-fs\test\fixtures\d\file1'

我正在使用 Windows 托管代理进行部署

请找到任务 YAML 文件

steps:
- task: AzureRmWebAppDeployment@3 displayName: 'Azure App Service Deploy: <>' inputs:
azureSubscription: <>
appType: api
WebAppName: 'DEV-BIZ-API'
DeployToSlotFlag: true
ResourceGroupName: '<>'
SlotName: temp
GenerateWebConfig: true
WebConfigParameters: '-Handler iisnode -NodeStartFile app.js -appType node'
AppSettings: '-NODE_ENV dev'
ConfigurationSettings: '-NODE_ENV dev'
TakeAppOfflineFlag: true
UseWebDeploy: true
RenameFilesFlag: true

最佳答案

too many open files azure DevOps pipeline

有一个known issue关于这个在 Github 上。

For windows, this issue is resolved with 2.117.1 agent version.

如果您的代理版本高于2.117.1,但仍然遇到此问题,您可以尝试解决方法:

  • 提供提取的包路径作为应用服务部署的输入任务
  • 使用部署后脚本功能安装应用依赖项。

enter image description here

注意:您还可以在 github 上的线程中添加详细信息,并查看那里的反馈。

希望这有帮助。

关于node.js - Azure DevOps 管道打开的文件太多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55392047/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com